github.com/projectcalico/api@v0.0.0-20231218190037-9183ab93f33e/pkg/openapi/openapi_generated.go (about) 1 //go:build !ignore_autogenerated 2 // +build !ignore_autogenerated 3 4 // Copyright (c) 2023 Tigera, Inc. All rights reserved. 5 6 // Code generated by openapi-gen. DO NOT EDIT. 7 8 // This file was autogenerated by openapi-gen. Do not edit it manually! 9 10 package openapi 11 12 import ( 13 numorstring "github.com/projectcalico/api/pkg/lib/numorstring" 14 v1 "k8s.io/apimachinery/pkg/apis/meta/v1" 15 intstr "k8s.io/apimachinery/pkg/util/intstr" 16 common "k8s.io/kube-openapi/pkg/common" 17 spec "k8s.io/kube-openapi/pkg/validation/spec" 18 ) 19 20 func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition { 21 return map[string]common.OpenAPIDefinition{ 22 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.AutoHostEndpointConfig": schema_pkg_apis_projectcalico_v3_AutoHostEndpointConfig(ref), 23 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPConfiguration": schema_pkg_apis_projectcalico_v3_BGPConfiguration(ref), 24 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPConfigurationList": schema_pkg_apis_projectcalico_v3_BGPConfigurationList(ref), 25 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPConfigurationSpec": schema_pkg_apis_projectcalico_v3_BGPConfigurationSpec(ref), 26 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPDaemonStatus": schema_pkg_apis_projectcalico_v3_BGPDaemonStatus(ref), 27 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPFilter": schema_pkg_apis_projectcalico_v3_BGPFilter(ref), 28 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPFilterList": schema_pkg_apis_projectcalico_v3_BGPFilterList(ref), 29 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPFilterRuleV4": schema_pkg_apis_projectcalico_v3_BGPFilterRuleV4(ref), 30 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPFilterRuleV6": schema_pkg_apis_projectcalico_v3_BGPFilterRuleV6(ref), 31 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPFilterSpec": schema_pkg_apis_projectcalico_v3_BGPFilterSpec(ref), 32 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPPassword": schema_pkg_apis_projectcalico_v3_BGPPassword(ref), 33 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPPeer": schema_pkg_apis_projectcalico_v3_BGPPeer(ref), 34 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPPeerList": schema_pkg_apis_projectcalico_v3_BGPPeerList(ref), 35 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPPeerSpec": schema_pkg_apis_projectcalico_v3_BGPPeerSpec(ref), 36 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.BlockAffinity": schema_pkg_apis_projectcalico_v3_BlockAffinity(ref), 37 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.BlockAffinityList": schema_pkg_apis_projectcalico_v3_BlockAffinityList(ref), 38 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.BlockAffinitySpec": schema_pkg_apis_projectcalico_v3_BlockAffinitySpec(ref), 39 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.CalicoNodeAgentStatus": schema_pkg_apis_projectcalico_v3_CalicoNodeAgentStatus(ref), 40 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.CalicoNodeBGPRouteStatus": schema_pkg_apis_projectcalico_v3_CalicoNodeBGPRouteStatus(ref), 41 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.CalicoNodeBGPStatus": schema_pkg_apis_projectcalico_v3_CalicoNodeBGPStatus(ref), 42 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.CalicoNodePeer": schema_pkg_apis_projectcalico_v3_CalicoNodePeer(ref), 43 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.CalicoNodeRoute": schema_pkg_apis_projectcalico_v3_CalicoNodeRoute(ref), 44 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.CalicoNodeRouteLearnedFrom": schema_pkg_apis_projectcalico_v3_CalicoNodeRouteLearnedFrom(ref), 45 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.CalicoNodeStatus": schema_pkg_apis_projectcalico_v3_CalicoNodeStatus(ref), 46 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.CalicoNodeStatusList": schema_pkg_apis_projectcalico_v3_CalicoNodeStatusList(ref), 47 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.CalicoNodeStatusSpec": schema_pkg_apis_projectcalico_v3_CalicoNodeStatusSpec(ref), 48 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.CalicoNodeStatusStatus": schema_pkg_apis_projectcalico_v3_CalicoNodeStatusStatus(ref), 49 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.ClusterInformation": schema_pkg_apis_projectcalico_v3_ClusterInformation(ref), 50 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.ClusterInformationList": schema_pkg_apis_projectcalico_v3_ClusterInformationList(ref), 51 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.ClusterInformationSpec": schema_pkg_apis_projectcalico_v3_ClusterInformationSpec(ref), 52 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.Community": schema_pkg_apis_projectcalico_v3_Community(ref), 53 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.ControllersConfig": schema_pkg_apis_projectcalico_v3_ControllersConfig(ref), 54 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.EndpointPort": schema_pkg_apis_projectcalico_v3_EndpointPort(ref), 55 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.EntityRule": schema_pkg_apis_projectcalico_v3_EntityRule(ref), 56 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.FelixConfiguration": schema_pkg_apis_projectcalico_v3_FelixConfiguration(ref), 57 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.FelixConfigurationList": schema_pkg_apis_projectcalico_v3_FelixConfigurationList(ref), 58 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.FelixConfigurationSpec": schema_pkg_apis_projectcalico_v3_FelixConfigurationSpec(ref), 59 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.GlobalNetworkPolicy": schema_pkg_apis_projectcalico_v3_GlobalNetworkPolicy(ref), 60 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.GlobalNetworkPolicyList": schema_pkg_apis_projectcalico_v3_GlobalNetworkPolicyList(ref), 61 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.GlobalNetworkPolicySpec": schema_pkg_apis_projectcalico_v3_GlobalNetworkPolicySpec(ref), 62 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.GlobalNetworkSet": schema_pkg_apis_projectcalico_v3_GlobalNetworkSet(ref), 63 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.GlobalNetworkSetList": schema_pkg_apis_projectcalico_v3_GlobalNetworkSetList(ref), 64 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.GlobalNetworkSetSpec": schema_pkg_apis_projectcalico_v3_GlobalNetworkSetSpec(ref), 65 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.HTTPMatch": schema_pkg_apis_projectcalico_v3_HTTPMatch(ref), 66 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.HTTPPath": schema_pkg_apis_projectcalico_v3_HTTPPath(ref), 67 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.HealthTimeoutOverride": schema_pkg_apis_projectcalico_v3_HealthTimeoutOverride(ref), 68 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.HostEndpoint": schema_pkg_apis_projectcalico_v3_HostEndpoint(ref), 69 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.HostEndpointList": schema_pkg_apis_projectcalico_v3_HostEndpointList(ref), 70 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.HostEndpointSpec": schema_pkg_apis_projectcalico_v3_HostEndpointSpec(ref), 71 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.ICMPFields": schema_pkg_apis_projectcalico_v3_ICMPFields(ref), 72 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.IPAMConfiguration": schema_pkg_apis_projectcalico_v3_IPAMConfiguration(ref), 73 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.IPAMConfigurationList": schema_pkg_apis_projectcalico_v3_IPAMConfigurationList(ref), 74 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.IPAMConfigurationSpec": schema_pkg_apis_projectcalico_v3_IPAMConfigurationSpec(ref), 75 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.IPIPConfiguration": schema_pkg_apis_projectcalico_v3_IPIPConfiguration(ref), 76 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.IPPool": schema_pkg_apis_projectcalico_v3_IPPool(ref), 77 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.IPPoolList": schema_pkg_apis_projectcalico_v3_IPPoolList(ref), 78 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.IPPoolSpec": schema_pkg_apis_projectcalico_v3_IPPoolSpec(ref), 79 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.IPReservation": schema_pkg_apis_projectcalico_v3_IPReservation(ref), 80 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.IPReservationList": schema_pkg_apis_projectcalico_v3_IPReservationList(ref), 81 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.IPReservationSpec": schema_pkg_apis_projectcalico_v3_IPReservationSpec(ref), 82 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.KubeControllersConfiguration": schema_pkg_apis_projectcalico_v3_KubeControllersConfiguration(ref), 83 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.KubeControllersConfigurationList": schema_pkg_apis_projectcalico_v3_KubeControllersConfigurationList(ref), 84 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.KubeControllersConfigurationSpec": schema_pkg_apis_projectcalico_v3_KubeControllersConfigurationSpec(ref), 85 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.KubeControllersConfigurationStatus": schema_pkg_apis_projectcalico_v3_KubeControllersConfigurationStatus(ref), 86 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.NamespaceControllerConfig": schema_pkg_apis_projectcalico_v3_NamespaceControllerConfig(ref), 87 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.NetworkPolicy": schema_pkg_apis_projectcalico_v3_NetworkPolicy(ref), 88 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.NetworkPolicyList": schema_pkg_apis_projectcalico_v3_NetworkPolicyList(ref), 89 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.NetworkPolicySpec": schema_pkg_apis_projectcalico_v3_NetworkPolicySpec(ref), 90 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.NetworkSet": schema_pkg_apis_projectcalico_v3_NetworkSet(ref), 91 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.NetworkSetList": schema_pkg_apis_projectcalico_v3_NetworkSetList(ref), 92 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.NetworkSetSpec": schema_pkg_apis_projectcalico_v3_NetworkSetSpec(ref), 93 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.NodeControllerConfig": schema_pkg_apis_projectcalico_v3_NodeControllerConfig(ref), 94 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.PolicyControllerConfig": schema_pkg_apis_projectcalico_v3_PolicyControllerConfig(ref), 95 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.PrefixAdvertisement": schema_pkg_apis_projectcalico_v3_PrefixAdvertisement(ref), 96 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.Profile": schema_pkg_apis_projectcalico_v3_Profile(ref), 97 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.ProfileList": schema_pkg_apis_projectcalico_v3_ProfileList(ref), 98 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.ProfileSpec": schema_pkg_apis_projectcalico_v3_ProfileSpec(ref), 99 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.ProtoPort": schema_pkg_apis_projectcalico_v3_ProtoPort(ref), 100 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.RouteTableIDRange": schema_pkg_apis_projectcalico_v3_RouteTableIDRange(ref), 101 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.RouteTableRange": schema_pkg_apis_projectcalico_v3_RouteTableRange(ref), 102 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.Rule": schema_pkg_apis_projectcalico_v3_Rule(ref), 103 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.RuleMetadata": schema_pkg_apis_projectcalico_v3_RuleMetadata(ref), 104 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.ServiceAccountControllerConfig": schema_pkg_apis_projectcalico_v3_ServiceAccountControllerConfig(ref), 105 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.ServiceAccountMatch": schema_pkg_apis_projectcalico_v3_ServiceAccountMatch(ref), 106 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.ServiceClusterIPBlock": schema_pkg_apis_projectcalico_v3_ServiceClusterIPBlock(ref), 107 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.ServiceExternalIPBlock": schema_pkg_apis_projectcalico_v3_ServiceExternalIPBlock(ref), 108 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.ServiceLoadBalancerIPBlock": schema_pkg_apis_projectcalico_v3_ServiceLoadBalancerIPBlock(ref), 109 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.ServiceMatch": schema_pkg_apis_projectcalico_v3_ServiceMatch(ref), 110 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.WorkloadEndpointControllerConfig": schema_pkg_apis_projectcalico_v3_WorkloadEndpointControllerConfig(ref), 111 "github.com/projectcalico/api/pkg/lib/numorstring.Port": schema_api_pkg_lib_numorstring_Port(ref), 112 "github.com/projectcalico/api/pkg/lib/numorstring.Protocol": schema_api_pkg_lib_numorstring_Protocol(ref), 113 "github.com/projectcalico/api/pkg/lib/numorstring.Uint8OrString": schema_api_pkg_lib_numorstring_Uint8OrString(ref), 114 "k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource": schema_k8sio_api_core_v1_AWSElasticBlockStoreVolumeSource(ref), 115 "k8s.io/api/core/v1.Affinity": schema_k8sio_api_core_v1_Affinity(ref), 116 "k8s.io/api/core/v1.AttachedVolume": schema_k8sio_api_core_v1_AttachedVolume(ref), 117 "k8s.io/api/core/v1.AvoidPods": schema_k8sio_api_core_v1_AvoidPods(ref), 118 "k8s.io/api/core/v1.AzureDiskVolumeSource": schema_k8sio_api_core_v1_AzureDiskVolumeSource(ref), 119 "k8s.io/api/core/v1.AzureFilePersistentVolumeSource": schema_k8sio_api_core_v1_AzureFilePersistentVolumeSource(ref), 120 "k8s.io/api/core/v1.AzureFileVolumeSource": schema_k8sio_api_core_v1_AzureFileVolumeSource(ref), 121 "k8s.io/api/core/v1.Binding": schema_k8sio_api_core_v1_Binding(ref), 122 "k8s.io/api/core/v1.CSIPersistentVolumeSource": schema_k8sio_api_core_v1_CSIPersistentVolumeSource(ref), 123 "k8s.io/api/core/v1.CSIVolumeSource": schema_k8sio_api_core_v1_CSIVolumeSource(ref), 124 "k8s.io/api/core/v1.Capabilities": schema_k8sio_api_core_v1_Capabilities(ref), 125 "k8s.io/api/core/v1.CephFSPersistentVolumeSource": schema_k8sio_api_core_v1_CephFSPersistentVolumeSource(ref), 126 "k8s.io/api/core/v1.CephFSVolumeSource": schema_k8sio_api_core_v1_CephFSVolumeSource(ref), 127 "k8s.io/api/core/v1.CinderPersistentVolumeSource": schema_k8sio_api_core_v1_CinderPersistentVolumeSource(ref), 128 "k8s.io/api/core/v1.CinderVolumeSource": schema_k8sio_api_core_v1_CinderVolumeSource(ref), 129 "k8s.io/api/core/v1.ClaimSource": schema_k8sio_api_core_v1_ClaimSource(ref), 130 "k8s.io/api/core/v1.ClientIPConfig": schema_k8sio_api_core_v1_ClientIPConfig(ref), 131 "k8s.io/api/core/v1.ComponentCondition": schema_k8sio_api_core_v1_ComponentCondition(ref), 132 "k8s.io/api/core/v1.ComponentStatus": schema_k8sio_api_core_v1_ComponentStatus(ref), 133 "k8s.io/api/core/v1.ComponentStatusList": schema_k8sio_api_core_v1_ComponentStatusList(ref), 134 "k8s.io/api/core/v1.ConfigMap": schema_k8sio_api_core_v1_ConfigMap(ref), 135 "k8s.io/api/core/v1.ConfigMapEnvSource": schema_k8sio_api_core_v1_ConfigMapEnvSource(ref), 136 "k8s.io/api/core/v1.ConfigMapKeySelector": schema_k8sio_api_core_v1_ConfigMapKeySelector(ref), 137 "k8s.io/api/core/v1.ConfigMapList": schema_k8sio_api_core_v1_ConfigMapList(ref), 138 "k8s.io/api/core/v1.ConfigMapNodeConfigSource": schema_k8sio_api_core_v1_ConfigMapNodeConfigSource(ref), 139 "k8s.io/api/core/v1.ConfigMapProjection": schema_k8sio_api_core_v1_ConfigMapProjection(ref), 140 "k8s.io/api/core/v1.ConfigMapVolumeSource": schema_k8sio_api_core_v1_ConfigMapVolumeSource(ref), 141 "k8s.io/api/core/v1.Container": schema_k8sio_api_core_v1_Container(ref), 142 "k8s.io/api/core/v1.ContainerImage": schema_k8sio_api_core_v1_ContainerImage(ref), 143 "k8s.io/api/core/v1.ContainerPort": schema_k8sio_api_core_v1_ContainerPort(ref), 144 "k8s.io/api/core/v1.ContainerResizePolicy": schema_k8sio_api_core_v1_ContainerResizePolicy(ref), 145 "k8s.io/api/core/v1.ContainerState": schema_k8sio_api_core_v1_ContainerState(ref), 146 "k8s.io/api/core/v1.ContainerStateRunning": schema_k8sio_api_core_v1_ContainerStateRunning(ref), 147 "k8s.io/api/core/v1.ContainerStateTerminated": schema_k8sio_api_core_v1_ContainerStateTerminated(ref), 148 "k8s.io/api/core/v1.ContainerStateWaiting": schema_k8sio_api_core_v1_ContainerStateWaiting(ref), 149 "k8s.io/api/core/v1.ContainerStatus": schema_k8sio_api_core_v1_ContainerStatus(ref), 150 "k8s.io/api/core/v1.DaemonEndpoint": schema_k8sio_api_core_v1_DaemonEndpoint(ref), 151 "k8s.io/api/core/v1.DownwardAPIProjection": schema_k8sio_api_core_v1_DownwardAPIProjection(ref), 152 "k8s.io/api/core/v1.DownwardAPIVolumeFile": schema_k8sio_api_core_v1_DownwardAPIVolumeFile(ref), 153 "k8s.io/api/core/v1.DownwardAPIVolumeSource": schema_k8sio_api_core_v1_DownwardAPIVolumeSource(ref), 154 "k8s.io/api/core/v1.EmptyDirVolumeSource": schema_k8sio_api_core_v1_EmptyDirVolumeSource(ref), 155 "k8s.io/api/core/v1.EndpointAddress": schema_k8sio_api_core_v1_EndpointAddress(ref), 156 "k8s.io/api/core/v1.EndpointPort": schema_k8sio_api_core_v1_EndpointPort(ref), 157 "k8s.io/api/core/v1.EndpointSubset": schema_k8sio_api_core_v1_EndpointSubset(ref), 158 "k8s.io/api/core/v1.Endpoints": schema_k8sio_api_core_v1_Endpoints(ref), 159 "k8s.io/api/core/v1.EndpointsList": schema_k8sio_api_core_v1_EndpointsList(ref), 160 "k8s.io/api/core/v1.EnvFromSource": schema_k8sio_api_core_v1_EnvFromSource(ref), 161 "k8s.io/api/core/v1.EnvVar": schema_k8sio_api_core_v1_EnvVar(ref), 162 "k8s.io/api/core/v1.EnvVarSource": schema_k8sio_api_core_v1_EnvVarSource(ref), 163 "k8s.io/api/core/v1.EphemeralContainer": schema_k8sio_api_core_v1_EphemeralContainer(ref), 164 "k8s.io/api/core/v1.EphemeralContainerCommon": schema_k8sio_api_core_v1_EphemeralContainerCommon(ref), 165 "k8s.io/api/core/v1.EphemeralVolumeSource": schema_k8sio_api_core_v1_EphemeralVolumeSource(ref), 166 "k8s.io/api/core/v1.Event": schema_k8sio_api_core_v1_Event(ref), 167 "k8s.io/api/core/v1.EventList": schema_k8sio_api_core_v1_EventList(ref), 168 "k8s.io/api/core/v1.EventSeries": schema_k8sio_api_core_v1_EventSeries(ref), 169 "k8s.io/api/core/v1.EventSource": schema_k8sio_api_core_v1_EventSource(ref), 170 "k8s.io/api/core/v1.ExecAction": schema_k8sio_api_core_v1_ExecAction(ref), 171 "k8s.io/api/core/v1.FCVolumeSource": schema_k8sio_api_core_v1_FCVolumeSource(ref), 172 "k8s.io/api/core/v1.FlexPersistentVolumeSource": schema_k8sio_api_core_v1_FlexPersistentVolumeSource(ref), 173 "k8s.io/api/core/v1.FlexVolumeSource": schema_k8sio_api_core_v1_FlexVolumeSource(ref), 174 "k8s.io/api/core/v1.FlockerVolumeSource": schema_k8sio_api_core_v1_FlockerVolumeSource(ref), 175 "k8s.io/api/core/v1.GCEPersistentDiskVolumeSource": schema_k8sio_api_core_v1_GCEPersistentDiskVolumeSource(ref), 176 "k8s.io/api/core/v1.GRPCAction": schema_k8sio_api_core_v1_GRPCAction(ref), 177 "k8s.io/api/core/v1.GitRepoVolumeSource": schema_k8sio_api_core_v1_GitRepoVolumeSource(ref), 178 "k8s.io/api/core/v1.GlusterfsPersistentVolumeSource": schema_k8sio_api_core_v1_GlusterfsPersistentVolumeSource(ref), 179 "k8s.io/api/core/v1.GlusterfsVolumeSource": schema_k8sio_api_core_v1_GlusterfsVolumeSource(ref), 180 "k8s.io/api/core/v1.HTTPGetAction": schema_k8sio_api_core_v1_HTTPGetAction(ref), 181 "k8s.io/api/core/v1.HTTPHeader": schema_k8sio_api_core_v1_HTTPHeader(ref), 182 "k8s.io/api/core/v1.HostAlias": schema_k8sio_api_core_v1_HostAlias(ref), 183 "k8s.io/api/core/v1.HostPathVolumeSource": schema_k8sio_api_core_v1_HostPathVolumeSource(ref), 184 "k8s.io/api/core/v1.ISCSIPersistentVolumeSource": schema_k8sio_api_core_v1_ISCSIPersistentVolumeSource(ref), 185 "k8s.io/api/core/v1.ISCSIVolumeSource": schema_k8sio_api_core_v1_ISCSIVolumeSource(ref), 186 "k8s.io/api/core/v1.KeyToPath": schema_k8sio_api_core_v1_KeyToPath(ref), 187 "k8s.io/api/core/v1.Lifecycle": schema_k8sio_api_core_v1_Lifecycle(ref), 188 "k8s.io/api/core/v1.LifecycleHandler": schema_k8sio_api_core_v1_LifecycleHandler(ref), 189 "k8s.io/api/core/v1.LimitRange": schema_k8sio_api_core_v1_LimitRange(ref), 190 "k8s.io/api/core/v1.LimitRangeItem": schema_k8sio_api_core_v1_LimitRangeItem(ref), 191 "k8s.io/api/core/v1.LimitRangeList": schema_k8sio_api_core_v1_LimitRangeList(ref), 192 "k8s.io/api/core/v1.LimitRangeSpec": schema_k8sio_api_core_v1_LimitRangeSpec(ref), 193 "k8s.io/api/core/v1.List": schema_k8sio_api_core_v1_List(ref), 194 "k8s.io/api/core/v1.LoadBalancerIngress": schema_k8sio_api_core_v1_LoadBalancerIngress(ref), 195 "k8s.io/api/core/v1.LoadBalancerStatus": schema_k8sio_api_core_v1_LoadBalancerStatus(ref), 196 "k8s.io/api/core/v1.LocalObjectReference": schema_k8sio_api_core_v1_LocalObjectReference(ref), 197 "k8s.io/api/core/v1.LocalVolumeSource": schema_k8sio_api_core_v1_LocalVolumeSource(ref), 198 "k8s.io/api/core/v1.NFSVolumeSource": schema_k8sio_api_core_v1_NFSVolumeSource(ref), 199 "k8s.io/api/core/v1.Namespace": schema_k8sio_api_core_v1_Namespace(ref), 200 "k8s.io/api/core/v1.NamespaceCondition": schema_k8sio_api_core_v1_NamespaceCondition(ref), 201 "k8s.io/api/core/v1.NamespaceList": schema_k8sio_api_core_v1_NamespaceList(ref), 202 "k8s.io/api/core/v1.NamespaceSpec": schema_k8sio_api_core_v1_NamespaceSpec(ref), 203 "k8s.io/api/core/v1.NamespaceStatus": schema_k8sio_api_core_v1_NamespaceStatus(ref), 204 "k8s.io/api/core/v1.Node": schema_k8sio_api_core_v1_Node(ref), 205 "k8s.io/api/core/v1.NodeAddress": schema_k8sio_api_core_v1_NodeAddress(ref), 206 "k8s.io/api/core/v1.NodeAffinity": schema_k8sio_api_core_v1_NodeAffinity(ref), 207 "k8s.io/api/core/v1.NodeCondition": schema_k8sio_api_core_v1_NodeCondition(ref), 208 "k8s.io/api/core/v1.NodeConfigSource": schema_k8sio_api_core_v1_NodeConfigSource(ref), 209 "k8s.io/api/core/v1.NodeConfigStatus": schema_k8sio_api_core_v1_NodeConfigStatus(ref), 210 "k8s.io/api/core/v1.NodeDaemonEndpoints": schema_k8sio_api_core_v1_NodeDaemonEndpoints(ref), 211 "k8s.io/api/core/v1.NodeList": schema_k8sio_api_core_v1_NodeList(ref), 212 "k8s.io/api/core/v1.NodeProxyOptions": schema_k8sio_api_core_v1_NodeProxyOptions(ref), 213 "k8s.io/api/core/v1.NodeResources": schema_k8sio_api_core_v1_NodeResources(ref), 214 "k8s.io/api/core/v1.NodeSelector": schema_k8sio_api_core_v1_NodeSelector(ref), 215 "k8s.io/api/core/v1.NodeSelectorRequirement": schema_k8sio_api_core_v1_NodeSelectorRequirement(ref), 216 "k8s.io/api/core/v1.NodeSelectorTerm": schema_k8sio_api_core_v1_NodeSelectorTerm(ref), 217 "k8s.io/api/core/v1.NodeSpec": schema_k8sio_api_core_v1_NodeSpec(ref), 218 "k8s.io/api/core/v1.NodeStatus": schema_k8sio_api_core_v1_NodeStatus(ref), 219 "k8s.io/api/core/v1.NodeSystemInfo": schema_k8sio_api_core_v1_NodeSystemInfo(ref), 220 "k8s.io/api/core/v1.ObjectFieldSelector": schema_k8sio_api_core_v1_ObjectFieldSelector(ref), 221 "k8s.io/api/core/v1.ObjectReference": schema_k8sio_api_core_v1_ObjectReference(ref), 222 "k8s.io/api/core/v1.PersistentVolume": schema_k8sio_api_core_v1_PersistentVolume(ref), 223 "k8s.io/api/core/v1.PersistentVolumeClaim": schema_k8sio_api_core_v1_PersistentVolumeClaim(ref), 224 "k8s.io/api/core/v1.PersistentVolumeClaimCondition": schema_k8sio_api_core_v1_PersistentVolumeClaimCondition(ref), 225 "k8s.io/api/core/v1.PersistentVolumeClaimList": schema_k8sio_api_core_v1_PersistentVolumeClaimList(ref), 226 "k8s.io/api/core/v1.PersistentVolumeClaimSpec": schema_k8sio_api_core_v1_PersistentVolumeClaimSpec(ref), 227 "k8s.io/api/core/v1.PersistentVolumeClaimStatus": schema_k8sio_api_core_v1_PersistentVolumeClaimStatus(ref), 228 "k8s.io/api/core/v1.PersistentVolumeClaimTemplate": schema_k8sio_api_core_v1_PersistentVolumeClaimTemplate(ref), 229 "k8s.io/api/core/v1.PersistentVolumeClaimVolumeSource": schema_k8sio_api_core_v1_PersistentVolumeClaimVolumeSource(ref), 230 "k8s.io/api/core/v1.PersistentVolumeList": schema_k8sio_api_core_v1_PersistentVolumeList(ref), 231 "k8s.io/api/core/v1.PersistentVolumeSource": schema_k8sio_api_core_v1_PersistentVolumeSource(ref), 232 "k8s.io/api/core/v1.PersistentVolumeSpec": schema_k8sio_api_core_v1_PersistentVolumeSpec(ref), 233 "k8s.io/api/core/v1.PersistentVolumeStatus": schema_k8sio_api_core_v1_PersistentVolumeStatus(ref), 234 "k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource": schema_k8sio_api_core_v1_PhotonPersistentDiskVolumeSource(ref), 235 "k8s.io/api/core/v1.Pod": schema_k8sio_api_core_v1_Pod(ref), 236 "k8s.io/api/core/v1.PodAffinity": schema_k8sio_api_core_v1_PodAffinity(ref), 237 "k8s.io/api/core/v1.PodAffinityTerm": schema_k8sio_api_core_v1_PodAffinityTerm(ref), 238 "k8s.io/api/core/v1.PodAntiAffinity": schema_k8sio_api_core_v1_PodAntiAffinity(ref), 239 "k8s.io/api/core/v1.PodAttachOptions": schema_k8sio_api_core_v1_PodAttachOptions(ref), 240 "k8s.io/api/core/v1.PodCondition": schema_k8sio_api_core_v1_PodCondition(ref), 241 "k8s.io/api/core/v1.PodDNSConfig": schema_k8sio_api_core_v1_PodDNSConfig(ref), 242 "k8s.io/api/core/v1.PodDNSConfigOption": schema_k8sio_api_core_v1_PodDNSConfigOption(ref), 243 "k8s.io/api/core/v1.PodExecOptions": schema_k8sio_api_core_v1_PodExecOptions(ref), 244 "k8s.io/api/core/v1.PodIP": schema_k8sio_api_core_v1_PodIP(ref), 245 "k8s.io/api/core/v1.PodList": schema_k8sio_api_core_v1_PodList(ref), 246 "k8s.io/api/core/v1.PodLogOptions": schema_k8sio_api_core_v1_PodLogOptions(ref), 247 "k8s.io/api/core/v1.PodOS": schema_k8sio_api_core_v1_PodOS(ref), 248 "k8s.io/api/core/v1.PodPortForwardOptions": schema_k8sio_api_core_v1_PodPortForwardOptions(ref), 249 "k8s.io/api/core/v1.PodProxyOptions": schema_k8sio_api_core_v1_PodProxyOptions(ref), 250 "k8s.io/api/core/v1.PodReadinessGate": schema_k8sio_api_core_v1_PodReadinessGate(ref), 251 "k8s.io/api/core/v1.PodResourceClaim": schema_k8sio_api_core_v1_PodResourceClaim(ref), 252 "k8s.io/api/core/v1.PodSchedulingGate": schema_k8sio_api_core_v1_PodSchedulingGate(ref), 253 "k8s.io/api/core/v1.PodSecurityContext": schema_k8sio_api_core_v1_PodSecurityContext(ref), 254 "k8s.io/api/core/v1.PodSignature": schema_k8sio_api_core_v1_PodSignature(ref), 255 "k8s.io/api/core/v1.PodSpec": schema_k8sio_api_core_v1_PodSpec(ref), 256 "k8s.io/api/core/v1.PodStatus": schema_k8sio_api_core_v1_PodStatus(ref), 257 "k8s.io/api/core/v1.PodStatusResult": schema_k8sio_api_core_v1_PodStatusResult(ref), 258 "k8s.io/api/core/v1.PodTemplate": schema_k8sio_api_core_v1_PodTemplate(ref), 259 "k8s.io/api/core/v1.PodTemplateList": schema_k8sio_api_core_v1_PodTemplateList(ref), 260 "k8s.io/api/core/v1.PodTemplateSpec": schema_k8sio_api_core_v1_PodTemplateSpec(ref), 261 "k8s.io/api/core/v1.PortStatus": schema_k8sio_api_core_v1_PortStatus(ref), 262 "k8s.io/api/core/v1.PortworxVolumeSource": schema_k8sio_api_core_v1_PortworxVolumeSource(ref), 263 "k8s.io/api/core/v1.PreferAvoidPodsEntry": schema_k8sio_api_core_v1_PreferAvoidPodsEntry(ref), 264 "k8s.io/api/core/v1.PreferredSchedulingTerm": schema_k8sio_api_core_v1_PreferredSchedulingTerm(ref), 265 "k8s.io/api/core/v1.Probe": schema_k8sio_api_core_v1_Probe(ref), 266 "k8s.io/api/core/v1.ProbeHandler": schema_k8sio_api_core_v1_ProbeHandler(ref), 267 "k8s.io/api/core/v1.ProjectedVolumeSource": schema_k8sio_api_core_v1_ProjectedVolumeSource(ref), 268 "k8s.io/api/core/v1.QuobyteVolumeSource": schema_k8sio_api_core_v1_QuobyteVolumeSource(ref), 269 "k8s.io/api/core/v1.RBDPersistentVolumeSource": schema_k8sio_api_core_v1_RBDPersistentVolumeSource(ref), 270 "k8s.io/api/core/v1.RBDVolumeSource": schema_k8sio_api_core_v1_RBDVolumeSource(ref), 271 "k8s.io/api/core/v1.RangeAllocation": schema_k8sio_api_core_v1_RangeAllocation(ref), 272 "k8s.io/api/core/v1.ReplicationController": schema_k8sio_api_core_v1_ReplicationController(ref), 273 "k8s.io/api/core/v1.ReplicationControllerCondition": schema_k8sio_api_core_v1_ReplicationControllerCondition(ref), 274 "k8s.io/api/core/v1.ReplicationControllerList": schema_k8sio_api_core_v1_ReplicationControllerList(ref), 275 "k8s.io/api/core/v1.ReplicationControllerSpec": schema_k8sio_api_core_v1_ReplicationControllerSpec(ref), 276 "k8s.io/api/core/v1.ReplicationControllerStatus": schema_k8sio_api_core_v1_ReplicationControllerStatus(ref), 277 "k8s.io/api/core/v1.ResourceClaim": schema_k8sio_api_core_v1_ResourceClaim(ref), 278 "k8s.io/api/core/v1.ResourceFieldSelector": schema_k8sio_api_core_v1_ResourceFieldSelector(ref), 279 "k8s.io/api/core/v1.ResourceQuota": schema_k8sio_api_core_v1_ResourceQuota(ref), 280 "k8s.io/api/core/v1.ResourceQuotaList": schema_k8sio_api_core_v1_ResourceQuotaList(ref), 281 "k8s.io/api/core/v1.ResourceQuotaSpec": schema_k8sio_api_core_v1_ResourceQuotaSpec(ref), 282 "k8s.io/api/core/v1.ResourceQuotaStatus": schema_k8sio_api_core_v1_ResourceQuotaStatus(ref), 283 "k8s.io/api/core/v1.ResourceRequirements": schema_k8sio_api_core_v1_ResourceRequirements(ref), 284 "k8s.io/api/core/v1.SELinuxOptions": schema_k8sio_api_core_v1_SELinuxOptions(ref), 285 "k8s.io/api/core/v1.ScaleIOPersistentVolumeSource": schema_k8sio_api_core_v1_ScaleIOPersistentVolumeSource(ref), 286 "k8s.io/api/core/v1.ScaleIOVolumeSource": schema_k8sio_api_core_v1_ScaleIOVolumeSource(ref), 287 "k8s.io/api/core/v1.ScopeSelector": schema_k8sio_api_core_v1_ScopeSelector(ref), 288 "k8s.io/api/core/v1.ScopedResourceSelectorRequirement": schema_k8sio_api_core_v1_ScopedResourceSelectorRequirement(ref), 289 "k8s.io/api/core/v1.SeccompProfile": schema_k8sio_api_core_v1_SeccompProfile(ref), 290 "k8s.io/api/core/v1.Secret": schema_k8sio_api_core_v1_Secret(ref), 291 "k8s.io/api/core/v1.SecretEnvSource": schema_k8sio_api_core_v1_SecretEnvSource(ref), 292 "k8s.io/api/core/v1.SecretKeySelector": schema_k8sio_api_core_v1_SecretKeySelector(ref), 293 "k8s.io/api/core/v1.SecretList": schema_k8sio_api_core_v1_SecretList(ref), 294 "k8s.io/api/core/v1.SecretProjection": schema_k8sio_api_core_v1_SecretProjection(ref), 295 "k8s.io/api/core/v1.SecretReference": schema_k8sio_api_core_v1_SecretReference(ref), 296 "k8s.io/api/core/v1.SecretVolumeSource": schema_k8sio_api_core_v1_SecretVolumeSource(ref), 297 "k8s.io/api/core/v1.SecurityContext": schema_k8sio_api_core_v1_SecurityContext(ref), 298 "k8s.io/api/core/v1.SerializedReference": schema_k8sio_api_core_v1_SerializedReference(ref), 299 "k8s.io/api/core/v1.Service": schema_k8sio_api_core_v1_Service(ref), 300 "k8s.io/api/core/v1.ServiceAccount": schema_k8sio_api_core_v1_ServiceAccount(ref), 301 "k8s.io/api/core/v1.ServiceAccountList": schema_k8sio_api_core_v1_ServiceAccountList(ref), 302 "k8s.io/api/core/v1.ServiceAccountTokenProjection": schema_k8sio_api_core_v1_ServiceAccountTokenProjection(ref), 303 "k8s.io/api/core/v1.ServiceList": schema_k8sio_api_core_v1_ServiceList(ref), 304 "k8s.io/api/core/v1.ServicePort": schema_k8sio_api_core_v1_ServicePort(ref), 305 "k8s.io/api/core/v1.ServiceProxyOptions": schema_k8sio_api_core_v1_ServiceProxyOptions(ref), 306 "k8s.io/api/core/v1.ServiceSpec": schema_k8sio_api_core_v1_ServiceSpec(ref), 307 "k8s.io/api/core/v1.ServiceStatus": schema_k8sio_api_core_v1_ServiceStatus(ref), 308 "k8s.io/api/core/v1.SessionAffinityConfig": schema_k8sio_api_core_v1_SessionAffinityConfig(ref), 309 "k8s.io/api/core/v1.StorageOSPersistentVolumeSource": schema_k8sio_api_core_v1_StorageOSPersistentVolumeSource(ref), 310 "k8s.io/api/core/v1.StorageOSVolumeSource": schema_k8sio_api_core_v1_StorageOSVolumeSource(ref), 311 "k8s.io/api/core/v1.Sysctl": schema_k8sio_api_core_v1_Sysctl(ref), 312 "k8s.io/api/core/v1.TCPSocketAction": schema_k8sio_api_core_v1_TCPSocketAction(ref), 313 "k8s.io/api/core/v1.Taint": schema_k8sio_api_core_v1_Taint(ref), 314 "k8s.io/api/core/v1.Toleration": schema_k8sio_api_core_v1_Toleration(ref), 315 "k8s.io/api/core/v1.TopologySelectorLabelRequirement": schema_k8sio_api_core_v1_TopologySelectorLabelRequirement(ref), 316 "k8s.io/api/core/v1.TopologySelectorTerm": schema_k8sio_api_core_v1_TopologySelectorTerm(ref), 317 "k8s.io/api/core/v1.TopologySpreadConstraint": schema_k8sio_api_core_v1_TopologySpreadConstraint(ref), 318 "k8s.io/api/core/v1.TypedLocalObjectReference": schema_k8sio_api_core_v1_TypedLocalObjectReference(ref), 319 "k8s.io/api/core/v1.TypedObjectReference": schema_k8sio_api_core_v1_TypedObjectReference(ref), 320 "k8s.io/api/core/v1.Volume": schema_k8sio_api_core_v1_Volume(ref), 321 "k8s.io/api/core/v1.VolumeDevice": schema_k8sio_api_core_v1_VolumeDevice(ref), 322 "k8s.io/api/core/v1.VolumeMount": schema_k8sio_api_core_v1_VolumeMount(ref), 323 "k8s.io/api/core/v1.VolumeNodeAffinity": schema_k8sio_api_core_v1_VolumeNodeAffinity(ref), 324 "k8s.io/api/core/v1.VolumeProjection": schema_k8sio_api_core_v1_VolumeProjection(ref), 325 "k8s.io/api/core/v1.VolumeSource": schema_k8sio_api_core_v1_VolumeSource(ref), 326 "k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource": schema_k8sio_api_core_v1_VsphereVirtualDiskVolumeSource(ref), 327 "k8s.io/api/core/v1.WeightedPodAffinityTerm": schema_k8sio_api_core_v1_WeightedPodAffinityTerm(ref), 328 "k8s.io/api/core/v1.WindowsSecurityContextOptions": schema_k8sio_api_core_v1_WindowsSecurityContextOptions(ref), 329 "k8s.io/api/networking/v1.HTTPIngressPath": schema_k8sio_api_networking_v1_HTTPIngressPath(ref), 330 "k8s.io/api/networking/v1.HTTPIngressRuleValue": schema_k8sio_api_networking_v1_HTTPIngressRuleValue(ref), 331 "k8s.io/api/networking/v1.IPBlock": schema_k8sio_api_networking_v1_IPBlock(ref), 332 "k8s.io/api/networking/v1.Ingress": schema_k8sio_api_networking_v1_Ingress(ref), 333 "k8s.io/api/networking/v1.IngressBackend": schema_k8sio_api_networking_v1_IngressBackend(ref), 334 "k8s.io/api/networking/v1.IngressClass": schema_k8sio_api_networking_v1_IngressClass(ref), 335 "k8s.io/api/networking/v1.IngressClassList": schema_k8sio_api_networking_v1_IngressClassList(ref), 336 "k8s.io/api/networking/v1.IngressClassParametersReference": schema_k8sio_api_networking_v1_IngressClassParametersReference(ref), 337 "k8s.io/api/networking/v1.IngressClassSpec": schema_k8sio_api_networking_v1_IngressClassSpec(ref), 338 "k8s.io/api/networking/v1.IngressList": schema_k8sio_api_networking_v1_IngressList(ref), 339 "k8s.io/api/networking/v1.IngressLoadBalancerIngress": schema_k8sio_api_networking_v1_IngressLoadBalancerIngress(ref), 340 "k8s.io/api/networking/v1.IngressLoadBalancerStatus": schema_k8sio_api_networking_v1_IngressLoadBalancerStatus(ref), 341 "k8s.io/api/networking/v1.IngressPortStatus": schema_k8sio_api_networking_v1_IngressPortStatus(ref), 342 "k8s.io/api/networking/v1.IngressRule": schema_k8sio_api_networking_v1_IngressRule(ref), 343 "k8s.io/api/networking/v1.IngressRuleValue": schema_k8sio_api_networking_v1_IngressRuleValue(ref), 344 "k8s.io/api/networking/v1.IngressServiceBackend": schema_k8sio_api_networking_v1_IngressServiceBackend(ref), 345 "k8s.io/api/networking/v1.IngressSpec": schema_k8sio_api_networking_v1_IngressSpec(ref), 346 "k8s.io/api/networking/v1.IngressStatus": schema_k8sio_api_networking_v1_IngressStatus(ref), 347 "k8s.io/api/networking/v1.IngressTLS": schema_k8sio_api_networking_v1_IngressTLS(ref), 348 "k8s.io/api/networking/v1.NetworkPolicy": schema_k8sio_api_networking_v1_NetworkPolicy(ref), 349 "k8s.io/api/networking/v1.NetworkPolicyEgressRule": schema_k8sio_api_networking_v1_NetworkPolicyEgressRule(ref), 350 "k8s.io/api/networking/v1.NetworkPolicyIngressRule": schema_k8sio_api_networking_v1_NetworkPolicyIngressRule(ref), 351 "k8s.io/api/networking/v1.NetworkPolicyList": schema_k8sio_api_networking_v1_NetworkPolicyList(ref), 352 "k8s.io/api/networking/v1.NetworkPolicyPeer": schema_k8sio_api_networking_v1_NetworkPolicyPeer(ref), 353 "k8s.io/api/networking/v1.NetworkPolicyPort": schema_k8sio_api_networking_v1_NetworkPolicyPort(ref), 354 "k8s.io/api/networking/v1.NetworkPolicySpec": schema_k8sio_api_networking_v1_NetworkPolicySpec(ref), 355 "k8s.io/api/networking/v1.NetworkPolicyStatus": schema_k8sio_api_networking_v1_NetworkPolicyStatus(ref), 356 "k8s.io/api/networking/v1.ServiceBackendPort": schema_k8sio_api_networking_v1_ServiceBackendPort(ref), 357 "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup": schema_pkg_apis_meta_v1_APIGroup(ref), 358 "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroupList": schema_pkg_apis_meta_v1_APIGroupList(ref), 359 "k8s.io/apimachinery/pkg/apis/meta/v1.APIResource": schema_pkg_apis_meta_v1_APIResource(ref), 360 "k8s.io/apimachinery/pkg/apis/meta/v1.APIResourceList": schema_pkg_apis_meta_v1_APIResourceList(ref), 361 "k8s.io/apimachinery/pkg/apis/meta/v1.APIVersions": schema_pkg_apis_meta_v1_APIVersions(ref), 362 "k8s.io/apimachinery/pkg/apis/meta/v1.ApplyOptions": schema_pkg_apis_meta_v1_ApplyOptions(ref), 363 "k8s.io/apimachinery/pkg/apis/meta/v1.Condition": schema_pkg_apis_meta_v1_Condition(ref), 364 "k8s.io/apimachinery/pkg/apis/meta/v1.CreateOptions": schema_pkg_apis_meta_v1_CreateOptions(ref), 365 "k8s.io/apimachinery/pkg/apis/meta/v1.DeleteOptions": schema_pkg_apis_meta_v1_DeleteOptions(ref), 366 "k8s.io/apimachinery/pkg/apis/meta/v1.Duration": schema_pkg_apis_meta_v1_Duration(ref), 367 "k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1": schema_pkg_apis_meta_v1_FieldsV1(ref), 368 "k8s.io/apimachinery/pkg/apis/meta/v1.GetOptions": schema_pkg_apis_meta_v1_GetOptions(ref), 369 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupKind": schema_pkg_apis_meta_v1_GroupKind(ref), 370 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupResource": schema_pkg_apis_meta_v1_GroupResource(ref), 371 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersion": schema_pkg_apis_meta_v1_GroupVersion(ref), 372 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery": schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref), 373 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionKind": schema_pkg_apis_meta_v1_GroupVersionKind(ref), 374 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionResource": schema_pkg_apis_meta_v1_GroupVersionResource(ref), 375 "k8s.io/apimachinery/pkg/apis/meta/v1.InternalEvent": schema_pkg_apis_meta_v1_InternalEvent(ref), 376 "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector": schema_pkg_apis_meta_v1_LabelSelector(ref), 377 "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement": schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref), 378 "k8s.io/apimachinery/pkg/apis/meta/v1.List": schema_pkg_apis_meta_v1_List(ref), 379 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta": schema_pkg_apis_meta_v1_ListMeta(ref), 380 "k8s.io/apimachinery/pkg/apis/meta/v1.ListOptions": schema_pkg_apis_meta_v1_ListOptions(ref), 381 "k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry": schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref), 382 "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime": schema_pkg_apis_meta_v1_MicroTime(ref), 383 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta": schema_pkg_apis_meta_v1_ObjectMeta(ref), 384 "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference": schema_pkg_apis_meta_v1_OwnerReference(ref), 385 "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata": schema_pkg_apis_meta_v1_PartialObjectMetadata(ref), 386 "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadataList": schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref), 387 "k8s.io/apimachinery/pkg/apis/meta/v1.Patch": schema_pkg_apis_meta_v1_Patch(ref), 388 "k8s.io/apimachinery/pkg/apis/meta/v1.PatchOptions": schema_pkg_apis_meta_v1_PatchOptions(ref), 389 "k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions": schema_pkg_apis_meta_v1_Preconditions(ref), 390 "k8s.io/apimachinery/pkg/apis/meta/v1.RootPaths": schema_pkg_apis_meta_v1_RootPaths(ref), 391 "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR": schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref), 392 "k8s.io/apimachinery/pkg/apis/meta/v1.Status": schema_pkg_apis_meta_v1_Status(ref), 393 "k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause": schema_pkg_apis_meta_v1_StatusCause(ref), 394 "k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails": schema_pkg_apis_meta_v1_StatusDetails(ref), 395 "k8s.io/apimachinery/pkg/apis/meta/v1.Table": schema_pkg_apis_meta_v1_Table(ref), 396 "k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition": schema_pkg_apis_meta_v1_TableColumnDefinition(ref), 397 "k8s.io/apimachinery/pkg/apis/meta/v1.TableOptions": schema_pkg_apis_meta_v1_TableOptions(ref), 398 "k8s.io/apimachinery/pkg/apis/meta/v1.TableRow": schema_pkg_apis_meta_v1_TableRow(ref), 399 "k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition": schema_pkg_apis_meta_v1_TableRowCondition(ref), 400 "k8s.io/apimachinery/pkg/apis/meta/v1.Time": schema_pkg_apis_meta_v1_Time(ref), 401 "k8s.io/apimachinery/pkg/apis/meta/v1.Timestamp": schema_pkg_apis_meta_v1_Timestamp(ref), 402 "k8s.io/apimachinery/pkg/apis/meta/v1.TypeMeta": schema_pkg_apis_meta_v1_TypeMeta(ref), 403 "k8s.io/apimachinery/pkg/apis/meta/v1.UpdateOptions": schema_pkg_apis_meta_v1_UpdateOptions(ref), 404 "k8s.io/apimachinery/pkg/apis/meta/v1.WatchEvent": schema_pkg_apis_meta_v1_WatchEvent(ref), 405 "k8s.io/apimachinery/pkg/runtime.RawExtension": schema_k8sio_apimachinery_pkg_runtime_RawExtension(ref), 406 "k8s.io/apimachinery/pkg/runtime.TypeMeta": schema_k8sio_apimachinery_pkg_runtime_TypeMeta(ref), 407 "k8s.io/apimachinery/pkg/runtime.Unknown": schema_k8sio_apimachinery_pkg_runtime_Unknown(ref), 408 "k8s.io/apimachinery/pkg/util/intstr.IntOrString": schema_apimachinery_pkg_util_intstr_IntOrString(ref), 409 "k8s.io/apimachinery/pkg/version.Info": schema_k8sio_apimachinery_pkg_version_Info(ref), 410 } 411 } 412 413 func schema_pkg_apis_projectcalico_v3_AutoHostEndpointConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 414 return common.OpenAPIDefinition{ 415 Schema: spec.Schema{ 416 SchemaProps: spec.SchemaProps{ 417 Type: []string{"object"}, 418 Properties: map[string]spec.Schema{ 419 "autoCreate": { 420 SchemaProps: spec.SchemaProps{ 421 Description: "AutoCreate enables automatic creation of host endpoints for every node. [Default: Disabled]", 422 Type: []string{"string"}, 423 Format: "", 424 }, 425 }, 426 }, 427 }, 428 }, 429 } 430 } 431 432 func schema_pkg_apis_projectcalico_v3_BGPConfiguration(ref common.ReferenceCallback) common.OpenAPIDefinition { 433 return common.OpenAPIDefinition{ 434 Schema: spec.Schema{ 435 SchemaProps: spec.SchemaProps{ 436 Type: []string{"object"}, 437 Properties: map[string]spec.Schema{ 438 "kind": { 439 SchemaProps: spec.SchemaProps{ 440 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 441 Type: []string{"string"}, 442 Format: "", 443 }, 444 }, 445 "apiVersion": { 446 SchemaProps: spec.SchemaProps{ 447 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 448 Type: []string{"string"}, 449 Format: "", 450 }, 451 }, 452 "metadata": { 453 SchemaProps: spec.SchemaProps{ 454 Default: map[string]interface{}{}, 455 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 456 }, 457 }, 458 "spec": { 459 SchemaProps: spec.SchemaProps{ 460 Default: map[string]interface{}{}, 461 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPConfigurationSpec"), 462 }, 463 }, 464 }, 465 }, 466 }, 467 Dependencies: []string{ 468 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPConfigurationSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 469 } 470 } 471 472 func schema_pkg_apis_projectcalico_v3_BGPConfigurationList(ref common.ReferenceCallback) common.OpenAPIDefinition { 473 return common.OpenAPIDefinition{ 474 Schema: spec.Schema{ 475 SchemaProps: spec.SchemaProps{ 476 Description: "BGPConfigurationList is a list of BGPConfiguration resources.", 477 Type: []string{"object"}, 478 Properties: map[string]spec.Schema{ 479 "kind": { 480 SchemaProps: spec.SchemaProps{ 481 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 482 Type: []string{"string"}, 483 Format: "", 484 }, 485 }, 486 "apiVersion": { 487 SchemaProps: spec.SchemaProps{ 488 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 489 Type: []string{"string"}, 490 Format: "", 491 }, 492 }, 493 "metadata": { 494 SchemaProps: spec.SchemaProps{ 495 Default: map[string]interface{}{}, 496 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 497 }, 498 }, 499 "items": { 500 SchemaProps: spec.SchemaProps{ 501 Type: []string{"array"}, 502 Items: &spec.SchemaOrArray{ 503 Schema: &spec.Schema{ 504 SchemaProps: spec.SchemaProps{ 505 Default: map[string]interface{}{}, 506 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPConfiguration"), 507 }, 508 }, 509 }, 510 }, 511 }, 512 }, 513 Required: []string{"items"}, 514 }, 515 }, 516 Dependencies: []string{ 517 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPConfiguration", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 518 } 519 } 520 521 func schema_pkg_apis_projectcalico_v3_BGPConfigurationSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 522 return common.OpenAPIDefinition{ 523 Schema: spec.Schema{ 524 SchemaProps: spec.SchemaProps{ 525 Description: "BGPConfigurationSpec contains the values of the BGP configuration.", 526 Type: []string{"object"}, 527 Properties: map[string]spec.Schema{ 528 "logSeverityScreen": { 529 SchemaProps: spec.SchemaProps{ 530 Description: "LogSeverityScreen is the log severity above which logs are sent to the stdout. [Default: INFO]", 531 Type: []string{"string"}, 532 Format: "", 533 }, 534 }, 535 "nodeToNodeMeshEnabled": { 536 SchemaProps: spec.SchemaProps{ 537 Description: "NodeToNodeMeshEnabled sets whether full node to node BGP mesh is enabled. [Default: true]", 538 Type: []string{"boolean"}, 539 Format: "", 540 }, 541 }, 542 "asNumber": { 543 SchemaProps: spec.SchemaProps{ 544 Description: "ASNumber is the default AS number used by a node. [Default: 64512]", 545 Type: []string{"integer"}, 546 Format: "int64", 547 }, 548 }, 549 "serviceLoadBalancerIPs": { 550 SchemaProps: spec.SchemaProps{ 551 Description: "ServiceLoadBalancerIPs are the CIDR blocks for Kubernetes Service LoadBalancer IPs. Kubernetes Service status.LoadBalancer.Ingress IPs will only be advertised if they are within one of these blocks.", 552 Type: []string{"array"}, 553 Items: &spec.SchemaOrArray{ 554 Schema: &spec.Schema{ 555 SchemaProps: spec.SchemaProps{ 556 Default: map[string]interface{}{}, 557 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.ServiceLoadBalancerIPBlock"), 558 }, 559 }, 560 }, 561 }, 562 }, 563 "serviceExternalIPs": { 564 SchemaProps: spec.SchemaProps{ 565 Description: "ServiceExternalIPs are the CIDR blocks for Kubernetes Service External IPs. Kubernetes Service ExternalIPs will only be advertised if they are within one of these blocks.", 566 Type: []string{"array"}, 567 Items: &spec.SchemaOrArray{ 568 Schema: &spec.Schema{ 569 SchemaProps: spec.SchemaProps{ 570 Default: map[string]interface{}{}, 571 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.ServiceExternalIPBlock"), 572 }, 573 }, 574 }, 575 }, 576 }, 577 "serviceClusterIPs": { 578 SchemaProps: spec.SchemaProps{ 579 Description: "ServiceClusterIPs are the CIDR blocks from which service cluster IPs are allocated. If specified, Calico will advertise these blocks, as well as any cluster IPs within them.", 580 Type: []string{"array"}, 581 Items: &spec.SchemaOrArray{ 582 Schema: &spec.Schema{ 583 SchemaProps: spec.SchemaProps{ 584 Default: map[string]interface{}{}, 585 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.ServiceClusterIPBlock"), 586 }, 587 }, 588 }, 589 }, 590 }, 591 "communities": { 592 SchemaProps: spec.SchemaProps{ 593 Description: "Communities is a list of BGP community values and their arbitrary names for tagging routes.", 594 Type: []string{"array"}, 595 Items: &spec.SchemaOrArray{ 596 Schema: &spec.Schema{ 597 SchemaProps: spec.SchemaProps{ 598 Default: map[string]interface{}{}, 599 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.Community"), 600 }, 601 }, 602 }, 603 }, 604 }, 605 "prefixAdvertisements": { 606 SchemaProps: spec.SchemaProps{ 607 Description: "PrefixAdvertisements contains per-prefix advertisement configuration.", 608 Type: []string{"array"}, 609 Items: &spec.SchemaOrArray{ 610 Schema: &spec.Schema{ 611 SchemaProps: spec.SchemaProps{ 612 Default: map[string]interface{}{}, 613 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.PrefixAdvertisement"), 614 }, 615 }, 616 }, 617 }, 618 }, 619 "listenPort": { 620 SchemaProps: spec.SchemaProps{ 621 Description: "ListenPort is the port where BGP protocol should listen. Defaults to 179", 622 Type: []string{"integer"}, 623 Format: "int32", 624 }, 625 }, 626 "nodeMeshPassword": { 627 SchemaProps: spec.SchemaProps{ 628 Description: "Optional BGP password for full node-to-mesh peerings. This field can only be set on the default BGPConfiguration instance and requires that NodeMesh is enabled", 629 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPPassword"), 630 }, 631 }, 632 "nodeMeshMaxRestartTime": { 633 SchemaProps: spec.SchemaProps{ 634 Description: "Time to allow for software restart for node-to-mesh peerings. When specified, this is configured as the graceful restart timeout. When not specified, the BIRD default of 120s is used. This field can only be set on the default BGPConfiguration instance and requires that NodeMesh is enabled", 635 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 636 }, 637 }, 638 "bindMode": { 639 SchemaProps: spec.SchemaProps{ 640 Description: "BindMode indicates whether to listen for BGP connections on all addresses (None) or only on the node's canonical IP address Node.Spec.BGP.IPvXAddress (NodeIP). Default behaviour is to listen for BGP connections on all addresses.", 641 Type: []string{"string"}, 642 Format: "", 643 }, 644 }, 645 "ignoredInterfaces": { 646 SchemaProps: spec.SchemaProps{ 647 Description: "IgnoredInterfaces indicates the network interfaces that needs to be excluded when reading device routes.", 648 Type: []string{"array"}, 649 Items: &spec.SchemaOrArray{ 650 Schema: &spec.Schema{ 651 SchemaProps: spec.SchemaProps{ 652 Default: "", 653 Type: []string{"string"}, 654 Format: "", 655 }, 656 }, 657 }, 658 }, 659 }, 660 }, 661 }, 662 }, 663 Dependencies: []string{ 664 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPPassword", "github.com/projectcalico/api/pkg/apis/projectcalico/v3.Community", "github.com/projectcalico/api/pkg/apis/projectcalico/v3.PrefixAdvertisement", "github.com/projectcalico/api/pkg/apis/projectcalico/v3.ServiceClusterIPBlock", "github.com/projectcalico/api/pkg/apis/projectcalico/v3.ServiceExternalIPBlock", "github.com/projectcalico/api/pkg/apis/projectcalico/v3.ServiceLoadBalancerIPBlock", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration"}, 665 } 666 } 667 668 func schema_pkg_apis_projectcalico_v3_BGPDaemonStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 669 return common.OpenAPIDefinition{ 670 Schema: spec.Schema{ 671 SchemaProps: spec.SchemaProps{ 672 Description: "BGPDaemonStatus defines the observed state of BGP daemon.", 673 Type: []string{"object"}, 674 Properties: map[string]spec.Schema{ 675 "state": { 676 SchemaProps: spec.SchemaProps{ 677 Description: "The state of the BGP Daemon.", 678 Type: []string{"string"}, 679 Format: "", 680 }, 681 }, 682 "version": { 683 SchemaProps: spec.SchemaProps{ 684 Description: "Version of the BGP daemon", 685 Type: []string{"string"}, 686 Format: "", 687 }, 688 }, 689 "routerID": { 690 SchemaProps: spec.SchemaProps{ 691 Description: "Router ID used by bird.", 692 Type: []string{"string"}, 693 Format: "", 694 }, 695 }, 696 "lastBootTime": { 697 SchemaProps: spec.SchemaProps{ 698 Description: "LastBootTime holds the value of lastBootTime from bird.ctl output.", 699 Type: []string{"string"}, 700 Format: "", 701 }, 702 }, 703 "lastReconfigurationTime": { 704 SchemaProps: spec.SchemaProps{ 705 Description: "LastReconfigurationTime holds the value of lastReconfigTime from bird.ctl output.", 706 Type: []string{"string"}, 707 Format: "", 708 }, 709 }, 710 }, 711 }, 712 }, 713 } 714 } 715 716 func schema_pkg_apis_projectcalico_v3_BGPFilter(ref common.ReferenceCallback) common.OpenAPIDefinition { 717 return common.OpenAPIDefinition{ 718 Schema: spec.Schema{ 719 SchemaProps: spec.SchemaProps{ 720 Type: []string{"object"}, 721 Properties: map[string]spec.Schema{ 722 "kind": { 723 SchemaProps: spec.SchemaProps{ 724 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 725 Type: []string{"string"}, 726 Format: "", 727 }, 728 }, 729 "apiVersion": { 730 SchemaProps: spec.SchemaProps{ 731 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 732 Type: []string{"string"}, 733 Format: "", 734 }, 735 }, 736 "metadata": { 737 SchemaProps: spec.SchemaProps{ 738 Default: map[string]interface{}{}, 739 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 740 }, 741 }, 742 "spec": { 743 SchemaProps: spec.SchemaProps{ 744 Default: map[string]interface{}{}, 745 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPFilterSpec"), 746 }, 747 }, 748 }, 749 }, 750 }, 751 Dependencies: []string{ 752 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPFilterSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 753 } 754 } 755 756 func schema_pkg_apis_projectcalico_v3_BGPFilterList(ref common.ReferenceCallback) common.OpenAPIDefinition { 757 return common.OpenAPIDefinition{ 758 Schema: spec.Schema{ 759 SchemaProps: spec.SchemaProps{ 760 Description: "BGPFilterList is a list of BGPFilter resources.", 761 Type: []string{"object"}, 762 Properties: map[string]spec.Schema{ 763 "kind": { 764 SchemaProps: spec.SchemaProps{ 765 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 766 Type: []string{"string"}, 767 Format: "", 768 }, 769 }, 770 "apiVersion": { 771 SchemaProps: spec.SchemaProps{ 772 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 773 Type: []string{"string"}, 774 Format: "", 775 }, 776 }, 777 "metadata": { 778 SchemaProps: spec.SchemaProps{ 779 Default: map[string]interface{}{}, 780 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 781 }, 782 }, 783 "items": { 784 SchemaProps: spec.SchemaProps{ 785 Type: []string{"array"}, 786 Items: &spec.SchemaOrArray{ 787 Schema: &spec.Schema{ 788 SchemaProps: spec.SchemaProps{ 789 Default: map[string]interface{}{}, 790 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPFilter"), 791 }, 792 }, 793 }, 794 }, 795 }, 796 }, 797 Required: []string{"items"}, 798 }, 799 }, 800 Dependencies: []string{ 801 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPFilter", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 802 } 803 } 804 805 func schema_pkg_apis_projectcalico_v3_BGPFilterRuleV4(ref common.ReferenceCallback) common.OpenAPIDefinition { 806 return common.OpenAPIDefinition{ 807 Schema: spec.Schema{ 808 SchemaProps: spec.SchemaProps{ 809 Description: "BGPFilterRuleV4 defines a BGP filter rule consisting a single IPv4 CIDR block and a filter action for this CIDR.", 810 Type: []string{"object"}, 811 Properties: map[string]spec.Schema{ 812 "cidr": { 813 SchemaProps: spec.SchemaProps{ 814 Type: []string{"string"}, 815 Format: "", 816 }, 817 }, 818 "source": { 819 SchemaProps: spec.SchemaProps{ 820 Type: []string{"string"}, 821 Format: "", 822 }, 823 }, 824 "interface": { 825 SchemaProps: spec.SchemaProps{ 826 Type: []string{"string"}, 827 Format: "", 828 }, 829 }, 830 "matchOperator": { 831 SchemaProps: spec.SchemaProps{ 832 Type: []string{"string"}, 833 Format: "", 834 }, 835 }, 836 "action": { 837 SchemaProps: spec.SchemaProps{ 838 Default: "", 839 Type: []string{"string"}, 840 Format: "", 841 }, 842 }, 843 }, 844 Required: []string{"action"}, 845 }, 846 }, 847 } 848 } 849 850 func schema_pkg_apis_projectcalico_v3_BGPFilterRuleV6(ref common.ReferenceCallback) common.OpenAPIDefinition { 851 return common.OpenAPIDefinition{ 852 Schema: spec.Schema{ 853 SchemaProps: spec.SchemaProps{ 854 Description: "BGPFilterRuleV6 defines a BGP filter rule consisting a single IPv6 CIDR block and a filter action for this CIDR.", 855 Type: []string{"object"}, 856 Properties: map[string]spec.Schema{ 857 "cidr": { 858 SchemaProps: spec.SchemaProps{ 859 Type: []string{"string"}, 860 Format: "", 861 }, 862 }, 863 "source": { 864 SchemaProps: spec.SchemaProps{ 865 Type: []string{"string"}, 866 Format: "", 867 }, 868 }, 869 "interface": { 870 SchemaProps: spec.SchemaProps{ 871 Type: []string{"string"}, 872 Format: "", 873 }, 874 }, 875 "matchOperator": { 876 SchemaProps: spec.SchemaProps{ 877 Type: []string{"string"}, 878 Format: "", 879 }, 880 }, 881 "action": { 882 SchemaProps: spec.SchemaProps{ 883 Default: "", 884 Type: []string{"string"}, 885 Format: "", 886 }, 887 }, 888 }, 889 Required: []string{"action"}, 890 }, 891 }, 892 } 893 } 894 895 func schema_pkg_apis_projectcalico_v3_BGPFilterSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 896 return common.OpenAPIDefinition{ 897 Schema: spec.Schema{ 898 SchemaProps: spec.SchemaProps{ 899 Description: "BGPFilterSpec contains the IPv4 and IPv6 filter rules of the BGP Filter.", 900 Type: []string{"object"}, 901 Properties: map[string]spec.Schema{ 902 "exportV4": { 903 SchemaProps: spec.SchemaProps{ 904 Description: "The ordered set of IPv4 BGPFilter rules acting on exporting routes to a peer.", 905 Type: []string{"array"}, 906 Items: &spec.SchemaOrArray{ 907 Schema: &spec.Schema{ 908 SchemaProps: spec.SchemaProps{ 909 Default: map[string]interface{}{}, 910 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPFilterRuleV4"), 911 }, 912 }, 913 }, 914 }, 915 }, 916 "importV4": { 917 SchemaProps: spec.SchemaProps{ 918 Description: "The ordered set of IPv4 BGPFilter rules acting on importing routes from a peer.", 919 Type: []string{"array"}, 920 Items: &spec.SchemaOrArray{ 921 Schema: &spec.Schema{ 922 SchemaProps: spec.SchemaProps{ 923 Default: map[string]interface{}{}, 924 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPFilterRuleV4"), 925 }, 926 }, 927 }, 928 }, 929 }, 930 "exportV6": { 931 SchemaProps: spec.SchemaProps{ 932 Description: "The ordered set of IPv6 BGPFilter rules acting on exporting routes to a peer.", 933 Type: []string{"array"}, 934 Items: &spec.SchemaOrArray{ 935 Schema: &spec.Schema{ 936 SchemaProps: spec.SchemaProps{ 937 Default: map[string]interface{}{}, 938 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPFilterRuleV6"), 939 }, 940 }, 941 }, 942 }, 943 }, 944 "importV6": { 945 SchemaProps: spec.SchemaProps{ 946 Description: "The ordered set of IPv6 BGPFilter rules acting on importing routes from a peer.", 947 Type: []string{"array"}, 948 Items: &spec.SchemaOrArray{ 949 Schema: &spec.Schema{ 950 SchemaProps: spec.SchemaProps{ 951 Default: map[string]interface{}{}, 952 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPFilterRuleV6"), 953 }, 954 }, 955 }, 956 }, 957 }, 958 }, 959 }, 960 }, 961 Dependencies: []string{ 962 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPFilterRuleV4", "github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPFilterRuleV6"}, 963 } 964 } 965 966 func schema_pkg_apis_projectcalico_v3_BGPPassword(ref common.ReferenceCallback) common.OpenAPIDefinition { 967 return common.OpenAPIDefinition{ 968 Schema: spec.Schema{ 969 SchemaProps: spec.SchemaProps{ 970 Description: "BGPPassword contains ways to specify a BGP password.", 971 Type: []string{"object"}, 972 Properties: map[string]spec.Schema{ 973 "secretKeyRef": { 974 SchemaProps: spec.SchemaProps{ 975 Description: "Selects a key of a secret in the node pod's namespace.", 976 Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), 977 }, 978 }, 979 }, 980 }, 981 }, 982 Dependencies: []string{ 983 "k8s.io/api/core/v1.SecretKeySelector"}, 984 } 985 } 986 987 func schema_pkg_apis_projectcalico_v3_BGPPeer(ref common.ReferenceCallback) common.OpenAPIDefinition { 988 return common.OpenAPIDefinition{ 989 Schema: spec.Schema{ 990 SchemaProps: spec.SchemaProps{ 991 Type: []string{"object"}, 992 Properties: map[string]spec.Schema{ 993 "kind": { 994 SchemaProps: spec.SchemaProps{ 995 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 996 Type: []string{"string"}, 997 Format: "", 998 }, 999 }, 1000 "apiVersion": { 1001 SchemaProps: spec.SchemaProps{ 1002 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 1003 Type: []string{"string"}, 1004 Format: "", 1005 }, 1006 }, 1007 "metadata": { 1008 SchemaProps: spec.SchemaProps{ 1009 Default: map[string]interface{}{}, 1010 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 1011 }, 1012 }, 1013 "spec": { 1014 SchemaProps: spec.SchemaProps{ 1015 Default: map[string]interface{}{}, 1016 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPPeerSpec"), 1017 }, 1018 }, 1019 }, 1020 }, 1021 }, 1022 Dependencies: []string{ 1023 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPPeerSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 1024 } 1025 } 1026 1027 func schema_pkg_apis_projectcalico_v3_BGPPeerList(ref common.ReferenceCallback) common.OpenAPIDefinition { 1028 return common.OpenAPIDefinition{ 1029 Schema: spec.Schema{ 1030 SchemaProps: spec.SchemaProps{ 1031 Description: "BGPPeerList is a list of BGPPeer resources.", 1032 Type: []string{"object"}, 1033 Properties: map[string]spec.Schema{ 1034 "kind": { 1035 SchemaProps: spec.SchemaProps{ 1036 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1037 Type: []string{"string"}, 1038 Format: "", 1039 }, 1040 }, 1041 "apiVersion": { 1042 SchemaProps: spec.SchemaProps{ 1043 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 1044 Type: []string{"string"}, 1045 Format: "", 1046 }, 1047 }, 1048 "metadata": { 1049 SchemaProps: spec.SchemaProps{ 1050 Default: map[string]interface{}{}, 1051 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 1052 }, 1053 }, 1054 "items": { 1055 SchemaProps: spec.SchemaProps{ 1056 Type: []string{"array"}, 1057 Items: &spec.SchemaOrArray{ 1058 Schema: &spec.Schema{ 1059 SchemaProps: spec.SchemaProps{ 1060 Default: map[string]interface{}{}, 1061 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPPeer"), 1062 }, 1063 }, 1064 }, 1065 }, 1066 }, 1067 }, 1068 Required: []string{"items"}, 1069 }, 1070 }, 1071 Dependencies: []string{ 1072 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPPeer", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 1073 } 1074 } 1075 1076 func schema_pkg_apis_projectcalico_v3_BGPPeerSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 1077 return common.OpenAPIDefinition{ 1078 Schema: spec.Schema{ 1079 SchemaProps: spec.SchemaProps{ 1080 Description: "BGPPeerSpec contains the specification for a BGPPeer resource.", 1081 Type: []string{"object"}, 1082 Properties: map[string]spec.Schema{ 1083 "node": { 1084 SchemaProps: spec.SchemaProps{ 1085 Description: "The node name identifying the Calico node instance that is targeted by this peer. If this is not set, and no nodeSelector is specified, then this BGP peer selects all nodes in the cluster.", 1086 Type: []string{"string"}, 1087 Format: "", 1088 }, 1089 }, 1090 "nodeSelector": { 1091 SchemaProps: spec.SchemaProps{ 1092 Description: "Selector for the nodes that should have this peering. When this is set, the Node field must be empty.", 1093 Type: []string{"string"}, 1094 Format: "", 1095 }, 1096 }, 1097 "peerIP": { 1098 SchemaProps: spec.SchemaProps{ 1099 Description: "The IP address of the peer followed by an optional port number to peer with. If port number is given, format should be `[<IPv6>]:port` or `<IPv4>:<port>` for IPv4. If optional port number is not set, and this peer IP and ASNumber belongs to a calico/node with ListenPort set in BGPConfiguration, then we use that port to peer.", 1100 Type: []string{"string"}, 1101 Format: "", 1102 }, 1103 }, 1104 "asNumber": { 1105 SchemaProps: spec.SchemaProps{ 1106 Description: "The AS Number of the peer.", 1107 Type: []string{"integer"}, 1108 Format: "int64", 1109 }, 1110 }, 1111 "peerSelector": { 1112 SchemaProps: spec.SchemaProps{ 1113 Description: "Selector for the remote nodes to peer with. When this is set, the PeerIP and ASNumber fields must be empty. For each peering between the local node and selected remote nodes, we configure an IPv4 peering if both ends have NodeBGPSpec.IPv4Address specified, and an IPv6 peering if both ends have NodeBGPSpec.IPv6Address specified. The remote AS number comes from the remote node's NodeBGPSpec.ASNumber, or the global default if that is not set.", 1114 Type: []string{"string"}, 1115 Format: "", 1116 }, 1117 }, 1118 "keepOriginalNextHop": { 1119 SchemaProps: spec.SchemaProps{ 1120 Description: "Option to keep the original nexthop field when routes are sent to a BGP Peer. Setting \"true\" configures the selected BGP Peers node to use the \"next hop keep;\" instead of \"next hop self;\"(default) in the specific branch of the Node on \"bird.cfg\".", 1121 Type: []string{"boolean"}, 1122 Format: "", 1123 }, 1124 }, 1125 "password": { 1126 SchemaProps: spec.SchemaProps{ 1127 Description: "Optional BGP password for the peerings generated by this BGPPeer resource.", 1128 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPPassword"), 1129 }, 1130 }, 1131 "sourceAddress": { 1132 SchemaProps: spec.SchemaProps{ 1133 Description: "Specifies whether and how to configure a source address for the peerings generated by this BGPPeer resource. Default value \"UseNodeIP\" means to configure the node IP as the source address. \"None\" means not to configure a source address.", 1134 Type: []string{"string"}, 1135 Format: "", 1136 }, 1137 }, 1138 "maxRestartTime": { 1139 SchemaProps: spec.SchemaProps{ 1140 Description: "Time to allow for software restart. When specified, this is configured as the graceful restart timeout. When not specified, the BIRD default of 120s is used.", 1141 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 1142 }, 1143 }, 1144 "numAllowedLocalASNumbers": { 1145 SchemaProps: spec.SchemaProps{ 1146 Description: "Maximum number of local AS numbers that are allowed in the AS path for received routes. This removes BGP loop prevention and should only be used if absolutely necessary.", 1147 Type: []string{"integer"}, 1148 Format: "int32", 1149 }, 1150 }, 1151 "ttlSecurity": { 1152 SchemaProps: spec.SchemaProps{ 1153 Description: "TTLSecurity enables the generalized TTL security mechanism (GTSM) which protects against spoofed packets by ignoring received packets with a smaller than expected TTL value. The provided value is the number of hops (edges) between the peers.", 1154 Type: []string{"integer"}, 1155 Format: "byte", 1156 }, 1157 }, 1158 "reachableBy": { 1159 SchemaProps: spec.SchemaProps{ 1160 Description: "Add an exact, i.e. /32, static route toward peer IP in order to prevent route flapping. ReachableBy contains the address of the gateway which peer can be reached by.", 1161 Type: []string{"string"}, 1162 Format: "", 1163 }, 1164 }, 1165 "filters": { 1166 SchemaProps: spec.SchemaProps{ 1167 Description: "The ordered set of BGPFilters applied on this BGP peer.", 1168 Type: []string{"array"}, 1169 Items: &spec.SchemaOrArray{ 1170 Schema: &spec.Schema{ 1171 SchemaProps: spec.SchemaProps{ 1172 Default: "", 1173 Type: []string{"string"}, 1174 Format: "", 1175 }, 1176 }, 1177 }, 1178 }, 1179 }, 1180 }, 1181 }, 1182 }, 1183 Dependencies: []string{ 1184 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPPassword", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration"}, 1185 } 1186 } 1187 1188 func schema_pkg_apis_projectcalico_v3_BlockAffinity(ref common.ReferenceCallback) common.OpenAPIDefinition { 1189 return common.OpenAPIDefinition{ 1190 Schema: spec.Schema{ 1191 SchemaProps: spec.SchemaProps{ 1192 Description: "BlockAffinity maintains a block affinity's state", 1193 Type: []string{"object"}, 1194 Properties: map[string]spec.Schema{ 1195 "kind": { 1196 SchemaProps: spec.SchemaProps{ 1197 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1198 Type: []string{"string"}, 1199 Format: "", 1200 }, 1201 }, 1202 "apiVersion": { 1203 SchemaProps: spec.SchemaProps{ 1204 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 1205 Type: []string{"string"}, 1206 Format: "", 1207 }, 1208 }, 1209 "metadata": { 1210 SchemaProps: spec.SchemaProps{ 1211 Description: "Standard object's metadata.", 1212 Default: map[string]interface{}{}, 1213 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 1214 }, 1215 }, 1216 "spec": { 1217 SchemaProps: spec.SchemaProps{ 1218 Description: "Specification of the BlockAffinity.", 1219 Default: map[string]interface{}{}, 1220 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.BlockAffinitySpec"), 1221 }, 1222 }, 1223 }, 1224 }, 1225 }, 1226 Dependencies: []string{ 1227 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.BlockAffinitySpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 1228 } 1229 } 1230 1231 func schema_pkg_apis_projectcalico_v3_BlockAffinityList(ref common.ReferenceCallback) common.OpenAPIDefinition { 1232 return common.OpenAPIDefinition{ 1233 Schema: spec.Schema{ 1234 SchemaProps: spec.SchemaProps{ 1235 Description: "BlockAffinityList contains a list of BlockAffinity resources.", 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 Default: map[string]interface{}{}, 1255 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 1256 }, 1257 }, 1258 "items": { 1259 SchemaProps: spec.SchemaProps{ 1260 Type: []string{"array"}, 1261 Items: &spec.SchemaOrArray{ 1262 Schema: &spec.Schema{ 1263 SchemaProps: spec.SchemaProps{ 1264 Default: map[string]interface{}{}, 1265 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.BlockAffinity"), 1266 }, 1267 }, 1268 }, 1269 }, 1270 }, 1271 }, 1272 Required: []string{"metadata", "items"}, 1273 }, 1274 }, 1275 Dependencies: []string{ 1276 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.BlockAffinity", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 1277 } 1278 } 1279 1280 func schema_pkg_apis_projectcalico_v3_BlockAffinitySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 1281 return common.OpenAPIDefinition{ 1282 Schema: spec.Schema{ 1283 SchemaProps: spec.SchemaProps{ 1284 Description: "BlockAffinitySpec contains the specification for a BlockAffinity resource.", 1285 Type: []string{"object"}, 1286 Properties: map[string]spec.Schema{ 1287 "state": { 1288 SchemaProps: spec.SchemaProps{ 1289 Description: "The state of the block affinity with regard to any referenced IPAM blocks.", 1290 Default: "", 1291 Type: []string{"string"}, 1292 Format: "", 1293 }, 1294 }, 1295 "node": { 1296 SchemaProps: spec.SchemaProps{ 1297 Description: "The node that this block affinity is assigned to.", 1298 Default: "", 1299 Type: []string{"string"}, 1300 Format: "", 1301 }, 1302 }, 1303 "cidr": { 1304 SchemaProps: spec.SchemaProps{ 1305 Description: "The CIDR range this block affinity references.", 1306 Default: "", 1307 Type: []string{"string"}, 1308 Format: "", 1309 }, 1310 }, 1311 "deleted": { 1312 SchemaProps: spec.SchemaProps{ 1313 Description: "Deleted indicates whether or not this block affinity is disabled and is used as part of race-condition prevention. When set to true, clients should treat this block as if it does not exist.", 1314 Type: []string{"boolean"}, 1315 Format: "", 1316 }, 1317 }, 1318 }, 1319 Required: []string{"state", "node", "cidr"}, 1320 }, 1321 }, 1322 } 1323 } 1324 1325 func schema_pkg_apis_projectcalico_v3_CalicoNodeAgentStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 1326 return common.OpenAPIDefinition{ 1327 Schema: spec.Schema{ 1328 SchemaProps: spec.SchemaProps{ 1329 Description: "CalicoNodeAgentStatus defines the observed state of agent status on the node.", 1330 Type: []string{"object"}, 1331 Properties: map[string]spec.Schema{ 1332 "birdV4": { 1333 SchemaProps: spec.SchemaProps{ 1334 Description: "BIRDV4 represents the latest observed status of bird4.", 1335 Default: map[string]interface{}{}, 1336 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPDaemonStatus"), 1337 }, 1338 }, 1339 "birdV6": { 1340 SchemaProps: spec.SchemaProps{ 1341 Description: "BIRDV6 represents the latest observed status of bird6.", 1342 Default: map[string]interface{}{}, 1343 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPDaemonStatus"), 1344 }, 1345 }, 1346 }, 1347 }, 1348 }, 1349 Dependencies: []string{ 1350 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.BGPDaemonStatus"}, 1351 } 1352 } 1353 1354 func schema_pkg_apis_projectcalico_v3_CalicoNodeBGPRouteStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 1355 return common.OpenAPIDefinition{ 1356 Schema: spec.Schema{ 1357 SchemaProps: spec.SchemaProps{ 1358 Description: "CalicoNodeBGPRouteStatus defines the observed state of routes status on the node.", 1359 Type: []string{"object"}, 1360 Properties: map[string]spec.Schema{ 1361 "routesV4": { 1362 SchemaProps: spec.SchemaProps{ 1363 Description: "RoutesV4 represents IPv4 routes on the node.", 1364 Type: []string{"array"}, 1365 Items: &spec.SchemaOrArray{ 1366 Schema: &spec.Schema{ 1367 SchemaProps: spec.SchemaProps{ 1368 Default: map[string]interface{}{}, 1369 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.CalicoNodeRoute"), 1370 }, 1371 }, 1372 }, 1373 }, 1374 }, 1375 "routesV6": { 1376 SchemaProps: spec.SchemaProps{ 1377 Description: "RoutesV6 represents IPv6 routes on the node.", 1378 Type: []string{"array"}, 1379 Items: &spec.SchemaOrArray{ 1380 Schema: &spec.Schema{ 1381 SchemaProps: spec.SchemaProps{ 1382 Default: map[string]interface{}{}, 1383 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.CalicoNodeRoute"), 1384 }, 1385 }, 1386 }, 1387 }, 1388 }, 1389 }, 1390 }, 1391 }, 1392 Dependencies: []string{ 1393 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.CalicoNodeRoute"}, 1394 } 1395 } 1396 1397 func schema_pkg_apis_projectcalico_v3_CalicoNodeBGPStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 1398 return common.OpenAPIDefinition{ 1399 Schema: spec.Schema{ 1400 SchemaProps: spec.SchemaProps{ 1401 Description: "CalicoNodeBGPStatus defines the observed state of BGP status on the node.", 1402 Type: []string{"object"}, 1403 Properties: map[string]spec.Schema{ 1404 "numberEstablishedV4": { 1405 SchemaProps: spec.SchemaProps{ 1406 Description: "The total number of IPv4 established bgp sessions.", 1407 Default: 0, 1408 Type: []string{"integer"}, 1409 Format: "int32", 1410 }, 1411 }, 1412 "numberNotEstablishedV4": { 1413 SchemaProps: spec.SchemaProps{ 1414 Description: "The total number of IPv4 non-established bgp sessions.", 1415 Default: 0, 1416 Type: []string{"integer"}, 1417 Format: "int32", 1418 }, 1419 }, 1420 "numberEstablishedV6": { 1421 SchemaProps: spec.SchemaProps{ 1422 Description: "The total number of IPv6 established bgp sessions.", 1423 Default: 0, 1424 Type: []string{"integer"}, 1425 Format: "int32", 1426 }, 1427 }, 1428 "numberNotEstablishedV6": { 1429 SchemaProps: spec.SchemaProps{ 1430 Description: "The total number of IPv6 non-established bgp sessions.", 1431 Default: 0, 1432 Type: []string{"integer"}, 1433 Format: "int32", 1434 }, 1435 }, 1436 "peersV4": { 1437 SchemaProps: spec.SchemaProps{ 1438 Description: "PeersV4 represents IPv4 BGP peers status on the node.", 1439 Type: []string{"array"}, 1440 Items: &spec.SchemaOrArray{ 1441 Schema: &spec.Schema{ 1442 SchemaProps: spec.SchemaProps{ 1443 Default: map[string]interface{}{}, 1444 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.CalicoNodePeer"), 1445 }, 1446 }, 1447 }, 1448 }, 1449 }, 1450 "peersV6": { 1451 SchemaProps: spec.SchemaProps{ 1452 Description: "PeersV6 represents IPv6 BGP peers status on the node.", 1453 Type: []string{"array"}, 1454 Items: &spec.SchemaOrArray{ 1455 Schema: &spec.Schema{ 1456 SchemaProps: spec.SchemaProps{ 1457 Default: map[string]interface{}{}, 1458 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.CalicoNodePeer"), 1459 }, 1460 }, 1461 }, 1462 }, 1463 }, 1464 }, 1465 Required: []string{"numberEstablishedV4", "numberNotEstablishedV4", "numberEstablishedV6", "numberNotEstablishedV6"}, 1466 }, 1467 }, 1468 Dependencies: []string{ 1469 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.CalicoNodePeer"}, 1470 } 1471 } 1472 1473 func schema_pkg_apis_projectcalico_v3_CalicoNodePeer(ref common.ReferenceCallback) common.OpenAPIDefinition { 1474 return common.OpenAPIDefinition{ 1475 Schema: spec.Schema{ 1476 SchemaProps: spec.SchemaProps{ 1477 Description: "CalicoNodePeer contains the status of BGP peers on the node.", 1478 Type: []string{"object"}, 1479 Properties: map[string]spec.Schema{ 1480 "peerIP": { 1481 SchemaProps: spec.SchemaProps{ 1482 Description: "IP address of the peer whose condition we are reporting.", 1483 Type: []string{"string"}, 1484 Format: "", 1485 }, 1486 }, 1487 "type": { 1488 SchemaProps: spec.SchemaProps{ 1489 Description: "Type indicates whether this peer is configured via the node-to-node mesh, or via en explicit global or per-node BGPPeer object.", 1490 Type: []string{"string"}, 1491 Format: "", 1492 }, 1493 }, 1494 "state": { 1495 SchemaProps: spec.SchemaProps{ 1496 Description: "State is the BGP session state.", 1497 Type: []string{"string"}, 1498 Format: "", 1499 }, 1500 }, 1501 "since": { 1502 SchemaProps: spec.SchemaProps{ 1503 Description: "Since the state or reason last changed.", 1504 Type: []string{"string"}, 1505 Format: "", 1506 }, 1507 }, 1508 }, 1509 }, 1510 }, 1511 } 1512 } 1513 1514 func schema_pkg_apis_projectcalico_v3_CalicoNodeRoute(ref common.ReferenceCallback) common.OpenAPIDefinition { 1515 return common.OpenAPIDefinition{ 1516 Schema: spec.Schema{ 1517 SchemaProps: spec.SchemaProps{ 1518 Description: "CalicoNodeRoute contains the status of BGP routes on the node.", 1519 Type: []string{"object"}, 1520 Properties: map[string]spec.Schema{ 1521 "type": { 1522 SchemaProps: spec.SchemaProps{ 1523 Description: "Type indicates if the route is being used for forwarding or not.", 1524 Type: []string{"string"}, 1525 Format: "", 1526 }, 1527 }, 1528 "destination": { 1529 SchemaProps: spec.SchemaProps{ 1530 Description: "Destination of the route.", 1531 Type: []string{"string"}, 1532 Format: "", 1533 }, 1534 }, 1535 "gateway": { 1536 SchemaProps: spec.SchemaProps{ 1537 Description: "Gateway for the destination.", 1538 Type: []string{"string"}, 1539 Format: "", 1540 }, 1541 }, 1542 "interface": { 1543 SchemaProps: spec.SchemaProps{ 1544 Description: "Interface for the destination", 1545 Type: []string{"string"}, 1546 Format: "", 1547 }, 1548 }, 1549 "learnedFrom": { 1550 SchemaProps: spec.SchemaProps{ 1551 Description: "LearnedFrom contains information regarding where this route originated.", 1552 Default: map[string]interface{}{}, 1553 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.CalicoNodeRouteLearnedFrom"), 1554 }, 1555 }, 1556 }, 1557 }, 1558 }, 1559 Dependencies: []string{ 1560 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.CalicoNodeRouteLearnedFrom"}, 1561 } 1562 } 1563 1564 func schema_pkg_apis_projectcalico_v3_CalicoNodeRouteLearnedFrom(ref common.ReferenceCallback) common.OpenAPIDefinition { 1565 return common.OpenAPIDefinition{ 1566 Schema: spec.Schema{ 1567 SchemaProps: spec.SchemaProps{ 1568 Description: "CalicoNodeRouteLearnedFrom contains the information of the source from which a routes has been learned.", 1569 Type: []string{"object"}, 1570 Properties: map[string]spec.Schema{ 1571 "sourceType": { 1572 SchemaProps: spec.SchemaProps{ 1573 Description: "Type of the source where a route is learned from.", 1574 Type: []string{"string"}, 1575 Format: "", 1576 }, 1577 }, 1578 "peerIP": { 1579 SchemaProps: spec.SchemaProps{ 1580 Description: "If sourceType is NodeMesh or BGPPeer, IP address of the router that sent us this route.", 1581 Type: []string{"string"}, 1582 Format: "", 1583 }, 1584 }, 1585 }, 1586 }, 1587 }, 1588 } 1589 } 1590 1591 func schema_pkg_apis_projectcalico_v3_CalicoNodeStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 1592 return common.OpenAPIDefinition{ 1593 Schema: spec.Schema{ 1594 SchemaProps: spec.SchemaProps{ 1595 Type: []string{"object"}, 1596 Properties: map[string]spec.Schema{ 1597 "kind": { 1598 SchemaProps: spec.SchemaProps{ 1599 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1600 Type: []string{"string"}, 1601 Format: "", 1602 }, 1603 }, 1604 "apiVersion": { 1605 SchemaProps: spec.SchemaProps{ 1606 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 1607 Type: []string{"string"}, 1608 Format: "", 1609 }, 1610 }, 1611 "metadata": { 1612 SchemaProps: spec.SchemaProps{ 1613 Default: map[string]interface{}{}, 1614 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 1615 }, 1616 }, 1617 "spec": { 1618 SchemaProps: spec.SchemaProps{ 1619 Default: map[string]interface{}{}, 1620 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.CalicoNodeStatusSpec"), 1621 }, 1622 }, 1623 "status": { 1624 SchemaProps: spec.SchemaProps{ 1625 Default: map[string]interface{}{}, 1626 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.CalicoNodeStatusStatus"), 1627 }, 1628 }, 1629 }, 1630 }, 1631 }, 1632 Dependencies: []string{ 1633 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.CalicoNodeStatusSpec", "github.com/projectcalico/api/pkg/apis/projectcalico/v3.CalicoNodeStatusStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 1634 } 1635 } 1636 1637 func schema_pkg_apis_projectcalico_v3_CalicoNodeStatusList(ref common.ReferenceCallback) common.OpenAPIDefinition { 1638 return common.OpenAPIDefinition{ 1639 Schema: spec.Schema{ 1640 SchemaProps: spec.SchemaProps{ 1641 Description: "CalicoNodeStatusList is a list of CalicoNodeStatus resources.", 1642 Type: []string{"object"}, 1643 Properties: map[string]spec.Schema{ 1644 "kind": { 1645 SchemaProps: spec.SchemaProps{ 1646 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1647 Type: []string{"string"}, 1648 Format: "", 1649 }, 1650 }, 1651 "apiVersion": { 1652 SchemaProps: spec.SchemaProps{ 1653 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 1654 Type: []string{"string"}, 1655 Format: "", 1656 }, 1657 }, 1658 "metadata": { 1659 SchemaProps: spec.SchemaProps{ 1660 Default: map[string]interface{}{}, 1661 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 1662 }, 1663 }, 1664 "items": { 1665 SchemaProps: spec.SchemaProps{ 1666 Type: []string{"array"}, 1667 Items: &spec.SchemaOrArray{ 1668 Schema: &spec.Schema{ 1669 SchemaProps: spec.SchemaProps{ 1670 Default: map[string]interface{}{}, 1671 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.CalicoNodeStatus"), 1672 }, 1673 }, 1674 }, 1675 }, 1676 }, 1677 }, 1678 Required: []string{"items"}, 1679 }, 1680 }, 1681 Dependencies: []string{ 1682 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.CalicoNodeStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 1683 } 1684 } 1685 1686 func schema_pkg_apis_projectcalico_v3_CalicoNodeStatusSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 1687 return common.OpenAPIDefinition{ 1688 Schema: spec.Schema{ 1689 SchemaProps: spec.SchemaProps{ 1690 Description: "CalicoNodeStatusSpec contains the specification for a CalicoNodeStatus resource.", 1691 Type: []string{"object"}, 1692 Properties: map[string]spec.Schema{ 1693 "node": { 1694 SchemaProps: spec.SchemaProps{ 1695 Description: "The node name identifies the Calico node instance for node status.", 1696 Type: []string{"string"}, 1697 Format: "", 1698 }, 1699 }, 1700 "classes": { 1701 SchemaProps: spec.SchemaProps{ 1702 Description: "Classes declares the types of information to monitor for this calico/node, and allows for selective status reporting about certain subsets of information.", 1703 Type: []string{"array"}, 1704 Items: &spec.SchemaOrArray{ 1705 Schema: &spec.Schema{ 1706 SchemaProps: spec.SchemaProps{ 1707 Default: "", 1708 Type: []string{"string"}, 1709 Format: "", 1710 }, 1711 }, 1712 }, 1713 }, 1714 }, 1715 "updatePeriodSeconds": { 1716 SchemaProps: spec.SchemaProps{ 1717 Description: "UpdatePeriodSeconds is the period at which CalicoNodeStatus should be updated. Set to 0 to disable CalicoNodeStatus refresh. Maximum update period is one day.", 1718 Type: []string{"integer"}, 1719 Format: "int64", 1720 }, 1721 }, 1722 }, 1723 }, 1724 }, 1725 } 1726 } 1727 1728 func schema_pkg_apis_projectcalico_v3_CalicoNodeStatusStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 1729 return common.OpenAPIDefinition{ 1730 Schema: spec.Schema{ 1731 SchemaProps: spec.SchemaProps{ 1732 Description: "CalicoNodeStatusStatus defines the observed state of CalicoNodeStatus. No validation needed for status since it is updated by Calico.", 1733 Type: []string{"object"}, 1734 Properties: map[string]spec.Schema{ 1735 "lastUpdated": { 1736 SchemaProps: spec.SchemaProps{ 1737 Description: "LastUpdated is a timestamp representing the server time when CalicoNodeStatus object last updated. It is represented in RFC3339 form and is in UTC.", 1738 Default: map[string]interface{}{}, 1739 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 1740 }, 1741 }, 1742 "agent": { 1743 SchemaProps: spec.SchemaProps{ 1744 Description: "Agent holds agent status on the node.", 1745 Default: map[string]interface{}{}, 1746 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.CalicoNodeAgentStatus"), 1747 }, 1748 }, 1749 "bgp": { 1750 SchemaProps: spec.SchemaProps{ 1751 Description: "BGP holds node BGP status.", 1752 Default: map[string]interface{}{}, 1753 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.CalicoNodeBGPStatus"), 1754 }, 1755 }, 1756 "routes": { 1757 SchemaProps: spec.SchemaProps{ 1758 Description: "Routes reports routes known to the Calico BGP daemon on the node.", 1759 Default: map[string]interface{}{}, 1760 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.CalicoNodeBGPRouteStatus"), 1761 }, 1762 }, 1763 }, 1764 }, 1765 }, 1766 Dependencies: []string{ 1767 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.CalicoNodeAgentStatus", "github.com/projectcalico/api/pkg/apis/projectcalico/v3.CalicoNodeBGPRouteStatus", "github.com/projectcalico/api/pkg/apis/projectcalico/v3.CalicoNodeBGPStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 1768 } 1769 } 1770 1771 func schema_pkg_apis_projectcalico_v3_ClusterInformation(ref common.ReferenceCallback) common.OpenAPIDefinition { 1772 return common.OpenAPIDefinition{ 1773 Schema: spec.Schema{ 1774 SchemaProps: spec.SchemaProps{ 1775 Type: []string{"object"}, 1776 Properties: map[string]spec.Schema{ 1777 "kind": { 1778 SchemaProps: spec.SchemaProps{ 1779 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1780 Type: []string{"string"}, 1781 Format: "", 1782 }, 1783 }, 1784 "apiVersion": { 1785 SchemaProps: spec.SchemaProps{ 1786 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 1787 Type: []string{"string"}, 1788 Format: "", 1789 }, 1790 }, 1791 "metadata": { 1792 SchemaProps: spec.SchemaProps{ 1793 Default: map[string]interface{}{}, 1794 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 1795 }, 1796 }, 1797 "spec": { 1798 SchemaProps: spec.SchemaProps{ 1799 Default: map[string]interface{}{}, 1800 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.ClusterInformationSpec"), 1801 }, 1802 }, 1803 }, 1804 }, 1805 }, 1806 Dependencies: []string{ 1807 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.ClusterInformationSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 1808 } 1809 } 1810 1811 func schema_pkg_apis_projectcalico_v3_ClusterInformationList(ref common.ReferenceCallback) common.OpenAPIDefinition { 1812 return common.OpenAPIDefinition{ 1813 Schema: spec.Schema{ 1814 SchemaProps: spec.SchemaProps{ 1815 Description: "ClusterInformationList is a list of ClusterInformation objects.", 1816 Type: []string{"object"}, 1817 Properties: map[string]spec.Schema{ 1818 "kind": { 1819 SchemaProps: spec.SchemaProps{ 1820 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1821 Type: []string{"string"}, 1822 Format: "", 1823 }, 1824 }, 1825 "apiVersion": { 1826 SchemaProps: spec.SchemaProps{ 1827 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 1828 Type: []string{"string"}, 1829 Format: "", 1830 }, 1831 }, 1832 "metadata": { 1833 SchemaProps: spec.SchemaProps{ 1834 Default: map[string]interface{}{}, 1835 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 1836 }, 1837 }, 1838 "items": { 1839 SchemaProps: spec.SchemaProps{ 1840 Type: []string{"array"}, 1841 Items: &spec.SchemaOrArray{ 1842 Schema: &spec.Schema{ 1843 SchemaProps: spec.SchemaProps{ 1844 Default: map[string]interface{}{}, 1845 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.ClusterInformation"), 1846 }, 1847 }, 1848 }, 1849 }, 1850 }, 1851 }, 1852 Required: []string{"items"}, 1853 }, 1854 }, 1855 Dependencies: []string{ 1856 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.ClusterInformation", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 1857 } 1858 } 1859 1860 func schema_pkg_apis_projectcalico_v3_ClusterInformationSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 1861 return common.OpenAPIDefinition{ 1862 Schema: spec.Schema{ 1863 SchemaProps: spec.SchemaProps{ 1864 Description: "ClusterInformationSpec contains the values of describing the cluster.", 1865 Type: []string{"object"}, 1866 Properties: map[string]spec.Schema{ 1867 "clusterGUID": { 1868 SchemaProps: spec.SchemaProps{ 1869 Description: "ClusterGUID is the GUID of the cluster", 1870 Type: []string{"string"}, 1871 Format: "", 1872 }, 1873 }, 1874 "clusterType": { 1875 SchemaProps: spec.SchemaProps{ 1876 Description: "ClusterType describes the type of the cluster", 1877 Type: []string{"string"}, 1878 Format: "", 1879 }, 1880 }, 1881 "calicoVersion": { 1882 SchemaProps: spec.SchemaProps{ 1883 Description: "CalicoVersion is the version of Calico that the cluster is running", 1884 Type: []string{"string"}, 1885 Format: "", 1886 }, 1887 }, 1888 "datastoreReady": { 1889 SchemaProps: spec.SchemaProps{ 1890 Description: "DatastoreReady is used during significant datastore migrations to signal to components such as Felix that it should wait before accessing the datastore.", 1891 Type: []string{"boolean"}, 1892 Format: "", 1893 }, 1894 }, 1895 "variant": { 1896 SchemaProps: spec.SchemaProps{ 1897 Description: "Variant declares which variant of Calico should be active.", 1898 Type: []string{"string"}, 1899 Format: "", 1900 }, 1901 }, 1902 }, 1903 }, 1904 }, 1905 } 1906 } 1907 1908 func schema_pkg_apis_projectcalico_v3_Community(ref common.ReferenceCallback) common.OpenAPIDefinition { 1909 return common.OpenAPIDefinition{ 1910 Schema: spec.Schema{ 1911 SchemaProps: spec.SchemaProps{ 1912 Description: "Community contains standard or large community value and its name.", 1913 Type: []string{"object"}, 1914 Properties: map[string]spec.Schema{ 1915 "name": { 1916 SchemaProps: spec.SchemaProps{ 1917 Description: "Name given to community value.", 1918 Type: []string{"string"}, 1919 Format: "", 1920 }, 1921 }, 1922 "value": { 1923 SchemaProps: spec.SchemaProps{ 1924 Description: "Value must be of format `aa:nn` or `aa:nn:mm`. For standard community use `aa:nn` format, where `aa` and `nn` are 16 bit number. For large community use `aa:nn:mm` format, where `aa`, `nn` and `mm` are 32 bit number. Where, `aa` is an AS Number, `nn` and `mm` are per-AS identifier.", 1925 Type: []string{"string"}, 1926 Format: "", 1927 }, 1928 }, 1929 }, 1930 }, 1931 }, 1932 } 1933 } 1934 1935 func schema_pkg_apis_projectcalico_v3_ControllersConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 1936 return common.OpenAPIDefinition{ 1937 Schema: spec.Schema{ 1938 SchemaProps: spec.SchemaProps{ 1939 Description: "ControllersConfig enables and configures individual Kubernetes controllers", 1940 Type: []string{"object"}, 1941 Properties: map[string]spec.Schema{ 1942 "node": { 1943 SchemaProps: spec.SchemaProps{ 1944 Description: "Node enables and configures the node controller. Enabled by default, set to nil to disable.", 1945 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.NodeControllerConfig"), 1946 }, 1947 }, 1948 "policy": { 1949 SchemaProps: spec.SchemaProps{ 1950 Description: "Policy enables and configures the policy controller. Enabled by default, set to nil to disable.", 1951 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.PolicyControllerConfig"), 1952 }, 1953 }, 1954 "workloadEndpoint": { 1955 SchemaProps: spec.SchemaProps{ 1956 Description: "WorkloadEndpoint enables and configures the workload endpoint controller. Enabled by default, set to nil to disable.", 1957 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.WorkloadEndpointControllerConfig"), 1958 }, 1959 }, 1960 "serviceAccount": { 1961 SchemaProps: spec.SchemaProps{ 1962 Description: "ServiceAccount enables and configures the service account controller. Enabled by default, set to nil to disable.", 1963 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.ServiceAccountControllerConfig"), 1964 }, 1965 }, 1966 "namespace": { 1967 SchemaProps: spec.SchemaProps{ 1968 Description: "Namespace enables and configures the namespace controller. Enabled by default, set to nil to disable.", 1969 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.NamespaceControllerConfig"), 1970 }, 1971 }, 1972 }, 1973 }, 1974 }, 1975 Dependencies: []string{ 1976 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.NamespaceControllerConfig", "github.com/projectcalico/api/pkg/apis/projectcalico/v3.NodeControllerConfig", "github.com/projectcalico/api/pkg/apis/projectcalico/v3.PolicyControllerConfig", "github.com/projectcalico/api/pkg/apis/projectcalico/v3.ServiceAccountControllerConfig", "github.com/projectcalico/api/pkg/apis/projectcalico/v3.WorkloadEndpointControllerConfig"}, 1977 } 1978 } 1979 1980 func schema_pkg_apis_projectcalico_v3_EndpointPort(ref common.ReferenceCallback) common.OpenAPIDefinition { 1981 return common.OpenAPIDefinition{ 1982 Schema: spec.Schema{ 1983 SchemaProps: spec.SchemaProps{ 1984 Type: []string{"object"}, 1985 Properties: map[string]spec.Schema{ 1986 "name": { 1987 SchemaProps: spec.SchemaProps{ 1988 Default: "", 1989 Type: []string{"string"}, 1990 Format: "", 1991 }, 1992 }, 1993 "protocol": { 1994 SchemaProps: spec.SchemaProps{ 1995 Default: map[string]interface{}{}, 1996 Ref: ref("github.com/projectcalico/api/pkg/lib/numorstring.Protocol"), 1997 }, 1998 }, 1999 "port": { 2000 SchemaProps: spec.SchemaProps{ 2001 Default: 0, 2002 Type: []string{"integer"}, 2003 Format: "int32", 2004 }, 2005 }, 2006 }, 2007 Required: []string{"name", "protocol", "port"}, 2008 }, 2009 }, 2010 Dependencies: []string{ 2011 "github.com/projectcalico/api/pkg/lib/numorstring.Protocol"}, 2012 } 2013 } 2014 2015 func schema_pkg_apis_projectcalico_v3_EntityRule(ref common.ReferenceCallback) common.OpenAPIDefinition { 2016 return common.OpenAPIDefinition{ 2017 Schema: spec.Schema{ 2018 SchemaProps: spec.SchemaProps{ 2019 Description: "An EntityRule is a sub-component of a Rule comprising the match criteria specific to a particular entity (that is either the source or destination).\n\nA source EntityRule matches the source endpoint and originating traffic. A destination EntityRule matches the destination endpoint and terminating traffic.", 2020 Type: []string{"object"}, 2021 Properties: map[string]spec.Schema{ 2022 "nets": { 2023 SchemaProps: spec.SchemaProps{ 2024 Description: "Nets is an optional field that restricts the rule to only apply to traffic that originates from (or terminates at) IP addresses in any of the given subnets.", 2025 Type: []string{"array"}, 2026 Items: &spec.SchemaOrArray{ 2027 Schema: &spec.Schema{ 2028 SchemaProps: spec.SchemaProps{ 2029 Default: "", 2030 Type: []string{"string"}, 2031 Format: "", 2032 }, 2033 }, 2034 }, 2035 }, 2036 }, 2037 "selector": { 2038 SchemaProps: spec.SchemaProps{ 2039 Description: "Selector is an optional field that contains a selector expression (see Policy for sample syntax). Only traffic that originates from (terminates at) endpoints matching the selector will be matched.\n\nNote that: in addition to the negated version of the Selector (see NotSelector below), the selector expression syntax itself supports negation. The two types of negation are subtly different. One negates the set of matched endpoints, the other negates the whole match:\n\n\tSelector = \"!has(my_label)\" matches packets that are from other Calico-controlled\n\tendpoints that do not have the label \"my_label\".\n\n\tNotSelector = \"has(my_label)\" matches packets that are not from Calico-controlled\n\tendpoints that do have the label \"my_label\".\n\nThe effect is that the latter will accept packets from non-Calico sources whereas the former is limited to packets from Calico-controlled endpoints.", 2040 Type: []string{"string"}, 2041 Format: "", 2042 }, 2043 }, 2044 "namespaceSelector": { 2045 SchemaProps: spec.SchemaProps{ 2046 Description: "NamespaceSelector is an optional field that contains a selector expression. Only traffic that originates from (or terminates at) endpoints within the selected namespaces will be matched. When both NamespaceSelector and another selector are defined on the same rule, then only workload endpoints that are matched by both selectors will be selected by the rule.\n\nFor NetworkPolicy, an empty NamespaceSelector implies that the Selector is limited to selecting only workload endpoints in the same namespace as the NetworkPolicy.\n\nFor NetworkPolicy, `global()` NamespaceSelector implies that the Selector is limited to selecting only GlobalNetworkSet or HostEndpoint.\n\nFor GlobalNetworkPolicy, an empty NamespaceSelector implies the Selector applies to workload endpoints across all namespaces.", 2047 Type: []string{"string"}, 2048 Format: "", 2049 }, 2050 }, 2051 "services": { 2052 SchemaProps: spec.SchemaProps{ 2053 Description: "Services is an optional field that contains options for matching Kubernetes Services. If specified, only traffic that originates from or terminates at endpoints within the selected service(s) will be matched, and only to/from each endpoint's port.\n\nServices cannot be specified on the same rule as Selector, NotSelector, NamespaceSelector, Nets, NotNets or ServiceAccounts.\n\nPorts and NotPorts can only be specified with Services on ingress rules.", 2054 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.ServiceMatch"), 2055 }, 2056 }, 2057 "ports": { 2058 SchemaProps: spec.SchemaProps{ 2059 Description: "Ports is an optional field that restricts the rule to only apply to traffic that has a source (destination) port that matches one of these ranges/values. This value is a list of integers or strings that represent ranges of ports.\n\nSince only some protocols have ports, if any ports are specified it requires the Protocol match in the Rule to be set to \"TCP\" or \"UDP\".", 2060 Type: []string{"array"}, 2061 Items: &spec.SchemaOrArray{ 2062 Schema: &spec.Schema{ 2063 SchemaProps: spec.SchemaProps{ 2064 Default: map[string]interface{}{}, 2065 Ref: ref("github.com/projectcalico/api/pkg/lib/numorstring.Port"), 2066 }, 2067 }, 2068 }, 2069 }, 2070 }, 2071 "notNets": { 2072 SchemaProps: spec.SchemaProps{ 2073 Description: "NotNets is the negated version of the Nets field.", 2074 Type: []string{"array"}, 2075 Items: &spec.SchemaOrArray{ 2076 Schema: &spec.Schema{ 2077 SchemaProps: spec.SchemaProps{ 2078 Default: "", 2079 Type: []string{"string"}, 2080 Format: "", 2081 }, 2082 }, 2083 }, 2084 }, 2085 }, 2086 "notSelector": { 2087 SchemaProps: spec.SchemaProps{ 2088 Description: "NotSelector is the negated version of the Selector field. See Selector field for subtleties with negated selectors.", 2089 Type: []string{"string"}, 2090 Format: "", 2091 }, 2092 }, 2093 "notPorts": { 2094 SchemaProps: spec.SchemaProps{ 2095 Description: "NotPorts is the negated version of the Ports field. Since only some protocols have ports, if any ports are specified it requires the Protocol match in the Rule to be set to \"TCP\" or \"UDP\".", 2096 Type: []string{"array"}, 2097 Items: &spec.SchemaOrArray{ 2098 Schema: &spec.Schema{ 2099 SchemaProps: spec.SchemaProps{ 2100 Default: map[string]interface{}{}, 2101 Ref: ref("github.com/projectcalico/api/pkg/lib/numorstring.Port"), 2102 }, 2103 }, 2104 }, 2105 }, 2106 }, 2107 "serviceAccounts": { 2108 SchemaProps: spec.SchemaProps{ 2109 Description: "ServiceAccounts is an optional field that restricts the rule to only apply to traffic that originates from (or terminates at) a pod running as a matching service account.", 2110 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.ServiceAccountMatch"), 2111 }, 2112 }, 2113 }, 2114 }, 2115 }, 2116 Dependencies: []string{ 2117 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.ServiceAccountMatch", "github.com/projectcalico/api/pkg/apis/projectcalico/v3.ServiceMatch", "github.com/projectcalico/api/pkg/lib/numorstring.Port"}, 2118 } 2119 } 2120 2121 func schema_pkg_apis_projectcalico_v3_FelixConfiguration(ref common.ReferenceCallback) common.OpenAPIDefinition { 2122 return common.OpenAPIDefinition{ 2123 Schema: spec.Schema{ 2124 SchemaProps: spec.SchemaProps{ 2125 Type: []string{"object"}, 2126 Properties: map[string]spec.Schema{ 2127 "kind": { 2128 SchemaProps: spec.SchemaProps{ 2129 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 2130 Type: []string{"string"}, 2131 Format: "", 2132 }, 2133 }, 2134 "apiVersion": { 2135 SchemaProps: spec.SchemaProps{ 2136 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 2137 Type: []string{"string"}, 2138 Format: "", 2139 }, 2140 }, 2141 "metadata": { 2142 SchemaProps: spec.SchemaProps{ 2143 Default: map[string]interface{}{}, 2144 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 2145 }, 2146 }, 2147 "spec": { 2148 SchemaProps: spec.SchemaProps{ 2149 Default: map[string]interface{}{}, 2150 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.FelixConfigurationSpec"), 2151 }, 2152 }, 2153 }, 2154 }, 2155 }, 2156 Dependencies: []string{ 2157 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.FelixConfigurationSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 2158 } 2159 } 2160 2161 func schema_pkg_apis_projectcalico_v3_FelixConfigurationList(ref common.ReferenceCallback) common.OpenAPIDefinition { 2162 return common.OpenAPIDefinition{ 2163 Schema: spec.Schema{ 2164 SchemaProps: spec.SchemaProps{ 2165 Description: "FelixConfigurationList contains a list of FelixConfiguration object.", 2166 Type: []string{"object"}, 2167 Properties: map[string]spec.Schema{ 2168 "kind": { 2169 SchemaProps: spec.SchemaProps{ 2170 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 2171 Type: []string{"string"}, 2172 Format: "", 2173 }, 2174 }, 2175 "apiVersion": { 2176 SchemaProps: spec.SchemaProps{ 2177 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 2178 Type: []string{"string"}, 2179 Format: "", 2180 }, 2181 }, 2182 "metadata": { 2183 SchemaProps: spec.SchemaProps{ 2184 Default: map[string]interface{}{}, 2185 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 2186 }, 2187 }, 2188 "items": { 2189 SchemaProps: spec.SchemaProps{ 2190 Type: []string{"array"}, 2191 Items: &spec.SchemaOrArray{ 2192 Schema: &spec.Schema{ 2193 SchemaProps: spec.SchemaProps{ 2194 Default: map[string]interface{}{}, 2195 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.FelixConfiguration"), 2196 }, 2197 }, 2198 }, 2199 }, 2200 }, 2201 }, 2202 Required: []string{"items"}, 2203 }, 2204 }, 2205 Dependencies: []string{ 2206 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.FelixConfiguration", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 2207 } 2208 } 2209 2210 func schema_pkg_apis_projectcalico_v3_FelixConfigurationSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 2211 return common.OpenAPIDefinition{ 2212 Schema: spec.Schema{ 2213 SchemaProps: spec.SchemaProps{ 2214 Description: "FelixConfigurationSpec contains the values of the Felix configuration.", 2215 Type: []string{"object"}, 2216 Properties: map[string]spec.Schema{ 2217 "useInternalDataplaneDriver": { 2218 SchemaProps: spec.SchemaProps{ 2219 Description: "UseInternalDataplaneDriver, if true, Felix will use its internal dataplane programming logic. If false, it will launch an external dataplane driver and communicate with it over protobuf.", 2220 Type: []string{"boolean"}, 2221 Format: "", 2222 }, 2223 }, 2224 "dataplaneDriver": { 2225 SchemaProps: spec.SchemaProps{ 2226 Description: "DataplaneDriver filename of the external dataplane driver to use. Only used if UseInternalDataplaneDriver is set to false.", 2227 Type: []string{"string"}, 2228 Format: "", 2229 }, 2230 }, 2231 "dataplaneWatchdogTimeout": { 2232 SchemaProps: spec.SchemaProps{ 2233 Description: "DataplaneWatchdogTimeout is the readiness/liveness timeout used for Felix's (internal) dataplane driver. Increase this value if you experience spurious non-ready or non-live events when Felix is under heavy load. Decrease the value to get felix to report non-live or non-ready more quickly. [Default: 90s]\n\nDeprecated: replaced by the generic HealthTimeoutOverrides.", 2234 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 2235 }, 2236 }, 2237 "ipv6Support": { 2238 SchemaProps: spec.SchemaProps{ 2239 Description: "IPv6Support controls whether Felix enables support for IPv6 (if supported by the in-use dataplane).", 2240 Type: []string{"boolean"}, 2241 Format: "", 2242 }, 2243 }, 2244 "routeRefreshInterval": { 2245 SchemaProps: spec.SchemaProps{ 2246 Description: "RouteRefreshInterval is the period at which Felix re-checks the routes in the dataplane to ensure that no other process has accidentally broken Calico's rules. Set to 0 to disable route refresh. [Default: 90s]", 2247 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 2248 }, 2249 }, 2250 "interfaceRefreshInterval": { 2251 SchemaProps: spec.SchemaProps{ 2252 Description: "InterfaceRefreshInterval is the period at which Felix rescans local interfaces to verify their state. The rescan can be disabled by setting the interval to 0.", 2253 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 2254 }, 2255 }, 2256 "iptablesRefreshInterval": { 2257 SchemaProps: spec.SchemaProps{ 2258 Description: "IptablesRefreshInterval is the period at which Felix re-checks the IP sets in the dataplane to ensure that no other process has accidentally broken Calico's rules. Set to 0 to disable IP sets refresh. Note: the default for this value is lower than the other refresh intervals as a workaround for a Linux kernel bug that was fixed in kernel version 4.11. If you are using v4.11 or greater you may want to set this to, a higher value to reduce Felix CPU usage. [Default: 10s]", 2259 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 2260 }, 2261 }, 2262 "iptablesPostWriteCheckInterval": { 2263 SchemaProps: spec.SchemaProps{ 2264 Description: "IptablesPostWriteCheckInterval is the period after Felix has done a write to the dataplane that it schedules an extra read back in order to check the write was not clobbered by another process. This should only occur if another application on the system doesn't respect the iptables lock. [Default: 1s]", 2265 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 2266 }, 2267 }, 2268 "iptablesLockFilePath": { 2269 SchemaProps: spec.SchemaProps{ 2270 Description: "IptablesLockFilePath is the location of the iptables lock file. You may need to change this if the lock file is not in its standard location (for example if you have mapped it into Felix's container at a different path). [Default: /run/xtables.lock]", 2271 Type: []string{"string"}, 2272 Format: "", 2273 }, 2274 }, 2275 "iptablesLockTimeout": { 2276 SchemaProps: spec.SchemaProps{ 2277 Description: "IptablesLockTimeout is the time that Felix will wait for the iptables lock, or 0, to disable. To use this feature, Felix must share the iptables lock file with all other processes that also take the lock. When running Felix inside a container, this requires the /run directory of the host to be mounted into the calico/node or calico/felix container. [Default: 0s disabled]", 2278 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 2279 }, 2280 }, 2281 "iptablesLockProbeInterval": { 2282 SchemaProps: spec.SchemaProps{ 2283 Description: "IptablesLockProbeInterval is the time that Felix will wait between attempts to acquire the iptables lock if it is not available. Lower values make Felix more responsive when the lock is contended, but use more CPU. [Default: 50ms]", 2284 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 2285 }, 2286 }, 2287 "featureDetectOverride": { 2288 SchemaProps: spec.SchemaProps{ 2289 Description: "FeatureDetectOverride is used to override feature detection based on auto-detected platform capabilities. Values are specified in a comma separated list with no spaces, example; \"SNATFullyRandom=true,MASQFullyRandom=false,RestoreSupportsLock=\". \"true\" or \"false\" will force the feature, empty or omitted values are auto-detected.", 2290 Type: []string{"string"}, 2291 Format: "", 2292 }, 2293 }, 2294 "featureGates": { 2295 SchemaProps: spec.SchemaProps{ 2296 Description: "FeatureGates is used to enable or disable tech-preview Calico features. Values are specified in a comma separated list with no spaces, example; \"BPFConnectTimeLoadBalancingWorkaround=enabled,XyZ=false\". This is used to enable features that are not fully production ready.", 2297 Type: []string{"string"}, 2298 Format: "", 2299 }, 2300 }, 2301 "ipsetsRefreshInterval": { 2302 SchemaProps: spec.SchemaProps{ 2303 Description: "IpsetsRefreshInterval is the period at which Felix re-checks all iptables state to ensure that no other process has accidentally broken Calico's rules. Set to 0 to disable iptables refresh. [Default: 90s]", 2304 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 2305 }, 2306 }, 2307 "maxIpsetSize": { 2308 SchemaProps: spec.SchemaProps{ 2309 Type: []string{"integer"}, 2310 Format: "int32", 2311 }, 2312 }, 2313 "iptablesBackend": { 2314 SchemaProps: spec.SchemaProps{ 2315 Description: "IptablesBackend specifies which backend of iptables will be used. The default is Auto.", 2316 Type: []string{"string"}, 2317 Format: "", 2318 }, 2319 }, 2320 "xdpRefreshInterval": { 2321 SchemaProps: spec.SchemaProps{ 2322 Description: "XDPRefreshInterval is the period at which Felix re-checks all XDP state to ensure that no other process has accidentally broken Calico's BPF maps or attached programs. Set to 0 to disable XDP refresh. [Default: 90s]", 2323 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 2324 }, 2325 }, 2326 "netlinkTimeout": { 2327 SchemaProps: spec.SchemaProps{ 2328 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 2329 }, 2330 }, 2331 "metadataAddr": { 2332 SchemaProps: spec.SchemaProps{ 2333 Description: "MetadataAddr is the IP address or domain name of the server that can answer VM queries for cloud-init metadata. In OpenStack, this corresponds to the machine running nova-api (or in Ubuntu, nova-api-metadata). A value of none (case-insensitive) means that Felix should not set up any NAT rule for the metadata path. [Default: 127.0.0.1]", 2334 Type: []string{"string"}, 2335 Format: "", 2336 }, 2337 }, 2338 "metadataPort": { 2339 SchemaProps: spec.SchemaProps{ 2340 Description: "MetadataPort is the port of the metadata server. This, combined with global.MetadataAddr (if not 'None'), is used to set up a NAT rule, from 169.254.169.254:80 to MetadataAddr:MetadataPort. In most cases this should not need to be changed [Default: 8775].", 2341 Type: []string{"integer"}, 2342 Format: "int32", 2343 }, 2344 }, 2345 "openstackRegion": { 2346 SchemaProps: spec.SchemaProps{ 2347 Description: "OpenstackRegion is the name of the region that a particular Felix belongs to. In a multi-region Calico/OpenStack deployment, this must be configured somehow for each Felix (here in the datamodel, or in felix.cfg or the environment on each compute node), and must match the [calico] openstack_region value configured in neutron.conf on each node. [Default: Empty]", 2348 Type: []string{"string"}, 2349 Format: "", 2350 }, 2351 }, 2352 "interfacePrefix": { 2353 SchemaProps: spec.SchemaProps{ 2354 Description: "InterfacePrefix is the interface name prefix that identifies workload endpoints and so distinguishes them from host endpoint interfaces. Note: in environments other than bare metal, the orchestrators configure this appropriately. For example our Kubernetes and Docker integrations set the 'cali' value, and our OpenStack integration sets the 'tap' value. [Default: cali]", 2355 Type: []string{"string"}, 2356 Format: "", 2357 }, 2358 }, 2359 "interfaceExclude": { 2360 SchemaProps: spec.SchemaProps{ 2361 Description: "InterfaceExclude is a comma-separated list of interfaces that Felix should exclude when monitoring for host endpoints. The default value ensures that Felix ignores Kubernetes' IPVS dummy interface, which is used internally by kube-proxy. If you want to exclude multiple interface names using a single value, the list supports regular expressions. For regular expressions you must wrap the value with '/'. For example having values '/^kube/,veth1' will exclude all interfaces that begin with 'kube' and also the interface 'veth1'. [Default: kube-ipvs0]", 2362 Type: []string{"string"}, 2363 Format: "", 2364 }, 2365 }, 2366 "chainInsertMode": { 2367 SchemaProps: spec.SchemaProps{ 2368 Description: "ChainInsertMode controls whether Felix hooks the kernel's top-level iptables chains by inserting a rule at the top of the chain or by appending a rule at the bottom. insert is the safe default since it prevents Calico's rules from being bypassed. If you switch to append mode, be sure that the other rules in the chains signal acceptance by falling through to the Calico rules, otherwise the Calico policy will be bypassed. [Default: insert]", 2369 Type: []string{"string"}, 2370 Format: "", 2371 }, 2372 }, 2373 "defaultEndpointToHostAction": { 2374 SchemaProps: spec.SchemaProps{ 2375 Description: "DefaultEndpointToHostAction controls what happens to traffic that goes from a workload endpoint to the host itself (after the traffic hits the endpoint egress policy). By default Calico blocks traffic from workload endpoints to the host itself with an iptables \"DROP\" action. If you want to allow some or all traffic from endpoint to host, set this parameter to RETURN or ACCEPT. Use RETURN if you have your own rules in the iptables \"INPUT\" chain; Calico will insert its rules at the top of that chain, then \"RETURN\" packets to the \"INPUT\" chain once it has completed processing workload endpoint egress policy. Use ACCEPT to unconditionally accept packets from workloads after processing workload endpoint egress policy. [Default: Drop]", 2376 Type: []string{"string"}, 2377 Format: "", 2378 }, 2379 }, 2380 "iptablesFilterAllowAction": { 2381 SchemaProps: spec.SchemaProps{ 2382 Type: []string{"string"}, 2383 Format: "", 2384 }, 2385 }, 2386 "iptablesMangleAllowAction": { 2387 SchemaProps: spec.SchemaProps{ 2388 Type: []string{"string"}, 2389 Format: "", 2390 }, 2391 }, 2392 "iptablesFilterDenyAction": { 2393 SchemaProps: spec.SchemaProps{ 2394 Description: "IptablesFilterDenyAction controls what happens to traffic that is denied by network policy. By default Calico blocks traffic with an iptables \"DROP\" action. If you want to use \"REJECT\" action instead you can configure it in here.", 2395 Type: []string{"string"}, 2396 Format: "", 2397 }, 2398 }, 2399 "logPrefix": { 2400 SchemaProps: spec.SchemaProps{ 2401 Description: "LogPrefix is the log prefix that Felix uses when rendering LOG rules. [Default: calico-packet]", 2402 Type: []string{"string"}, 2403 Format: "", 2404 }, 2405 }, 2406 "logFilePath": { 2407 SchemaProps: spec.SchemaProps{ 2408 Description: "LogFilePath is the full path to the Felix log. Set to none to disable file logging. [Default: /var/log/calico/felix.log]", 2409 Type: []string{"string"}, 2410 Format: "", 2411 }, 2412 }, 2413 "logSeverityFile": { 2414 SchemaProps: spec.SchemaProps{ 2415 Description: "LogSeverityFile is the log severity above which logs are sent to the log file. [Default: Info]", 2416 Type: []string{"string"}, 2417 Format: "", 2418 }, 2419 }, 2420 "logSeverityScreen": { 2421 SchemaProps: spec.SchemaProps{ 2422 Description: "LogSeverityScreen is the log severity above which logs are sent to the stdout. [Default: Info]", 2423 Type: []string{"string"}, 2424 Format: "", 2425 }, 2426 }, 2427 "logSeveritySys": { 2428 SchemaProps: spec.SchemaProps{ 2429 Description: "LogSeveritySys is the log severity above which logs are sent to the syslog. Set to None for no logging to syslog. [Default: Info]", 2430 Type: []string{"string"}, 2431 Format: "", 2432 }, 2433 }, 2434 "logDebugFilenameRegex": { 2435 SchemaProps: spec.SchemaProps{ 2436 Description: "LogDebugFilenameRegex controls which source code files have their Debug log output included in the logs. Only logs from files with names that match the given regular expression are included. The filter only applies to Debug level logs.", 2437 Type: []string{"string"}, 2438 Format: "", 2439 }, 2440 }, 2441 "ipipEnabled": { 2442 SchemaProps: spec.SchemaProps{ 2443 Description: "IPIPEnabled overrides whether Felix should configure an IPIP interface on the host. Optional as Felix determines this based on the existing IP pools. [Default: nil (unset)]", 2444 Type: []string{"boolean"}, 2445 Format: "", 2446 }, 2447 }, 2448 "ipipMTU": { 2449 SchemaProps: spec.SchemaProps{ 2450 Description: "IPIPMTU is the MTU to set on the tunnel device. See Configuring MTU [Default: 1440]", 2451 Type: []string{"integer"}, 2452 Format: "int32", 2453 }, 2454 }, 2455 "vxlanEnabled": { 2456 SchemaProps: spec.SchemaProps{ 2457 Description: "VXLANEnabled overrides whether Felix should create the VXLAN tunnel device for IPv4 VXLAN networking. Optional as Felix determines this based on the existing IP pools. [Default: nil (unset)]", 2458 Type: []string{"boolean"}, 2459 Format: "", 2460 }, 2461 }, 2462 "vxlanMTU": { 2463 SchemaProps: spec.SchemaProps{ 2464 Description: "VXLANMTU is the MTU to set on the IPv4 VXLAN tunnel device. See Configuring MTU [Default: 1410]", 2465 Type: []string{"integer"}, 2466 Format: "int32", 2467 }, 2468 }, 2469 "vxlanMTUV6": { 2470 SchemaProps: spec.SchemaProps{ 2471 Description: "VXLANMTUV6 is the MTU to set on the IPv6 VXLAN tunnel device. See Configuring MTU [Default: 1390]", 2472 Type: []string{"integer"}, 2473 Format: "int32", 2474 }, 2475 }, 2476 "vxlanPort": { 2477 SchemaProps: spec.SchemaProps{ 2478 Type: []string{"integer"}, 2479 Format: "int32", 2480 }, 2481 }, 2482 "vxlanVNI": { 2483 SchemaProps: spec.SchemaProps{ 2484 Type: []string{"integer"}, 2485 Format: "int32", 2486 }, 2487 }, 2488 "allowVXLANPacketsFromWorkloads": { 2489 SchemaProps: spec.SchemaProps{ 2490 Description: "AllowVXLANPacketsFromWorkloads controls whether Felix will add a rule to drop VXLAN encapsulated traffic from workloads [Default: false]", 2491 Type: []string{"boolean"}, 2492 Format: "", 2493 }, 2494 }, 2495 "allowIPIPPacketsFromWorkloads": { 2496 SchemaProps: spec.SchemaProps{ 2497 Description: "AllowIPIPPacketsFromWorkloads controls whether Felix will add a rule to drop IPIP encapsulated traffic from workloads [Default: false]", 2498 Type: []string{"boolean"}, 2499 Format: "", 2500 }, 2501 }, 2502 "reportingInterval": { 2503 SchemaProps: spec.SchemaProps{ 2504 Description: "ReportingInterval is the interval at which Felix reports its status into the datastore or 0 to disable. Must be non-zero in OpenStack deployments. [Default: 30s]", 2505 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 2506 }, 2507 }, 2508 "reportingTTL": { 2509 SchemaProps: spec.SchemaProps{ 2510 Description: "ReportingTTL is the time-to-live setting for process-wide status reports. [Default: 90s]", 2511 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 2512 }, 2513 }, 2514 "endpointReportingEnabled": { 2515 SchemaProps: spec.SchemaProps{ 2516 Type: []string{"boolean"}, 2517 Format: "", 2518 }, 2519 }, 2520 "endpointReportingDelay": { 2521 SchemaProps: spec.SchemaProps{ 2522 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 2523 }, 2524 }, 2525 "iptablesMarkMask": { 2526 SchemaProps: spec.SchemaProps{ 2527 Description: "IptablesMarkMask is the mask that Felix selects its IPTables Mark bits from. Should be a 32 bit hexadecimal number with at least 8 bits set, none of which clash with any other mark bits in use on the system. [Default: 0xff000000]", 2528 Type: []string{"integer"}, 2529 Format: "int64", 2530 }, 2531 }, 2532 "disableConntrackInvalidCheck": { 2533 SchemaProps: spec.SchemaProps{ 2534 Type: []string{"boolean"}, 2535 Format: "", 2536 }, 2537 }, 2538 "healthEnabled": { 2539 SchemaProps: spec.SchemaProps{ 2540 Type: []string{"boolean"}, 2541 Format: "", 2542 }, 2543 }, 2544 "healthHost": { 2545 SchemaProps: spec.SchemaProps{ 2546 Type: []string{"string"}, 2547 Format: "", 2548 }, 2549 }, 2550 "healthPort": { 2551 SchemaProps: spec.SchemaProps{ 2552 Type: []string{"integer"}, 2553 Format: "int32", 2554 }, 2555 }, 2556 "healthTimeoutOverrides": { 2557 SchemaProps: spec.SchemaProps{ 2558 Description: "HealthTimeoutOverrides allows the internal watchdog timeouts of individual subcomponents to be overridden. This is useful for working around \"false positive\" liveness timeouts that can occur in particularly stressful workloads or if CPU is constrained. For a list of active subcomponents, see Felix's logs.", 2559 Type: []string{"array"}, 2560 Items: &spec.SchemaOrArray{ 2561 Schema: &spec.Schema{ 2562 SchemaProps: spec.SchemaProps{ 2563 Default: map[string]interface{}{}, 2564 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.HealthTimeoutOverride"), 2565 }, 2566 }, 2567 }, 2568 }, 2569 }, 2570 "prometheusMetricsEnabled": { 2571 SchemaProps: spec.SchemaProps{ 2572 Description: "PrometheusMetricsEnabled enables the Prometheus metrics server in Felix if set to true. [Default: false]", 2573 Type: []string{"boolean"}, 2574 Format: "", 2575 }, 2576 }, 2577 "prometheusMetricsHost": { 2578 SchemaProps: spec.SchemaProps{ 2579 Description: "PrometheusMetricsHost is the host that the Prometheus metrics server should bind to. [Default: empty]", 2580 Type: []string{"string"}, 2581 Format: "", 2582 }, 2583 }, 2584 "prometheusMetricsPort": { 2585 SchemaProps: spec.SchemaProps{ 2586 Description: "PrometheusMetricsPort is the TCP port that the Prometheus metrics server should bind to. [Default: 9091]", 2587 Type: []string{"integer"}, 2588 Format: "int32", 2589 }, 2590 }, 2591 "prometheusGoMetricsEnabled": { 2592 SchemaProps: spec.SchemaProps{ 2593 Description: "PrometheusGoMetricsEnabled disables Go runtime metrics collection, which the Prometheus client does by default, when set to false. This reduces the number of metrics reported, reducing Prometheus load. [Default: true]", 2594 Type: []string{"boolean"}, 2595 Format: "", 2596 }, 2597 }, 2598 "prometheusProcessMetricsEnabled": { 2599 SchemaProps: spec.SchemaProps{ 2600 Description: "PrometheusProcessMetricsEnabled disables process metrics collection, which the Prometheus client does by default, when set to false. This reduces the number of metrics reported, reducing Prometheus load. [Default: true]", 2601 Type: []string{"boolean"}, 2602 Format: "", 2603 }, 2604 }, 2605 "prometheusWireGuardMetricsEnabled": { 2606 SchemaProps: spec.SchemaProps{ 2607 Description: "PrometheusWireGuardMetricsEnabled disables wireguard metrics collection, which the Prometheus client does by default, when set to false. This reduces the number of metrics reported, reducing Prometheus load. [Default: true]", 2608 Type: []string{"boolean"}, 2609 Format: "", 2610 }, 2611 }, 2612 "failsafeInboundHostPorts": { 2613 SchemaProps: spec.SchemaProps{ 2614 Description: "FailsafeInboundHostPorts is a list of UDP/TCP ports and CIDRs that Felix will allow incoming traffic to host endpoints on irrespective of the security policy. This is useful to avoid accidentally cutting off a host with incorrect configuration. For back-compatibility, if the protocol is not specified, it defaults to \"tcp\". If a CIDR is not specified, it will allow traffic from all addresses. To disable all inbound host ports, use the value none. The default value allows ssh access and DHCP. [Default: tcp:22, udp:68, tcp:179, tcp:2379, tcp:2380, tcp:6443, tcp:6666, tcp:6667]", 2615 Type: []string{"array"}, 2616 Items: &spec.SchemaOrArray{ 2617 Schema: &spec.Schema{ 2618 SchemaProps: spec.SchemaProps{ 2619 Default: map[string]interface{}{}, 2620 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.ProtoPort"), 2621 }, 2622 }, 2623 }, 2624 }, 2625 }, 2626 "failsafeOutboundHostPorts": { 2627 SchemaProps: spec.SchemaProps{ 2628 Description: "FailsafeOutboundHostPorts is a list of UDP/TCP ports and CIDRs that Felix will allow outgoing traffic from host endpoints to irrespective of the security policy. This is useful to avoid accidentally cutting off a host with incorrect configuration. For back-compatibility, if the protocol is not specified, it defaults to \"tcp\". If a CIDR is not specified, it will allow traffic from all addresses. To disable all outbound host ports, use the value none. The default value opens etcd's standard ports to ensure that Felix does not get cut off from etcd as well as allowing DHCP and DNS. [Default: tcp:179, tcp:2379, tcp:2380, tcp:6443, tcp:6666, tcp:6667, udp:53, udp:67]", 2629 Type: []string{"array"}, 2630 Items: &spec.SchemaOrArray{ 2631 Schema: &spec.Schema{ 2632 SchemaProps: spec.SchemaProps{ 2633 Default: map[string]interface{}{}, 2634 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.ProtoPort"), 2635 }, 2636 }, 2637 }, 2638 }, 2639 }, 2640 "kubeNodePortRanges": { 2641 SchemaProps: spec.SchemaProps{ 2642 Description: "KubeNodePortRanges holds list of port ranges used for service node ports. Only used if felix detects kube-proxy running in ipvs mode. Felix uses these ranges to separate host and workload traffic. [Default: 30000:32767].", 2643 Type: []string{"array"}, 2644 Items: &spec.SchemaOrArray{ 2645 Schema: &spec.Schema{ 2646 SchemaProps: spec.SchemaProps{ 2647 Default: map[string]interface{}{}, 2648 Ref: ref("github.com/projectcalico/api/pkg/lib/numorstring.Port"), 2649 }, 2650 }, 2651 }, 2652 }, 2653 }, 2654 "policySyncPathPrefix": { 2655 SchemaProps: spec.SchemaProps{ 2656 Description: "PolicySyncPathPrefix is used to by Felix to communicate policy changes to external services, like Application layer policy. [Default: Empty]", 2657 Type: []string{"string"}, 2658 Format: "", 2659 }, 2660 }, 2661 "usageReportingEnabled": { 2662 SchemaProps: spec.SchemaProps{ 2663 Description: "UsageReportingEnabled reports anonymous Calico version number and cluster size to projectcalico.org. Logs warnings returned by the usage server. For example, if a significant security vulnerability has been discovered in the version of Calico being used. [Default: true]", 2664 Type: []string{"boolean"}, 2665 Format: "", 2666 }, 2667 }, 2668 "usageReportingInitialDelay": { 2669 SchemaProps: spec.SchemaProps{ 2670 Description: "UsageReportingInitialDelay controls the minimum delay before Felix makes a report. [Default: 300s]", 2671 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 2672 }, 2673 }, 2674 "usageReportingInterval": { 2675 SchemaProps: spec.SchemaProps{ 2676 Description: "UsageReportingInterval controls the interval at which Felix makes reports. [Default: 86400s]", 2677 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 2678 }, 2679 }, 2680 "natPortRange": { 2681 SchemaProps: spec.SchemaProps{ 2682 Description: "NATPortRange specifies the range of ports that is used for port mapping when doing outgoing NAT. When unset the default behavior of the network stack is used.", 2683 Ref: ref("github.com/projectcalico/api/pkg/lib/numorstring.Port"), 2684 }, 2685 }, 2686 "natOutgoingAddress": { 2687 SchemaProps: spec.SchemaProps{ 2688 Description: "NATOutgoingAddress specifies an address to use when performing source NAT for traffic in a natOutgoing pool that is leaving the network. By default the address used is an address on the interface the traffic is leaving on (ie it uses the iptables MASQUERADE target)", 2689 Type: []string{"string"}, 2690 Format: "", 2691 }, 2692 }, 2693 "deviceRouteSourceAddress": { 2694 SchemaProps: spec.SchemaProps{ 2695 Description: "This is the IPv4 source address to use on programmed device routes. By default the source address is left blank, leaving the kernel to choose the source address used.", 2696 Type: []string{"string"}, 2697 Format: "", 2698 }, 2699 }, 2700 "deviceRouteSourceAddressIPv6": { 2701 SchemaProps: spec.SchemaProps{ 2702 Description: "This is the IPv6 source address to use on programmed device routes. By default the source address is left blank, leaving the kernel to choose the source address used.", 2703 Type: []string{"string"}, 2704 Format: "", 2705 }, 2706 }, 2707 "deviceRouteProtocol": { 2708 SchemaProps: spec.SchemaProps{ 2709 Description: "This defines the route protocol added to programmed device routes, by default this will be RTPROT_BOOT when left blank.", 2710 Type: []string{"integer"}, 2711 Format: "int32", 2712 }, 2713 }, 2714 "removeExternalRoutes": { 2715 SchemaProps: spec.SchemaProps{ 2716 Description: "Whether or not to remove device routes that have not been programmed by Felix. Disabling this will allow external applications to also add device routes. This is enabled by default which means we will remove externally added routes.", 2717 Type: []string{"boolean"}, 2718 Format: "", 2719 }, 2720 }, 2721 "externalNodesList": { 2722 SchemaProps: spec.SchemaProps{ 2723 Description: "ExternalNodesCIDRList is a list of CIDR's of external-non-calico-nodes which may source tunnel traffic and have the tunneled traffic be accepted at calico nodes.", 2724 Type: []string{"array"}, 2725 Items: &spec.SchemaOrArray{ 2726 Schema: &spec.Schema{ 2727 SchemaProps: spec.SchemaProps{ 2728 Default: "", 2729 Type: []string{"string"}, 2730 Format: "", 2731 }, 2732 }, 2733 }, 2734 }, 2735 }, 2736 "debugMemoryProfilePath": { 2737 SchemaProps: spec.SchemaProps{ 2738 Type: []string{"string"}, 2739 Format: "", 2740 }, 2741 }, 2742 "debugDisableLogDropping": { 2743 SchemaProps: spec.SchemaProps{ 2744 Type: []string{"boolean"}, 2745 Format: "", 2746 }, 2747 }, 2748 "debugSimulateCalcGraphHangAfter": { 2749 SchemaProps: spec.SchemaProps{ 2750 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 2751 }, 2752 }, 2753 "debugSimulateDataplaneHangAfter": { 2754 SchemaProps: spec.SchemaProps{ 2755 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 2756 }, 2757 }, 2758 "iptablesNATOutgoingInterfaceFilter": { 2759 SchemaProps: spec.SchemaProps{ 2760 Type: []string{"string"}, 2761 Format: "", 2762 }, 2763 }, 2764 "sidecarAccelerationEnabled": { 2765 SchemaProps: spec.SchemaProps{ 2766 Description: "SidecarAccelerationEnabled enables experimental sidecar acceleration [Default: false]", 2767 Type: []string{"boolean"}, 2768 Format: "", 2769 }, 2770 }, 2771 "xdpEnabled": { 2772 SchemaProps: spec.SchemaProps{ 2773 Description: "XDPEnabled enables XDP acceleration for suitable untracked incoming deny rules. [Default: true]", 2774 Type: []string{"boolean"}, 2775 Format: "", 2776 }, 2777 }, 2778 "genericXDPEnabled": { 2779 SchemaProps: spec.SchemaProps{ 2780 Description: "GenericXDPEnabled enables Generic XDP so network cards that don't support XDP offload or driver modes can use XDP. This is not recommended since it doesn't provide better performance than iptables. [Default: false]", 2781 Type: []string{"boolean"}, 2782 Format: "", 2783 }, 2784 }, 2785 "bpfEnabled": { 2786 SchemaProps: spec.SchemaProps{ 2787 Description: "BPFEnabled, if enabled Felix will use the BPF dataplane. [Default: false]", 2788 Type: []string{"boolean"}, 2789 Format: "", 2790 }, 2791 }, 2792 "bpfDisableUnprivileged": { 2793 SchemaProps: spec.SchemaProps{ 2794 Description: "BPFDisableUnprivileged, if enabled, Felix sets the kernel.unprivileged_bpf_disabled sysctl to disable unprivileged use of BPF. This ensures that unprivileged users cannot access Calico's BPF maps and cannot insert their own BPF programs to interfere with Calico's. [Default: true]", 2795 Type: []string{"boolean"}, 2796 Format: "", 2797 }, 2798 }, 2799 "bpfLogLevel": { 2800 SchemaProps: spec.SchemaProps{ 2801 Description: "BPFLogLevel controls the log level of the BPF programs when in BPF dataplane mode. One of \"Off\", \"Info\", or \"Debug\". The logs are emitted to the BPF trace pipe, accessible with the command `tc exec bpf debug`. [Default: Off].", 2802 Default: "", 2803 Type: []string{"string"}, 2804 Format: "", 2805 }, 2806 }, 2807 "bpfLogFilters": { 2808 SchemaProps: spec.SchemaProps{ 2809 Description: "BPFLogFilters is a map of key=values where the value is a pcap filter expression and the key is an interface name with 'all' denoting all interfaces, 'weps' all workload endpoints and 'heps' all host endpoints.\n\nWhen specified as an env var, it accepts a comma-separated list of key=values. [Default: unset - means all debug logs are emitted]", 2810 Type: []string{"object"}, 2811 AdditionalProperties: &spec.SchemaOrBool{ 2812 Allows: true, 2813 Schema: &spec.Schema{ 2814 SchemaProps: spec.SchemaProps{ 2815 Default: "", 2816 Type: []string{"string"}, 2817 Format: "", 2818 }, 2819 }, 2820 }, 2821 }, 2822 }, 2823 "bpfCTLBLogFilter": { 2824 SchemaProps: spec.SchemaProps{ 2825 Description: "BPFCTLBLogFilter specifies, what is logged by connect time load balancer when BPFLogLevel is debug. Currently has to be specified as 'all' when BPFLogFilters is set to see CTLB logs. [Default: unset - means logs are emitted when BPFLogLevel id debug and BPFLogFilters not set.]", 2826 Type: []string{"string"}, 2827 Format: "", 2828 }, 2829 }, 2830 "bpfDataIfacePattern": { 2831 SchemaProps: spec.SchemaProps{ 2832 Description: "BPFDataIfacePattern is a regular expression that controls which interfaces Felix should attach BPF programs to in order to catch traffic to/from the network. This needs to match the interfaces that Calico workload traffic flows over as well as any interfaces that handle incoming traffic to nodeports and services from outside the cluster. It should not match the workload interfaces (usually named cali...).", 2833 Type: []string{"string"}, 2834 Format: "", 2835 }, 2836 }, 2837 "bpfL3IfacePattern": { 2838 SchemaProps: spec.SchemaProps{ 2839 Description: "BPFL3IfacePattern is a regular expression that allows to list tunnel devices like wireguard or vxlan (i.e., L3 devices) in addition to BPFDataIfacePattern. That is, tunnel interfaces not created by Calico, that Calico workload traffic flows over as well as any interfaces that handle incoming traffic to nodeports and services from outside the cluster.", 2840 Type: []string{"string"}, 2841 Format: "", 2842 }, 2843 }, 2844 "bpfConnectTimeLoadBalancingEnabled": { 2845 SchemaProps: spec.SchemaProps{ 2846 Description: "BPFConnectTimeLoadBalancingEnabled when in BPF mode, controls whether Felix installs the connection-time load balancer. The connect-time load balancer is required for the host to be able to reach Kubernetes services and it improves the performance of pod-to-service connections. The only reason to disable it is for debugging purposes. This will be deprecated. Use BPFConnectTimeLoadBalancing [Default: true]", 2847 Type: []string{"boolean"}, 2848 Format: "", 2849 }, 2850 }, 2851 "bpfConnectTimeLoadBalancing": { 2852 SchemaProps: spec.SchemaProps{ 2853 Description: "BPFConnectTimeLoadBalancing when in BPF mode, controls whether Felix installs the connect-time load balancer. The connect-time load balancer is required for the host to be able to reach Kubernetes services and it improves the performance of pod-to-service connections.When set to TCP, connect time load balancing is available only for services with TCP ports. [Default: TCP]", 2854 Type: []string{"string"}, 2855 Format: "", 2856 }, 2857 }, 2858 "bpfHostNetworkedNATWithoutCTLB": { 2859 SchemaProps: spec.SchemaProps{ 2860 Description: "BPFHostNetworkedNATWithoutCTLB when in BPF mode, controls whether Felix does a NAT without CTLB. This along with BPFConnectTimeLoadBalancing determines the CTLB behavior. [Default: Enabled]", 2861 Type: []string{"string"}, 2862 Format: "", 2863 }, 2864 }, 2865 "bpfExternalServiceMode": { 2866 SchemaProps: spec.SchemaProps{ 2867 Description: "BPFExternalServiceMode in BPF mode, controls how connections from outside the cluster to services (node ports and cluster IPs) are forwarded to remote workloads. If set to \"Tunnel\" then both request and response traffic is tunneled to the remote node. If set to \"DSR\", the request traffic is tunneled but the response traffic is sent directly from the remote node. In \"DSR\" mode, the remote node appears to use the IP of the ingress node; this requires a permissive L2 network. [Default: Tunnel]", 2868 Type: []string{"string"}, 2869 Format: "", 2870 }, 2871 }, 2872 "bpfDSROptoutCIDRs": { 2873 SchemaProps: spec.SchemaProps{ 2874 Description: "BPFDSROptoutCIDRs is a list of CIDRs which are excluded from DSR. That is, clients in those CIDRs will accesses nodeports as if BPFExternalServiceMode was set to Tunnel.", 2875 Type: []string{"array"}, 2876 Items: &spec.SchemaOrArray{ 2877 Schema: &spec.Schema{ 2878 SchemaProps: spec.SchemaProps{ 2879 Default: "", 2880 Type: []string{"string"}, 2881 Format: "", 2882 }, 2883 }, 2884 }, 2885 }, 2886 }, 2887 "bpfExtToServiceConnmark": { 2888 SchemaProps: spec.SchemaProps{ 2889 Description: "BPFExtToServiceConnmark in BPF mode, control a 32bit mark that is set on connections from an external client to a local service. This mark allows us to control how packets of that connection are routed within the host and how is routing interpreted by RPF check. [Default: 0]", 2890 Type: []string{"integer"}, 2891 Format: "int32", 2892 }, 2893 }, 2894 "bpfKubeProxyIptablesCleanupEnabled": { 2895 SchemaProps: spec.SchemaProps{ 2896 Description: "BPFKubeProxyIptablesCleanupEnabled, if enabled in BPF mode, Felix will proactively clean up the upstream Kubernetes kube-proxy's iptables chains. Should only be enabled if kube-proxy is not running. [Default: true]", 2897 Type: []string{"boolean"}, 2898 Format: "", 2899 }, 2900 }, 2901 "bpfKubeProxyMinSyncPeriod": { 2902 SchemaProps: spec.SchemaProps{ 2903 Description: "BPFKubeProxyMinSyncPeriod, in BPF mode, controls the minimum time between updates to the dataplane for Felix's embedded kube-proxy. Lower values give reduced set-up latency. Higher values reduce Felix CPU usage by batching up more work. [Default: 1s]", 2904 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 2905 }, 2906 }, 2907 "bpfKubeProxyEndpointSlicesEnabled": { 2908 SchemaProps: spec.SchemaProps{ 2909 Description: "BPFKubeProxyEndpointSlicesEnabled in BPF mode, controls whether Felix's embedded kube-proxy accepts EndpointSlices or not.", 2910 Type: []string{"boolean"}, 2911 Format: "", 2912 }, 2913 }, 2914 "bpfPSNATPorts": { 2915 SchemaProps: spec.SchemaProps{ 2916 Description: "BPFPSNATPorts sets the range from which we randomly pick a port if there is a source port collision. This should be within the ephemeral range as defined by RFC 6056 (1024–65535) and preferably outside the ephemeral ranges used by common operating systems. Linux uses 32768–60999, while others mostly use the IANA defined range 49152–65535. It is not necessarily a problem if this range overlaps with the operating systems. Both ends of the range are inclusive. [Default: 20000:29999]", 2917 Ref: ref("github.com/projectcalico/api/pkg/lib/numorstring.Port"), 2918 }, 2919 }, 2920 "bpfMapSizeNATFrontend": { 2921 SchemaProps: spec.SchemaProps{ 2922 Description: "BPFMapSizeNATFrontend sets the size for nat front end map. FrontendMap should be large enough to hold an entry for each nodeport, external IP and each port in each service.", 2923 Type: []string{"integer"}, 2924 Format: "int32", 2925 }, 2926 }, 2927 "bpfMapSizeNATBackend": { 2928 SchemaProps: spec.SchemaProps{ 2929 Description: "BPFMapSizeNATBackend sets the size for nat back end map. This is the total number of endpoints. This is mostly more than the size of the number of services.", 2930 Type: []string{"integer"}, 2931 Format: "int32", 2932 }, 2933 }, 2934 "bpfMapSizeNATAffinity": { 2935 SchemaProps: spec.SchemaProps{ 2936 Type: []string{"integer"}, 2937 Format: "int32", 2938 }, 2939 }, 2940 "bpfMapSizeRoute": { 2941 SchemaProps: spec.SchemaProps{ 2942 Description: "BPFMapSizeRoute sets the size for the routes map. The routes map should be large enough to hold one entry per workload and a handful of entries per host (enough to cover its own IPs and tunnel IPs).", 2943 Type: []string{"integer"}, 2944 Format: "int32", 2945 }, 2946 }, 2947 "bpfMapSizeConntrack": { 2948 SchemaProps: spec.SchemaProps{ 2949 Description: "BPFMapSizeConntrack sets the size for the conntrack map. This map must be large enough to hold an entry for each active connection. Warning: changing the size of the conntrack map can cause disruption.", 2950 Type: []string{"integer"}, 2951 Format: "int32", 2952 }, 2953 }, 2954 "bpfMapSizeIPSets": { 2955 SchemaProps: spec.SchemaProps{ 2956 Description: "BPFMapSizeIPSets sets the size for ipsets map. The IP sets map must be large enough to hold an entry for each endpoint matched by every selector in the source/destination matches in network policy. Selectors such as \"all()\" can result in large numbers of entries (one entry per endpoint in that case).", 2957 Type: []string{"integer"}, 2958 Format: "int32", 2959 }, 2960 }, 2961 "bpfMapSizeIfState": { 2962 SchemaProps: spec.SchemaProps{ 2963 Description: "BPFMapSizeIfState sets the size for ifstate map. The ifstate map must be large enough to hold an entry for each device (host + workloads) on a host.", 2964 Type: []string{"integer"}, 2965 Format: "int32", 2966 }, 2967 }, 2968 "bpfHostConntrackBypass": { 2969 SchemaProps: spec.SchemaProps{ 2970 Description: "BPFHostConntrackBypass Controls whether to bypass Linux conntrack in BPF mode for workloads and services. [Default: true - bypass Linux conntrack]", 2971 Type: []string{"boolean"}, 2972 Format: "", 2973 }, 2974 }, 2975 "bpfEnforceRPF": { 2976 SchemaProps: spec.SchemaProps{ 2977 Description: "BPFEnforceRPF enforce strict RPF on all host interfaces with BPF programs regardless of what is the per-interfaces or global setting. Possible values are Disabled, Strict or Loose. [Default: Loose]", 2978 Type: []string{"string"}, 2979 Format: "", 2980 }, 2981 }, 2982 "bpfPolicyDebugEnabled": { 2983 SchemaProps: spec.SchemaProps{ 2984 Description: "BPFPolicyDebugEnabled when true, Felix records detailed information about the BPF policy programs, which can be examined with the calico-bpf command-line tool.", 2985 Type: []string{"boolean"}, 2986 Format: "", 2987 }, 2988 }, 2989 "bpfForceTrackPacketsFromIfaces": { 2990 SchemaProps: spec.SchemaProps{ 2991 Description: "BPFForceTrackPacketsFromIfaces in BPF mode, forces traffic from these interfaces to skip Calico's iptables NOTRACK rule, allowing traffic from those interfaces to be tracked by Linux conntrack. Should only be used for interfaces that are not used for the Calico fabric. For example, a docker bridge device for non-Calico-networked containers. [Default: docker+]", 2992 Type: []string{"array"}, 2993 Items: &spec.SchemaOrArray{ 2994 Schema: &spec.Schema{ 2995 SchemaProps: spec.SchemaProps{ 2996 Default: "", 2997 Type: []string{"string"}, 2998 Format: "", 2999 }, 3000 }, 3001 }, 3002 }, 3003 }, 3004 "bpfDisableGROForIfaces": { 3005 SchemaProps: spec.SchemaProps{ 3006 Description: "BPFDisableGROForIfaces is a regular expression that controls which interfaces Felix should disable the Generic Receive Offload [GRO] option. It should not match the workload interfaces (usually named cali...).", 3007 Type: []string{"string"}, 3008 Format: "", 3009 }, 3010 }, 3011 "routeSource": { 3012 SchemaProps: spec.SchemaProps{ 3013 Description: "RouteSource configures where Felix gets its routing information. - WorkloadIPs: use workload endpoints to construct routes. - CalicoIPAM: the default - use IPAM data to construct routes.", 3014 Type: []string{"string"}, 3015 Format: "", 3016 }, 3017 }, 3018 "routeTableRanges": { 3019 SchemaProps: spec.SchemaProps{ 3020 Description: "Calico programs additional Linux route tables for various purposes. RouteTableRanges specifies a set of table index ranges that Calico should use. Deprecates`RouteTableRange`, overrides `RouteTableRange`.", 3021 Type: []string{"array"}, 3022 Items: &spec.SchemaOrArray{ 3023 Schema: &spec.Schema{ 3024 SchemaProps: spec.SchemaProps{ 3025 Default: map[string]interface{}{}, 3026 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.RouteTableIDRange"), 3027 }, 3028 }, 3029 }, 3030 }, 3031 }, 3032 "routeTableRange": { 3033 SchemaProps: spec.SchemaProps{ 3034 Description: "Deprecated in favor of RouteTableRanges. Calico programs additional Linux route tables for various purposes. RouteTableRange specifies the indices of the route tables that Calico should use.", 3035 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.RouteTableRange"), 3036 }, 3037 }, 3038 "routeSyncDisabled": { 3039 SchemaProps: spec.SchemaProps{ 3040 Description: "RouteSyncDisabled will disable all operations performed on the route table. Set to true to run in network-policy mode only.", 3041 Type: []string{"boolean"}, 3042 Format: "", 3043 }, 3044 }, 3045 "wireguardEnabled": { 3046 SchemaProps: spec.SchemaProps{ 3047 Description: "WireguardEnabled controls whether Wireguard is enabled for IPv4 (encapsulating IPv4 traffic over an IPv4 underlay network). [Default: false]", 3048 Type: []string{"boolean"}, 3049 Format: "", 3050 }, 3051 }, 3052 "wireguardEnabledV6": { 3053 SchemaProps: spec.SchemaProps{ 3054 Description: "WireguardEnabledV6 controls whether Wireguard is enabled for IPv6 (encapsulating IPv6 traffic over an IPv6 underlay network). [Default: false]", 3055 Type: []string{"boolean"}, 3056 Format: "", 3057 }, 3058 }, 3059 "wireguardListeningPort": { 3060 SchemaProps: spec.SchemaProps{ 3061 Description: "WireguardListeningPort controls the listening port used by IPv4 Wireguard. [Default: 51820]", 3062 Type: []string{"integer"}, 3063 Format: "int32", 3064 }, 3065 }, 3066 "wireguardListeningPortV6": { 3067 SchemaProps: spec.SchemaProps{ 3068 Description: "WireguardListeningPortV6 controls the listening port used by IPv6 Wireguard. [Default: 51821]", 3069 Type: []string{"integer"}, 3070 Format: "int32", 3071 }, 3072 }, 3073 "wireguardRoutingRulePriority": { 3074 SchemaProps: spec.SchemaProps{ 3075 Description: "WireguardRoutingRulePriority controls the priority value to use for the Wireguard routing rule. [Default: 99]", 3076 Type: []string{"integer"}, 3077 Format: "int32", 3078 }, 3079 }, 3080 "wireguardInterfaceName": { 3081 SchemaProps: spec.SchemaProps{ 3082 Description: "WireguardInterfaceName specifies the name to use for the IPv4 Wireguard interface. [Default: wireguard.cali]", 3083 Type: []string{"string"}, 3084 Format: "", 3085 }, 3086 }, 3087 "wireguardInterfaceNameV6": { 3088 SchemaProps: spec.SchemaProps{ 3089 Description: "WireguardInterfaceNameV6 specifies the name to use for the IPv6 Wireguard interface. [Default: wg-v6.cali]", 3090 Type: []string{"string"}, 3091 Format: "", 3092 }, 3093 }, 3094 "wireguardMTU": { 3095 SchemaProps: spec.SchemaProps{ 3096 Description: "WireguardMTU controls the MTU on the IPv4 Wireguard interface. See Configuring MTU [Default: 1440]", 3097 Type: []string{"integer"}, 3098 Format: "int32", 3099 }, 3100 }, 3101 "wireguardMTUV6": { 3102 SchemaProps: spec.SchemaProps{ 3103 Description: "WireguardMTUV6 controls the MTU on the IPv6 Wireguard interface. See Configuring MTU [Default: 1420]", 3104 Type: []string{"integer"}, 3105 Format: "int32", 3106 }, 3107 }, 3108 "wireguardHostEncryptionEnabled": { 3109 SchemaProps: spec.SchemaProps{ 3110 Description: "WireguardHostEncryptionEnabled controls whether Wireguard host-to-host encryption is enabled. [Default: false]", 3111 Type: []string{"boolean"}, 3112 Format: "", 3113 }, 3114 }, 3115 "wireguardKeepAlive": { 3116 SchemaProps: spec.SchemaProps{ 3117 Description: "WireguardKeepAlive controls Wireguard PersistentKeepalive option. Set 0 to disable. [Default: 0]", 3118 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 3119 }, 3120 }, 3121 "awsSrcDstCheck": { 3122 SchemaProps: spec.SchemaProps{ 3123 Description: "Set source-destination-check on AWS EC2 instances. Accepted value must be one of \"DoNothing\", \"Enable\" or \"Disable\". [Default: DoNothing]", 3124 Type: []string{"string"}, 3125 Format: "", 3126 }, 3127 }, 3128 "serviceLoopPrevention": { 3129 SchemaProps: spec.SchemaProps{ 3130 Description: "When service IP advertisement is enabled, prevent routing loops to service IPs that are not in use, by dropping or rejecting packets that do not get DNAT'd by kube-proxy. Unless set to \"Disabled\", in which case such routing loops continue to be allowed. [Default: Drop]", 3131 Type: []string{"string"}, 3132 Format: "", 3133 }, 3134 }, 3135 "workloadSourceSpoofing": { 3136 SchemaProps: spec.SchemaProps{ 3137 Description: "WorkloadSourceSpoofing controls whether pods can use the allowedSourcePrefixes annotation to send traffic with a source IP address that is not theirs. This is disabled by default. When set to \"Any\", pods can request any prefix.", 3138 Type: []string{"string"}, 3139 Format: "", 3140 }, 3141 }, 3142 "mtuIfacePattern": { 3143 SchemaProps: spec.SchemaProps{ 3144 Description: "MTUIfacePattern is a regular expression that controls which interfaces Felix should scan in order to calculate the host's MTU. This should not match workload interfaces (usually named cali...).", 3145 Type: []string{"string"}, 3146 Format: "", 3147 }, 3148 }, 3149 "floatingIPs": { 3150 SchemaProps: spec.SchemaProps{ 3151 Description: "FloatingIPs configures whether or not Felix will program non-OpenStack floating IP addresses. (OpenStack-derived floating IPs are always programmed, regardless of this setting.)", 3152 Type: []string{"string"}, 3153 Format: "", 3154 }, 3155 }, 3156 "windowsManageFirewallRules": { 3157 SchemaProps: spec.SchemaProps{ 3158 Description: "WindowsManageFirewallRules configures whether or not Felix will program Windows Firewall rules. (to allow inbound access to its own metrics ports) [Default: Disabled]", 3159 Type: []string{"string"}, 3160 Format: "", 3161 }, 3162 }, 3163 }, 3164 }, 3165 }, 3166 Dependencies: []string{ 3167 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.HealthTimeoutOverride", "github.com/projectcalico/api/pkg/apis/projectcalico/v3.ProtoPort", "github.com/projectcalico/api/pkg/apis/projectcalico/v3.RouteTableIDRange", "github.com/projectcalico/api/pkg/apis/projectcalico/v3.RouteTableRange", "github.com/projectcalico/api/pkg/lib/numorstring.Port", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration"}, 3168 } 3169 } 3170 3171 func schema_pkg_apis_projectcalico_v3_GlobalNetworkPolicy(ref common.ReferenceCallback) common.OpenAPIDefinition { 3172 return common.OpenAPIDefinition{ 3173 Schema: spec.Schema{ 3174 SchemaProps: spec.SchemaProps{ 3175 Type: []string{"object"}, 3176 Properties: map[string]spec.Schema{ 3177 "kind": { 3178 SchemaProps: spec.SchemaProps{ 3179 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 3180 Type: []string{"string"}, 3181 Format: "", 3182 }, 3183 }, 3184 "apiVersion": { 3185 SchemaProps: spec.SchemaProps{ 3186 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 3187 Type: []string{"string"}, 3188 Format: "", 3189 }, 3190 }, 3191 "metadata": { 3192 SchemaProps: spec.SchemaProps{ 3193 Default: map[string]interface{}{}, 3194 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 3195 }, 3196 }, 3197 "spec": { 3198 SchemaProps: spec.SchemaProps{ 3199 Default: map[string]interface{}{}, 3200 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.GlobalNetworkPolicySpec"), 3201 }, 3202 }, 3203 }, 3204 }, 3205 }, 3206 Dependencies: []string{ 3207 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.GlobalNetworkPolicySpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 3208 } 3209 } 3210 3211 func schema_pkg_apis_projectcalico_v3_GlobalNetworkPolicyList(ref common.ReferenceCallback) common.OpenAPIDefinition { 3212 return common.OpenAPIDefinition{ 3213 Schema: spec.Schema{ 3214 SchemaProps: spec.SchemaProps{ 3215 Description: "GlobalNetworkPolicyList is a list of Policy objects.", 3216 Type: []string{"object"}, 3217 Properties: map[string]spec.Schema{ 3218 "kind": { 3219 SchemaProps: spec.SchemaProps{ 3220 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 3221 Type: []string{"string"}, 3222 Format: "", 3223 }, 3224 }, 3225 "apiVersion": { 3226 SchemaProps: spec.SchemaProps{ 3227 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 3228 Type: []string{"string"}, 3229 Format: "", 3230 }, 3231 }, 3232 "metadata": { 3233 SchemaProps: spec.SchemaProps{ 3234 Default: map[string]interface{}{}, 3235 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 3236 }, 3237 }, 3238 "items": { 3239 SchemaProps: spec.SchemaProps{ 3240 Type: []string{"array"}, 3241 Items: &spec.SchemaOrArray{ 3242 Schema: &spec.Schema{ 3243 SchemaProps: spec.SchemaProps{ 3244 Default: map[string]interface{}{}, 3245 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.GlobalNetworkPolicy"), 3246 }, 3247 }, 3248 }, 3249 }, 3250 }, 3251 }, 3252 Required: []string{"items"}, 3253 }, 3254 }, 3255 Dependencies: []string{ 3256 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.GlobalNetworkPolicy", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 3257 } 3258 } 3259 3260 func schema_pkg_apis_projectcalico_v3_GlobalNetworkPolicySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 3261 return common.OpenAPIDefinition{ 3262 Schema: spec.Schema{ 3263 SchemaProps: spec.SchemaProps{ 3264 Type: []string{"object"}, 3265 Properties: map[string]spec.Schema{ 3266 "order": { 3267 SchemaProps: spec.SchemaProps{ 3268 Description: "Order is an optional field that specifies the order in which the policy is applied. Policies with higher \"order\" are applied after those with lower order. If the order is omitted, it may be considered to be \"infinite\" - i.e. the policy will be applied last. Policies with identical order will be applied in alphanumerical order based on the Policy \"Name\".", 3269 Type: []string{"number"}, 3270 Format: "double", 3271 }, 3272 }, 3273 "ingress": { 3274 SchemaProps: spec.SchemaProps{ 3275 Description: "The ordered set of ingress rules. Each rule contains a set of packet match criteria and a corresponding action to apply.", 3276 Type: []string{"array"}, 3277 Items: &spec.SchemaOrArray{ 3278 Schema: &spec.Schema{ 3279 SchemaProps: spec.SchemaProps{ 3280 Default: map[string]interface{}{}, 3281 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.Rule"), 3282 }, 3283 }, 3284 }, 3285 }, 3286 }, 3287 "egress": { 3288 SchemaProps: spec.SchemaProps{ 3289 Description: "The ordered set of egress rules. Each rule contains a set of packet match criteria and a corresponding action to apply.", 3290 Type: []string{"array"}, 3291 Items: &spec.SchemaOrArray{ 3292 Schema: &spec.Schema{ 3293 SchemaProps: spec.SchemaProps{ 3294 Default: map[string]interface{}{}, 3295 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.Rule"), 3296 }, 3297 }, 3298 }, 3299 }, 3300 }, 3301 "selector": { 3302 SchemaProps: spec.SchemaProps{ 3303 Description: "The selector is an expression used to pick out the endpoints that the policy should be applied to.\n\nSelector expressions follow this syntax:\n\n\tlabel == \"string_literal\" -> comparison, e.g. my_label == \"foo bar\"\n\tlabel != \"string_literal\" -> not equal; also matches if label is not present\n\tlabel in { \"a\", \"b\", \"c\", ... } -> true if the value of label X is one of \"a\", \"b\", \"c\"\n\tlabel not in { \"a\", \"b\", \"c\", ... } -> true if the value of label X is not one of \"a\", \"b\", \"c\"\n\thas(label_name) -> True if that label is present\n\t! expr -> negation of expr\n\texpr && expr -> Short-circuit and\n\texpr || expr -> Short-circuit or\n\t( expr ) -> parens for grouping\n\tall() or the empty selector -> matches all endpoints.\n\nLabel names are allowed to contain alphanumerics, -, _ and /. String literals are more permissive but they do not support escape characters.\n\nExamples (with made-up labels):\n\n\ttype == \"webserver\" && deployment == \"prod\"\n\ttype in {\"frontend\", \"backend\"}\n\tdeployment != \"dev\"\n\t! has(label_name)", 3304 Type: []string{"string"}, 3305 Format: "", 3306 }, 3307 }, 3308 "types": { 3309 SchemaProps: spec.SchemaProps{ 3310 Description: "Types indicates whether this policy applies to ingress, or to egress, or to both. When not explicitly specified (and so the value on creation is empty or nil), Calico defaults Types according to what Ingress and Egress rules are present in the policy. The default is:\n\n- [ PolicyTypeIngress ], if there are no Egress rules (including the case where there are\n also no Ingress rules)\n\n- [ PolicyTypeEgress ], if there are Egress rules but no Ingress rules\n\n- [ PolicyTypeIngress, PolicyTypeEgress ], if there are both Ingress and Egress rules.\n\nWhen the policy is read back again, Types will always be one of these values, never empty or nil.", 3311 Type: []string{"array"}, 3312 Items: &spec.SchemaOrArray{ 3313 Schema: &spec.Schema{ 3314 SchemaProps: spec.SchemaProps{ 3315 Default: "", 3316 Type: []string{"string"}, 3317 Format: "", 3318 }, 3319 }, 3320 }, 3321 }, 3322 }, 3323 "doNotTrack": { 3324 SchemaProps: spec.SchemaProps{ 3325 Description: "DoNotTrack indicates whether packets matched by the rules in this policy should go through the data plane's connection tracking, such as Linux conntrack. If True, the rules in this policy are applied before any data plane connection tracking, and packets allowed by this policy are marked as not to be tracked.", 3326 Type: []string{"boolean"}, 3327 Format: "", 3328 }, 3329 }, 3330 "preDNAT": { 3331 SchemaProps: spec.SchemaProps{ 3332 Description: "PreDNAT indicates to apply the rules in this policy before any DNAT.", 3333 Type: []string{"boolean"}, 3334 Format: "", 3335 }, 3336 }, 3337 "applyOnForward": { 3338 SchemaProps: spec.SchemaProps{ 3339 Description: "ApplyOnForward indicates to apply the rules in this policy on forward traffic.", 3340 Type: []string{"boolean"}, 3341 Format: "", 3342 }, 3343 }, 3344 "serviceAccountSelector": { 3345 SchemaProps: spec.SchemaProps{ 3346 Description: "ServiceAccountSelector is an optional field for an expression used to select a pod based on service accounts.", 3347 Type: []string{"string"}, 3348 Format: "", 3349 }, 3350 }, 3351 "namespaceSelector": { 3352 SchemaProps: spec.SchemaProps{ 3353 Description: "NamespaceSelector is an optional field for an expression used to select a pod based on namespaces.", 3354 Type: []string{"string"}, 3355 Format: "", 3356 }, 3357 }, 3358 "performanceHints": { 3359 SchemaProps: spec.SchemaProps{ 3360 Description: "PerformanceHints contains a list of hints to Calico's policy engine to help process the policy more efficiently. Hints never change the enforcement behaviour of the policy.\n\nCurrently, the only available hint is \"AssumeNeededOnEveryNode\". When that hint is set on a policy, Felix will act as if the policy matches a local endpoint even if it does not. This is useful for \"preloading\" any large static policies that are known to be used on every node. If the policy is _not_ used on a particular node then the work done to preload the policy (and to maintain it) is wasted.", 3361 Type: []string{"array"}, 3362 Items: &spec.SchemaOrArray{ 3363 Schema: &spec.Schema{ 3364 SchemaProps: spec.SchemaProps{ 3365 Default: "", 3366 Type: []string{"string"}, 3367 Format: "", 3368 }, 3369 }, 3370 }, 3371 }, 3372 }, 3373 }, 3374 }, 3375 }, 3376 Dependencies: []string{ 3377 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.Rule"}, 3378 } 3379 } 3380 3381 func schema_pkg_apis_projectcalico_v3_GlobalNetworkSet(ref common.ReferenceCallback) common.OpenAPIDefinition { 3382 return common.OpenAPIDefinition{ 3383 Schema: spec.Schema{ 3384 SchemaProps: spec.SchemaProps{ 3385 Type: []string{"object"}, 3386 Properties: map[string]spec.Schema{ 3387 "kind": { 3388 SchemaProps: spec.SchemaProps{ 3389 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 3390 Type: []string{"string"}, 3391 Format: "", 3392 }, 3393 }, 3394 "apiVersion": { 3395 SchemaProps: spec.SchemaProps{ 3396 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 3397 Type: []string{"string"}, 3398 Format: "", 3399 }, 3400 }, 3401 "metadata": { 3402 SchemaProps: spec.SchemaProps{ 3403 Default: map[string]interface{}{}, 3404 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 3405 }, 3406 }, 3407 "spec": { 3408 SchemaProps: spec.SchemaProps{ 3409 Default: map[string]interface{}{}, 3410 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.GlobalNetworkSetSpec"), 3411 }, 3412 }, 3413 }, 3414 }, 3415 }, 3416 Dependencies: []string{ 3417 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.GlobalNetworkSetSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 3418 } 3419 } 3420 3421 func schema_pkg_apis_projectcalico_v3_GlobalNetworkSetList(ref common.ReferenceCallback) common.OpenAPIDefinition { 3422 return common.OpenAPIDefinition{ 3423 Schema: spec.Schema{ 3424 SchemaProps: spec.SchemaProps{ 3425 Description: "GlobalNetworkSetList is a list of NetworkSet objects.", 3426 Type: []string{"object"}, 3427 Properties: map[string]spec.Schema{ 3428 "kind": { 3429 SchemaProps: spec.SchemaProps{ 3430 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 3431 Type: []string{"string"}, 3432 Format: "", 3433 }, 3434 }, 3435 "apiVersion": { 3436 SchemaProps: spec.SchemaProps{ 3437 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 3438 Type: []string{"string"}, 3439 Format: "", 3440 }, 3441 }, 3442 "metadata": { 3443 SchemaProps: spec.SchemaProps{ 3444 Default: map[string]interface{}{}, 3445 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 3446 }, 3447 }, 3448 "items": { 3449 SchemaProps: spec.SchemaProps{ 3450 Type: []string{"array"}, 3451 Items: &spec.SchemaOrArray{ 3452 Schema: &spec.Schema{ 3453 SchemaProps: spec.SchemaProps{ 3454 Default: map[string]interface{}{}, 3455 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.GlobalNetworkSet"), 3456 }, 3457 }, 3458 }, 3459 }, 3460 }, 3461 }, 3462 Required: []string{"items"}, 3463 }, 3464 }, 3465 Dependencies: []string{ 3466 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.GlobalNetworkSet", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 3467 } 3468 } 3469 3470 func schema_pkg_apis_projectcalico_v3_GlobalNetworkSetSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 3471 return common.OpenAPIDefinition{ 3472 Schema: spec.Schema{ 3473 SchemaProps: spec.SchemaProps{ 3474 Description: "GlobalNetworkSetSpec contains the specification for a NetworkSet resource.", 3475 Type: []string{"object"}, 3476 Properties: map[string]spec.Schema{ 3477 "nets": { 3478 SchemaProps: spec.SchemaProps{ 3479 Description: "The list of IP networks that belong to this set.", 3480 Type: []string{"array"}, 3481 Items: &spec.SchemaOrArray{ 3482 Schema: &spec.Schema{ 3483 SchemaProps: spec.SchemaProps{ 3484 Default: "", 3485 Type: []string{"string"}, 3486 Format: "", 3487 }, 3488 }, 3489 }, 3490 }, 3491 }, 3492 }, 3493 }, 3494 }, 3495 } 3496 } 3497 3498 func schema_pkg_apis_projectcalico_v3_HTTPMatch(ref common.ReferenceCallback) common.OpenAPIDefinition { 3499 return common.OpenAPIDefinition{ 3500 Schema: spec.Schema{ 3501 SchemaProps: spec.SchemaProps{ 3502 Description: "HTTPMatch is an optional field that apply only to HTTP requests The Methods and Path fields are joined with AND", 3503 Type: []string{"object"}, 3504 Properties: map[string]spec.Schema{ 3505 "methods": { 3506 SchemaProps: spec.SchemaProps{ 3507 Description: "Methods is an optional field that restricts the rule to apply only to HTTP requests that use one of the listed HTTP Methods (e.g. GET, PUT, etc.) Multiple methods are OR'd together.", 3508 Type: []string{"array"}, 3509 Items: &spec.SchemaOrArray{ 3510 Schema: &spec.Schema{ 3511 SchemaProps: spec.SchemaProps{ 3512 Default: "", 3513 Type: []string{"string"}, 3514 Format: "", 3515 }, 3516 }, 3517 }, 3518 }, 3519 }, 3520 "paths": { 3521 SchemaProps: spec.SchemaProps{ 3522 Description: "Paths is an optional field that restricts the rule to apply to HTTP requests that use one of the listed HTTP Paths. Multiple paths are OR'd together. e.g: - exact: /foo - prefix: /bar NOTE: Each entry may ONLY specify either a `exact` or a `prefix` match. The validator will check for it.", 3523 Type: []string{"array"}, 3524 Items: &spec.SchemaOrArray{ 3525 Schema: &spec.Schema{ 3526 SchemaProps: spec.SchemaProps{ 3527 Default: map[string]interface{}{}, 3528 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.HTTPPath"), 3529 }, 3530 }, 3531 }, 3532 }, 3533 }, 3534 }, 3535 }, 3536 }, 3537 Dependencies: []string{ 3538 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.HTTPPath"}, 3539 } 3540 } 3541 3542 func schema_pkg_apis_projectcalico_v3_HTTPPath(ref common.ReferenceCallback) common.OpenAPIDefinition { 3543 return common.OpenAPIDefinition{ 3544 Schema: spec.Schema{ 3545 SchemaProps: spec.SchemaProps{ 3546 Description: "HTTPPath specifies an HTTP path to match. It may be either of the form: exact: <path>: which matches the path exactly or prefix: <path-prefix>: which matches the path prefix", 3547 Type: []string{"object"}, 3548 Properties: map[string]spec.Schema{ 3549 "exact": { 3550 SchemaProps: spec.SchemaProps{ 3551 Type: []string{"string"}, 3552 Format: "", 3553 }, 3554 }, 3555 "prefix": { 3556 SchemaProps: spec.SchemaProps{ 3557 Type: []string{"string"}, 3558 Format: "", 3559 }, 3560 }, 3561 }, 3562 }, 3563 }, 3564 } 3565 } 3566 3567 func schema_pkg_apis_projectcalico_v3_HealthTimeoutOverride(ref common.ReferenceCallback) common.OpenAPIDefinition { 3568 return common.OpenAPIDefinition{ 3569 Schema: spec.Schema{ 3570 SchemaProps: spec.SchemaProps{ 3571 Type: []string{"object"}, 3572 Properties: map[string]spec.Schema{ 3573 "name": { 3574 SchemaProps: spec.SchemaProps{ 3575 Default: "", 3576 Type: []string{"string"}, 3577 Format: "", 3578 }, 3579 }, 3580 "timeout": { 3581 SchemaProps: spec.SchemaProps{ 3582 Default: 0, 3583 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 3584 }, 3585 }, 3586 }, 3587 Required: []string{"name", "timeout"}, 3588 }, 3589 }, 3590 Dependencies: []string{ 3591 "k8s.io/apimachinery/pkg/apis/meta/v1.Duration"}, 3592 } 3593 } 3594 3595 func schema_pkg_apis_projectcalico_v3_HostEndpoint(ref common.ReferenceCallback) common.OpenAPIDefinition { 3596 return common.OpenAPIDefinition{ 3597 Schema: spec.Schema{ 3598 SchemaProps: spec.SchemaProps{ 3599 Type: []string{"object"}, 3600 Properties: map[string]spec.Schema{ 3601 "kind": { 3602 SchemaProps: spec.SchemaProps{ 3603 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 3604 Type: []string{"string"}, 3605 Format: "", 3606 }, 3607 }, 3608 "apiVersion": { 3609 SchemaProps: spec.SchemaProps{ 3610 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 3611 Type: []string{"string"}, 3612 Format: "", 3613 }, 3614 }, 3615 "metadata": { 3616 SchemaProps: spec.SchemaProps{ 3617 Default: map[string]interface{}{}, 3618 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 3619 }, 3620 }, 3621 "spec": { 3622 SchemaProps: spec.SchemaProps{ 3623 Default: map[string]interface{}{}, 3624 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.HostEndpointSpec"), 3625 }, 3626 }, 3627 }, 3628 }, 3629 }, 3630 Dependencies: []string{ 3631 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.HostEndpointSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 3632 } 3633 } 3634 3635 func schema_pkg_apis_projectcalico_v3_HostEndpointList(ref common.ReferenceCallback) common.OpenAPIDefinition { 3636 return common.OpenAPIDefinition{ 3637 Schema: spec.Schema{ 3638 SchemaProps: spec.SchemaProps{ 3639 Description: "HostEndpointList is a list of HostEndpoint objects.", 3640 Type: []string{"object"}, 3641 Properties: map[string]spec.Schema{ 3642 "kind": { 3643 SchemaProps: spec.SchemaProps{ 3644 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 3645 Type: []string{"string"}, 3646 Format: "", 3647 }, 3648 }, 3649 "apiVersion": { 3650 SchemaProps: spec.SchemaProps{ 3651 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 3652 Type: []string{"string"}, 3653 Format: "", 3654 }, 3655 }, 3656 "metadata": { 3657 SchemaProps: spec.SchemaProps{ 3658 Default: map[string]interface{}{}, 3659 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 3660 }, 3661 }, 3662 "items": { 3663 SchemaProps: spec.SchemaProps{ 3664 Type: []string{"array"}, 3665 Items: &spec.SchemaOrArray{ 3666 Schema: &spec.Schema{ 3667 SchemaProps: spec.SchemaProps{ 3668 Default: map[string]interface{}{}, 3669 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.HostEndpoint"), 3670 }, 3671 }, 3672 }, 3673 }, 3674 }, 3675 }, 3676 Required: []string{"items"}, 3677 }, 3678 }, 3679 Dependencies: []string{ 3680 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.HostEndpoint", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 3681 } 3682 } 3683 3684 func schema_pkg_apis_projectcalico_v3_HostEndpointSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 3685 return common.OpenAPIDefinition{ 3686 Schema: spec.Schema{ 3687 SchemaProps: spec.SchemaProps{ 3688 Description: "HostEndpointSpec contains the specification for a HostEndpoint resource.", 3689 Type: []string{"object"}, 3690 Properties: map[string]spec.Schema{ 3691 "node": { 3692 SchemaProps: spec.SchemaProps{ 3693 Description: "The node name identifying the Calico node instance.", 3694 Type: []string{"string"}, 3695 Format: "", 3696 }, 3697 }, 3698 "interfaceName": { 3699 SchemaProps: spec.SchemaProps{ 3700 Description: "Either \"*\", or the name of a specific Linux interface to apply policy to; or empty. \"*\" indicates that this HostEndpoint governs all traffic to, from or through the default network namespace of the host named by the \"Node\" field; entering and leaving that namespace via any interface, including those from/to non-host-networked local workloads.\n\nIf InterfaceName is not \"*\", this HostEndpoint only governs traffic that enters or leaves the host through the specific interface named by InterfaceName, or - when InterfaceName is empty - through the specific interface that has one of the IPs in ExpectedIPs. Therefore, when InterfaceName is empty, at least one expected IP must be specified. Only external interfaces (such as \"eth0\") are supported here; it isn't possible for a HostEndpoint to protect traffic through a specific local workload interface.\n\nNote: Only some kinds of policy are implemented for \"*\" HostEndpoints; initially just pre-DNAT policy. Please check Calico documentation for the latest position.", 3701 Type: []string{"string"}, 3702 Format: "", 3703 }, 3704 }, 3705 "expectedIPs": { 3706 SchemaProps: spec.SchemaProps{ 3707 Description: "The expected IP addresses (IPv4 and IPv6) of the endpoint. If \"InterfaceName\" is not present, Calico will look for an interface matching any of the IPs in the list and apply policy to that. Note:\n\tWhen using the selector match criteria in an ingress or egress security Policy\n\tor Profile, Calico converts the selector into a set of IP addresses. For host\n\tendpoints, the ExpectedIPs field is used for that purpose. (If only the interface\n\tname is specified, Calico does not learn the IPs of the interface for use in match\n\tcriteria.)", 3708 Type: []string{"array"}, 3709 Items: &spec.SchemaOrArray{ 3710 Schema: &spec.Schema{ 3711 SchemaProps: spec.SchemaProps{ 3712 Default: "", 3713 Type: []string{"string"}, 3714 Format: "", 3715 }, 3716 }, 3717 }, 3718 }, 3719 }, 3720 "profiles": { 3721 SchemaProps: spec.SchemaProps{ 3722 Description: "A list of identifiers of security Profile objects that apply to this endpoint. Each profile is applied in the order that they appear in this list. Profile rules are applied after the selector-based security policy.", 3723 Type: []string{"array"}, 3724 Items: &spec.SchemaOrArray{ 3725 Schema: &spec.Schema{ 3726 SchemaProps: spec.SchemaProps{ 3727 Default: "", 3728 Type: []string{"string"}, 3729 Format: "", 3730 }, 3731 }, 3732 }, 3733 }, 3734 }, 3735 "ports": { 3736 SchemaProps: spec.SchemaProps{ 3737 Description: "Ports contains the endpoint's named ports, which may be referenced in security policy rules.", 3738 Type: []string{"array"}, 3739 Items: &spec.SchemaOrArray{ 3740 Schema: &spec.Schema{ 3741 SchemaProps: spec.SchemaProps{ 3742 Default: map[string]interface{}{}, 3743 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.EndpointPort"), 3744 }, 3745 }, 3746 }, 3747 }, 3748 }, 3749 }, 3750 }, 3751 }, 3752 Dependencies: []string{ 3753 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.EndpointPort"}, 3754 } 3755 } 3756 3757 func schema_pkg_apis_projectcalico_v3_ICMPFields(ref common.ReferenceCallback) common.OpenAPIDefinition { 3758 return common.OpenAPIDefinition{ 3759 Schema: spec.Schema{ 3760 SchemaProps: spec.SchemaProps{ 3761 Description: "ICMPFields defines structure for ICMP and NotICMP sub-struct for ICMP code and type", 3762 Type: []string{"object"}, 3763 Properties: map[string]spec.Schema{ 3764 "type": { 3765 SchemaProps: spec.SchemaProps{ 3766 Description: "Match on a specific ICMP type. For example a value of 8 refers to ICMP Echo Request (i.e. pings).", 3767 Type: []string{"integer"}, 3768 Format: "int32", 3769 }, 3770 }, 3771 "code": { 3772 SchemaProps: spec.SchemaProps{ 3773 Description: "Match on a specific ICMP code. If specified, the Type value must also be specified. This is a technical limitation imposed by the kernel's iptables firewall, which Calico uses to enforce the rule.", 3774 Type: []string{"integer"}, 3775 Format: "int32", 3776 }, 3777 }, 3778 }, 3779 }, 3780 }, 3781 } 3782 } 3783 3784 func schema_pkg_apis_projectcalico_v3_IPAMConfiguration(ref common.ReferenceCallback) common.OpenAPIDefinition { 3785 return common.OpenAPIDefinition{ 3786 Schema: spec.Schema{ 3787 SchemaProps: spec.SchemaProps{ 3788 Description: "IPAMConfiguration contains information about a block for IP address assignment.", 3789 Type: []string{"object"}, 3790 Properties: map[string]spec.Schema{ 3791 "kind": { 3792 SchemaProps: spec.SchemaProps{ 3793 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 3794 Type: []string{"string"}, 3795 Format: "", 3796 }, 3797 }, 3798 "apiVersion": { 3799 SchemaProps: spec.SchemaProps{ 3800 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 3801 Type: []string{"string"}, 3802 Format: "", 3803 }, 3804 }, 3805 "metadata": { 3806 SchemaProps: spec.SchemaProps{ 3807 Default: map[string]interface{}{}, 3808 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 3809 }, 3810 }, 3811 "spec": { 3812 SchemaProps: spec.SchemaProps{ 3813 Default: map[string]interface{}{}, 3814 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.IPAMConfigurationSpec"), 3815 }, 3816 }, 3817 }, 3818 }, 3819 }, 3820 Dependencies: []string{ 3821 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.IPAMConfigurationSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 3822 } 3823 } 3824 3825 func schema_pkg_apis_projectcalico_v3_IPAMConfigurationList(ref common.ReferenceCallback) common.OpenAPIDefinition { 3826 return common.OpenAPIDefinition{ 3827 Schema: spec.Schema{ 3828 SchemaProps: spec.SchemaProps{ 3829 Description: "IPAMConfigurationList contains a list of IPAMConfiguration resources.", 3830 Type: []string{"object"}, 3831 Properties: map[string]spec.Schema{ 3832 "kind": { 3833 SchemaProps: spec.SchemaProps{ 3834 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 3835 Type: []string{"string"}, 3836 Format: "", 3837 }, 3838 }, 3839 "apiVersion": { 3840 SchemaProps: spec.SchemaProps{ 3841 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 3842 Type: []string{"string"}, 3843 Format: "", 3844 }, 3845 }, 3846 "metadata": { 3847 SchemaProps: spec.SchemaProps{ 3848 Default: map[string]interface{}{}, 3849 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 3850 }, 3851 }, 3852 "items": { 3853 SchemaProps: spec.SchemaProps{ 3854 Type: []string{"array"}, 3855 Items: &spec.SchemaOrArray{ 3856 Schema: &spec.Schema{ 3857 SchemaProps: spec.SchemaProps{ 3858 Default: map[string]interface{}{}, 3859 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.IPAMConfiguration"), 3860 }, 3861 }, 3862 }, 3863 }, 3864 }, 3865 }, 3866 Required: []string{"items"}, 3867 }, 3868 }, 3869 Dependencies: []string{ 3870 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.IPAMConfiguration", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 3871 } 3872 } 3873 3874 func schema_pkg_apis_projectcalico_v3_IPAMConfigurationSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 3875 return common.OpenAPIDefinition{ 3876 Schema: spec.Schema{ 3877 SchemaProps: spec.SchemaProps{ 3878 Description: "IPAMConfigurationSpec contains the specification for an IPPool resource.", 3879 Type: []string{"object"}, 3880 Properties: map[string]spec.Schema{ 3881 "strictAffinity": { 3882 SchemaProps: spec.SchemaProps{ 3883 Description: "When StrictAffinity is true, borrowing IP addresses is not allowed.", 3884 Default: false, 3885 Type: []string{"boolean"}, 3886 Format: "", 3887 }, 3888 }, 3889 "maxBlocksPerHost": { 3890 SchemaProps: spec.SchemaProps{ 3891 Description: "MaxBlocksPerHost, if non-zero, is the max number of blocks that can be affine to each host.", 3892 Type: []string{"integer"}, 3893 Format: "int32", 3894 }, 3895 }, 3896 }, 3897 Required: []string{"strictAffinity"}, 3898 }, 3899 }, 3900 } 3901 } 3902 3903 func schema_pkg_apis_projectcalico_v3_IPIPConfiguration(ref common.ReferenceCallback) common.OpenAPIDefinition { 3904 return common.OpenAPIDefinition{ 3905 Schema: spec.Schema{ 3906 SchemaProps: spec.SchemaProps{ 3907 Type: []string{"object"}, 3908 Properties: map[string]spec.Schema{ 3909 "enabled": { 3910 SchemaProps: spec.SchemaProps{ 3911 Description: "When enabled is true, ipip tunneling will be used to deliver packets to destinations within this pool.", 3912 Type: []string{"boolean"}, 3913 Format: "", 3914 }, 3915 }, 3916 "mode": { 3917 SchemaProps: spec.SchemaProps{ 3918 Description: "The IPIP mode. This can be one of \"always\" or \"cross-subnet\". A mode of \"always\" will also use IPIP tunneling for routing to destination IP addresses within this pool. A mode of \"cross-subnet\" will only use IPIP tunneling when the destination node is on a different subnet to the originating node. The default value (if not specified) is \"always\".", 3919 Type: []string{"string"}, 3920 Format: "", 3921 }, 3922 }, 3923 }, 3924 }, 3925 }, 3926 } 3927 } 3928 3929 func schema_pkg_apis_projectcalico_v3_IPPool(ref common.ReferenceCallback) common.OpenAPIDefinition { 3930 return common.OpenAPIDefinition{ 3931 Schema: spec.Schema{ 3932 SchemaProps: spec.SchemaProps{ 3933 Type: []string{"object"}, 3934 Properties: map[string]spec.Schema{ 3935 "kind": { 3936 SchemaProps: spec.SchemaProps{ 3937 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 3938 Type: []string{"string"}, 3939 Format: "", 3940 }, 3941 }, 3942 "apiVersion": { 3943 SchemaProps: spec.SchemaProps{ 3944 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 3945 Type: []string{"string"}, 3946 Format: "", 3947 }, 3948 }, 3949 "metadata": { 3950 SchemaProps: spec.SchemaProps{ 3951 Default: map[string]interface{}{}, 3952 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 3953 }, 3954 }, 3955 "spec": { 3956 SchemaProps: spec.SchemaProps{ 3957 Default: map[string]interface{}{}, 3958 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.IPPoolSpec"), 3959 }, 3960 }, 3961 }, 3962 }, 3963 }, 3964 Dependencies: []string{ 3965 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.IPPoolSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 3966 } 3967 } 3968 3969 func schema_pkg_apis_projectcalico_v3_IPPoolList(ref common.ReferenceCallback) common.OpenAPIDefinition { 3970 return common.OpenAPIDefinition{ 3971 Schema: spec.Schema{ 3972 SchemaProps: spec.SchemaProps{ 3973 Description: "IPPoolList contains a list of IPPool resources.", 3974 Type: []string{"object"}, 3975 Properties: map[string]spec.Schema{ 3976 "kind": { 3977 SchemaProps: spec.SchemaProps{ 3978 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 3979 Type: []string{"string"}, 3980 Format: "", 3981 }, 3982 }, 3983 "apiVersion": { 3984 SchemaProps: spec.SchemaProps{ 3985 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 3986 Type: []string{"string"}, 3987 Format: "", 3988 }, 3989 }, 3990 "metadata": { 3991 SchemaProps: spec.SchemaProps{ 3992 Default: map[string]interface{}{}, 3993 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 3994 }, 3995 }, 3996 "items": { 3997 SchemaProps: spec.SchemaProps{ 3998 Type: []string{"array"}, 3999 Items: &spec.SchemaOrArray{ 4000 Schema: &spec.Schema{ 4001 SchemaProps: spec.SchemaProps{ 4002 Default: map[string]interface{}{}, 4003 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.IPPool"), 4004 }, 4005 }, 4006 }, 4007 }, 4008 }, 4009 }, 4010 Required: []string{"items"}, 4011 }, 4012 }, 4013 Dependencies: []string{ 4014 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.IPPool", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 4015 } 4016 } 4017 4018 func schema_pkg_apis_projectcalico_v3_IPPoolSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 4019 return common.OpenAPIDefinition{ 4020 Schema: spec.Schema{ 4021 SchemaProps: spec.SchemaProps{ 4022 Description: "IPPoolSpec contains the specification for an IPPool resource.", 4023 Type: []string{"object"}, 4024 Properties: map[string]spec.Schema{ 4025 "cidr": { 4026 SchemaProps: spec.SchemaProps{ 4027 Description: "The pool CIDR.", 4028 Default: "", 4029 Type: []string{"string"}, 4030 Format: "", 4031 }, 4032 }, 4033 "vxlanMode": { 4034 SchemaProps: spec.SchemaProps{ 4035 Description: "Contains configuration for VXLAN tunneling for this pool. If not specified, then this is defaulted to \"Never\" (i.e. VXLAN tunneling is disabled).", 4036 Type: []string{"string"}, 4037 Format: "", 4038 }, 4039 }, 4040 "ipipMode": { 4041 SchemaProps: spec.SchemaProps{ 4042 Description: "Contains configuration for IPIP tunneling for this pool. If not specified, then this is defaulted to \"Never\" (i.e. IPIP tunneling is disabled).", 4043 Type: []string{"string"}, 4044 Format: "", 4045 }, 4046 }, 4047 "natOutgoing": { 4048 SchemaProps: spec.SchemaProps{ 4049 Description: "When natOutgoing is true, packets sent from Calico networked containers in this pool to destinations outside of this pool will be masqueraded.", 4050 Type: []string{"boolean"}, 4051 Format: "", 4052 }, 4053 }, 4054 "disabled": { 4055 SchemaProps: spec.SchemaProps{ 4056 Description: "When disabled is true, Calico IPAM will not assign addresses from this pool.", 4057 Type: []string{"boolean"}, 4058 Format: "", 4059 }, 4060 }, 4061 "disableBGPExport": { 4062 SchemaProps: spec.SchemaProps{ 4063 Description: "Disable exporting routes from this IP Pool's CIDR over BGP. [Default: false]", 4064 Type: []string{"boolean"}, 4065 Format: "", 4066 }, 4067 }, 4068 "blockSize": { 4069 SchemaProps: spec.SchemaProps{ 4070 Description: "The block size to use for IP address assignments from this pool. Defaults to 26 for IPv4 and 122 for IPv6.", 4071 Type: []string{"integer"}, 4072 Format: "int32", 4073 }, 4074 }, 4075 "nodeSelector": { 4076 SchemaProps: spec.SchemaProps{ 4077 Description: "Allows IPPool to allocate for a specific node by label selector.", 4078 Type: []string{"string"}, 4079 Format: "", 4080 }, 4081 }, 4082 "ipip": { 4083 SchemaProps: spec.SchemaProps{ 4084 Description: "Deprecated: this field is only used for APIv1 backwards compatibility. Setting this field is not allowed, this field is for internal use only.", 4085 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.IPIPConfiguration"), 4086 }, 4087 }, 4088 "nat-outgoing": { 4089 SchemaProps: spec.SchemaProps{ 4090 Description: "Deprecated: this field is only used for APIv1 backwards compatibility. Setting this field is not allowed, this field is for internal use only.", 4091 Type: []string{"boolean"}, 4092 Format: "", 4093 }, 4094 }, 4095 "allowedUses": { 4096 SchemaProps: spec.SchemaProps{ 4097 Description: "AllowedUse controls what the IP pool will be used for. If not specified or empty, defaults to [\"Tunnel\", \"Workload\"] for back-compatibility", 4098 Type: []string{"array"}, 4099 Items: &spec.SchemaOrArray{ 4100 Schema: &spec.Schema{ 4101 SchemaProps: spec.SchemaProps{ 4102 Default: "", 4103 Type: []string{"string"}, 4104 Format: "", 4105 }, 4106 }, 4107 }, 4108 }, 4109 }, 4110 }, 4111 Required: []string{"cidr"}, 4112 }, 4113 }, 4114 Dependencies: []string{ 4115 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.IPIPConfiguration"}, 4116 } 4117 } 4118 4119 func schema_pkg_apis_projectcalico_v3_IPReservation(ref common.ReferenceCallback) common.OpenAPIDefinition { 4120 return common.OpenAPIDefinition{ 4121 Schema: spec.Schema{ 4122 SchemaProps: spec.SchemaProps{ 4123 Description: "IPReservation allows certain IP addresses to be reserved (i.e. prevented from being allocated) by Calico IPAM. Reservations only block new allocations, they do not cause existing IP allocations to be released. The current implementation is only suitable for reserving small numbers of IP addresses relative to the size of the IP pool. If large portions of an IP pool are reserved, Calico IPAM may hunt for a long time to find a non-reserved IP.", 4124 Type: []string{"object"}, 4125 Properties: map[string]spec.Schema{ 4126 "kind": { 4127 SchemaProps: spec.SchemaProps{ 4128 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 4129 Type: []string{"string"}, 4130 Format: "", 4131 }, 4132 }, 4133 "apiVersion": { 4134 SchemaProps: spec.SchemaProps{ 4135 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 4136 Type: []string{"string"}, 4137 Format: "", 4138 }, 4139 }, 4140 "metadata": { 4141 SchemaProps: spec.SchemaProps{ 4142 Default: map[string]interface{}{}, 4143 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 4144 }, 4145 }, 4146 "spec": { 4147 SchemaProps: spec.SchemaProps{ 4148 Default: map[string]interface{}{}, 4149 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.IPReservationSpec"), 4150 }, 4151 }, 4152 }, 4153 }, 4154 }, 4155 Dependencies: []string{ 4156 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.IPReservationSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 4157 } 4158 } 4159 4160 func schema_pkg_apis_projectcalico_v3_IPReservationList(ref common.ReferenceCallback) common.OpenAPIDefinition { 4161 return common.OpenAPIDefinition{ 4162 Schema: spec.Schema{ 4163 SchemaProps: spec.SchemaProps{ 4164 Description: "IPReservationList contains a list of IPReservation resources.", 4165 Type: []string{"object"}, 4166 Properties: map[string]spec.Schema{ 4167 "kind": { 4168 SchemaProps: spec.SchemaProps{ 4169 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 4170 Type: []string{"string"}, 4171 Format: "", 4172 }, 4173 }, 4174 "apiVersion": { 4175 SchemaProps: spec.SchemaProps{ 4176 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 4177 Type: []string{"string"}, 4178 Format: "", 4179 }, 4180 }, 4181 "metadata": { 4182 SchemaProps: spec.SchemaProps{ 4183 Default: map[string]interface{}{}, 4184 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 4185 }, 4186 }, 4187 "items": { 4188 SchemaProps: spec.SchemaProps{ 4189 Type: []string{"array"}, 4190 Items: &spec.SchemaOrArray{ 4191 Schema: &spec.Schema{ 4192 SchemaProps: spec.SchemaProps{ 4193 Default: map[string]interface{}{}, 4194 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.IPReservation"), 4195 }, 4196 }, 4197 }, 4198 }, 4199 }, 4200 }, 4201 Required: []string{"items"}, 4202 }, 4203 }, 4204 Dependencies: []string{ 4205 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.IPReservation", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 4206 } 4207 } 4208 4209 func schema_pkg_apis_projectcalico_v3_IPReservationSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 4210 return common.OpenAPIDefinition{ 4211 Schema: spec.Schema{ 4212 SchemaProps: spec.SchemaProps{ 4213 Description: "IPReservationSpec contains the specification for an IPReservation resource.", 4214 Type: []string{"object"}, 4215 Properties: map[string]spec.Schema{ 4216 "reservedCIDRs": { 4217 SchemaProps: spec.SchemaProps{ 4218 Description: "ReservedCIDRs is a list of CIDRs and/or IP addresses that Calico IPAM will exclude from new allocations.", 4219 Type: []string{"array"}, 4220 Items: &spec.SchemaOrArray{ 4221 Schema: &spec.Schema{ 4222 SchemaProps: spec.SchemaProps{ 4223 Default: "", 4224 Type: []string{"string"}, 4225 Format: "", 4226 }, 4227 }, 4228 }, 4229 }, 4230 }, 4231 }, 4232 }, 4233 }, 4234 } 4235 } 4236 4237 func schema_pkg_apis_projectcalico_v3_KubeControllersConfiguration(ref common.ReferenceCallback) common.OpenAPIDefinition { 4238 return common.OpenAPIDefinition{ 4239 Schema: spec.Schema{ 4240 SchemaProps: spec.SchemaProps{ 4241 Type: []string{"object"}, 4242 Properties: map[string]spec.Schema{ 4243 "kind": { 4244 SchemaProps: spec.SchemaProps{ 4245 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 4246 Type: []string{"string"}, 4247 Format: "", 4248 }, 4249 }, 4250 "apiVersion": { 4251 SchemaProps: spec.SchemaProps{ 4252 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 4253 Type: []string{"string"}, 4254 Format: "", 4255 }, 4256 }, 4257 "metadata": { 4258 SchemaProps: spec.SchemaProps{ 4259 Default: map[string]interface{}{}, 4260 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 4261 }, 4262 }, 4263 "spec": { 4264 SchemaProps: spec.SchemaProps{ 4265 Default: map[string]interface{}{}, 4266 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.KubeControllersConfigurationSpec"), 4267 }, 4268 }, 4269 "status": { 4270 SchemaProps: spec.SchemaProps{ 4271 Default: map[string]interface{}{}, 4272 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.KubeControllersConfigurationStatus"), 4273 }, 4274 }, 4275 }, 4276 }, 4277 }, 4278 Dependencies: []string{ 4279 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.KubeControllersConfigurationSpec", "github.com/projectcalico/api/pkg/apis/projectcalico/v3.KubeControllersConfigurationStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 4280 } 4281 } 4282 4283 func schema_pkg_apis_projectcalico_v3_KubeControllersConfigurationList(ref common.ReferenceCallback) common.OpenAPIDefinition { 4284 return common.OpenAPIDefinition{ 4285 Schema: spec.Schema{ 4286 SchemaProps: spec.SchemaProps{ 4287 Description: "KubeControllersConfigurationList contains a list of KubeControllersConfiguration object.", 4288 Type: []string{"object"}, 4289 Properties: map[string]spec.Schema{ 4290 "kind": { 4291 SchemaProps: spec.SchemaProps{ 4292 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 4293 Type: []string{"string"}, 4294 Format: "", 4295 }, 4296 }, 4297 "apiVersion": { 4298 SchemaProps: spec.SchemaProps{ 4299 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 4300 Type: []string{"string"}, 4301 Format: "", 4302 }, 4303 }, 4304 "metadata": { 4305 SchemaProps: spec.SchemaProps{ 4306 Default: map[string]interface{}{}, 4307 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 4308 }, 4309 }, 4310 "items": { 4311 SchemaProps: spec.SchemaProps{ 4312 Type: []string{"array"}, 4313 Items: &spec.SchemaOrArray{ 4314 Schema: &spec.Schema{ 4315 SchemaProps: spec.SchemaProps{ 4316 Default: map[string]interface{}{}, 4317 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.KubeControllersConfiguration"), 4318 }, 4319 }, 4320 }, 4321 }, 4322 }, 4323 }, 4324 Required: []string{"items"}, 4325 }, 4326 }, 4327 Dependencies: []string{ 4328 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.KubeControllersConfiguration", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 4329 } 4330 } 4331 4332 func schema_pkg_apis_projectcalico_v3_KubeControllersConfigurationSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 4333 return common.OpenAPIDefinition{ 4334 Schema: spec.Schema{ 4335 SchemaProps: spec.SchemaProps{ 4336 Description: "KubeControllersConfigurationSpec contains the values of the Kubernetes controllers configuration.", 4337 Type: []string{"object"}, 4338 Properties: map[string]spec.Schema{ 4339 "logSeverityScreen": { 4340 SchemaProps: spec.SchemaProps{ 4341 Description: "LogSeverityScreen is the log severity above which logs are sent to the stdout. [Default: Info]", 4342 Type: []string{"string"}, 4343 Format: "", 4344 }, 4345 }, 4346 "healthChecks": { 4347 SchemaProps: spec.SchemaProps{ 4348 Description: "HealthChecks enables or disables support for health checks [Default: Enabled]", 4349 Type: []string{"string"}, 4350 Format: "", 4351 }, 4352 }, 4353 "etcdV3CompactionPeriod": { 4354 SchemaProps: spec.SchemaProps{ 4355 Description: "EtcdV3CompactionPeriod is the period between etcdv3 compaction requests. Set to 0 to disable. [Default: 10m]", 4356 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 4357 }, 4358 }, 4359 "prometheusMetricsPort": { 4360 SchemaProps: spec.SchemaProps{ 4361 Description: "PrometheusMetricsPort is the TCP port that the Prometheus metrics server should bind to. Set to 0 to disable. [Default: 9094]", 4362 Type: []string{"integer"}, 4363 Format: "int32", 4364 }, 4365 }, 4366 "controllers": { 4367 SchemaProps: spec.SchemaProps{ 4368 Description: "Controllers enables and configures individual Kubernetes controllers", 4369 Default: map[string]interface{}{}, 4370 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.ControllersConfig"), 4371 }, 4372 }, 4373 "debugProfilePort": { 4374 SchemaProps: spec.SchemaProps{ 4375 Description: "DebugProfilePort configures the port to serve memory and cpu profiles on. If not specified, profiling is disabled.", 4376 Type: []string{"integer"}, 4377 Format: "int32", 4378 }, 4379 }, 4380 }, 4381 Required: []string{"controllers"}, 4382 }, 4383 }, 4384 Dependencies: []string{ 4385 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.ControllersConfig", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration"}, 4386 } 4387 } 4388 4389 func schema_pkg_apis_projectcalico_v3_KubeControllersConfigurationStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 4390 return common.OpenAPIDefinition{ 4391 Schema: spec.Schema{ 4392 SchemaProps: spec.SchemaProps{ 4393 Description: "KubeControllersConfigurationStatus represents the status of the configuration. It's useful for admins to be able to see the actual config that was applied, which can be modified by environment variables on the kube-controllers process.", 4394 Type: []string{"object"}, 4395 Properties: map[string]spec.Schema{ 4396 "runningConfig": { 4397 SchemaProps: spec.SchemaProps{ 4398 Description: "RunningConfig contains the effective config that is running in the kube-controllers pod, after merging the API resource with any environment variables.", 4399 Default: map[string]interface{}{}, 4400 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.KubeControllersConfigurationSpec"), 4401 }, 4402 }, 4403 "environmentVars": { 4404 SchemaProps: spec.SchemaProps{ 4405 Description: "EnvironmentVars contains the environment variables on the kube-controllers that influenced the RunningConfig.", 4406 Type: []string{"object"}, 4407 AdditionalProperties: &spec.SchemaOrBool{ 4408 Allows: true, 4409 Schema: &spec.Schema{ 4410 SchemaProps: spec.SchemaProps{ 4411 Default: "", 4412 Type: []string{"string"}, 4413 Format: "", 4414 }, 4415 }, 4416 }, 4417 }, 4418 }, 4419 }, 4420 }, 4421 }, 4422 Dependencies: []string{ 4423 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.KubeControllersConfigurationSpec"}, 4424 } 4425 } 4426 4427 func schema_pkg_apis_projectcalico_v3_NamespaceControllerConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 4428 return common.OpenAPIDefinition{ 4429 Schema: spec.Schema{ 4430 SchemaProps: spec.SchemaProps{ 4431 Description: "NamespaceControllerConfig configures the service account controller, which syncs Kubernetes service accounts to Calico profiles (only used for etcdv3 datastore).", 4432 Type: []string{"object"}, 4433 Properties: map[string]spec.Schema{ 4434 "reconcilerPeriod": { 4435 SchemaProps: spec.SchemaProps{ 4436 Description: "ReconcilerPeriod is the period to perform reconciliation with the Calico datastore. [Default: 5m]", 4437 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 4438 }, 4439 }, 4440 }, 4441 }, 4442 }, 4443 Dependencies: []string{ 4444 "k8s.io/apimachinery/pkg/apis/meta/v1.Duration"}, 4445 } 4446 } 4447 4448 func schema_pkg_apis_projectcalico_v3_NetworkPolicy(ref common.ReferenceCallback) common.OpenAPIDefinition { 4449 return common.OpenAPIDefinition{ 4450 Schema: spec.Schema{ 4451 SchemaProps: spec.SchemaProps{ 4452 Type: []string{"object"}, 4453 Properties: map[string]spec.Schema{ 4454 "kind": { 4455 SchemaProps: spec.SchemaProps{ 4456 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 4457 Type: []string{"string"}, 4458 Format: "", 4459 }, 4460 }, 4461 "apiVersion": { 4462 SchemaProps: spec.SchemaProps{ 4463 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 4464 Type: []string{"string"}, 4465 Format: "", 4466 }, 4467 }, 4468 "metadata": { 4469 SchemaProps: spec.SchemaProps{ 4470 Default: map[string]interface{}{}, 4471 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 4472 }, 4473 }, 4474 "spec": { 4475 SchemaProps: spec.SchemaProps{ 4476 Default: map[string]interface{}{}, 4477 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.NetworkPolicySpec"), 4478 }, 4479 }, 4480 }, 4481 }, 4482 }, 4483 Dependencies: []string{ 4484 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.NetworkPolicySpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 4485 } 4486 } 4487 4488 func schema_pkg_apis_projectcalico_v3_NetworkPolicyList(ref common.ReferenceCallback) common.OpenAPIDefinition { 4489 return common.OpenAPIDefinition{ 4490 Schema: spec.Schema{ 4491 SchemaProps: spec.SchemaProps{ 4492 Description: "NetworkPolicyList is a list of Policy objects.", 4493 Type: []string{"object"}, 4494 Properties: map[string]spec.Schema{ 4495 "kind": { 4496 SchemaProps: spec.SchemaProps{ 4497 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 4498 Type: []string{"string"}, 4499 Format: "", 4500 }, 4501 }, 4502 "apiVersion": { 4503 SchemaProps: spec.SchemaProps{ 4504 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 4505 Type: []string{"string"}, 4506 Format: "", 4507 }, 4508 }, 4509 "metadata": { 4510 SchemaProps: spec.SchemaProps{ 4511 Default: map[string]interface{}{}, 4512 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 4513 }, 4514 }, 4515 "items": { 4516 SchemaProps: spec.SchemaProps{ 4517 Type: []string{"array"}, 4518 Items: &spec.SchemaOrArray{ 4519 Schema: &spec.Schema{ 4520 SchemaProps: spec.SchemaProps{ 4521 Default: map[string]interface{}{}, 4522 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.NetworkPolicy"), 4523 }, 4524 }, 4525 }, 4526 }, 4527 }, 4528 }, 4529 Required: []string{"items"}, 4530 }, 4531 }, 4532 Dependencies: []string{ 4533 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.NetworkPolicy", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 4534 } 4535 } 4536 4537 func schema_pkg_apis_projectcalico_v3_NetworkPolicySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 4538 return common.OpenAPIDefinition{ 4539 Schema: spec.Schema{ 4540 SchemaProps: spec.SchemaProps{ 4541 Type: []string{"object"}, 4542 Properties: map[string]spec.Schema{ 4543 "order": { 4544 SchemaProps: spec.SchemaProps{ 4545 Description: "Order is an optional field that specifies the order in which the policy is applied. Policies with higher \"order\" are applied after those with lower order. If the order is omitted, it may be considered to be \"infinite\" - i.e. the policy will be applied last. Policies with identical order will be applied in alphanumerical order based on the Policy \"Name\".", 4546 Type: []string{"number"}, 4547 Format: "double", 4548 }, 4549 }, 4550 "ingress": { 4551 SchemaProps: spec.SchemaProps{ 4552 Description: "The ordered set of ingress rules. Each rule contains a set of packet match criteria and a corresponding action to apply.", 4553 Type: []string{"array"}, 4554 Items: &spec.SchemaOrArray{ 4555 Schema: &spec.Schema{ 4556 SchemaProps: spec.SchemaProps{ 4557 Default: map[string]interface{}{}, 4558 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.Rule"), 4559 }, 4560 }, 4561 }, 4562 }, 4563 }, 4564 "egress": { 4565 SchemaProps: spec.SchemaProps{ 4566 Description: "The ordered set of egress rules. Each rule contains a set of packet match criteria and a corresponding action to apply.", 4567 Type: []string{"array"}, 4568 Items: &spec.SchemaOrArray{ 4569 Schema: &spec.Schema{ 4570 SchemaProps: spec.SchemaProps{ 4571 Default: map[string]interface{}{}, 4572 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.Rule"), 4573 }, 4574 }, 4575 }, 4576 }, 4577 }, 4578 "selector": { 4579 SchemaProps: spec.SchemaProps{ 4580 Description: "The selector is an expression used to pick out the endpoints that the policy should be applied to.\n\nSelector expressions follow this syntax:\n\n\tlabel == \"string_literal\" -> comparison, e.g. my_label == \"foo bar\"\n\tlabel != \"string_literal\" -> not equal; also matches if label is not present\n\tlabel in { \"a\", \"b\", \"c\", ... } -> true if the value of label X is one of \"a\", \"b\", \"c\"\n\tlabel not in { \"a\", \"b\", \"c\", ... } -> true if the value of label X is not one of \"a\", \"b\", \"c\"\n\thas(label_name) -> True if that label is present\n\t! expr -> negation of expr\n\texpr && expr -> Short-circuit and\n\texpr || expr -> Short-circuit or\n\t( expr ) -> parens for grouping\n\tall() or the empty selector -> matches all endpoints.\n\nLabel names are allowed to contain alphanumerics, -, _ and /. String literals are more permissive but they do not support escape characters.\n\nExamples (with made-up labels):\n\n\ttype == \"webserver\" && deployment == \"prod\"\n\ttype in {\"frontend\", \"backend\"}\n\tdeployment != \"dev\"\n\t! has(label_name)", 4581 Type: []string{"string"}, 4582 Format: "", 4583 }, 4584 }, 4585 "types": { 4586 SchemaProps: spec.SchemaProps{ 4587 Description: "Types indicates whether this policy applies to ingress, or to egress, or to both. When not explicitly specified (and so the value on creation is empty or nil), Calico defaults Types according to what Ingress and Egress are present in the policy. The default is:\n\n- [ PolicyTypeIngress ], if there are no Egress rules (including the case where there are\n also no Ingress rules)\n\n- [ PolicyTypeEgress ], if there are Egress rules but no Ingress rules\n\n- [ PolicyTypeIngress, PolicyTypeEgress ], if there are both Ingress and Egress rules.\n\nWhen the policy is read back again, Types will always be one of these values, never empty or nil.", 4588 Type: []string{"array"}, 4589 Items: &spec.SchemaOrArray{ 4590 Schema: &spec.Schema{ 4591 SchemaProps: spec.SchemaProps{ 4592 Default: "", 4593 Type: []string{"string"}, 4594 Format: "", 4595 }, 4596 }, 4597 }, 4598 }, 4599 }, 4600 "serviceAccountSelector": { 4601 SchemaProps: spec.SchemaProps{ 4602 Description: "ServiceAccountSelector is an optional field for an expression used to select a pod based on service accounts.", 4603 Type: []string{"string"}, 4604 Format: "", 4605 }, 4606 }, 4607 "performanceHints": { 4608 SchemaProps: spec.SchemaProps{ 4609 Description: "PerformanceHints contains a list of hints to Calico's policy engine to help process the policy more efficiently. Hints never change the enforcement behaviour of the policy.\n\nCurrently, the only available hint is \"AssumeNeededOnEveryNode\". When that hint is set on a policy, Felix will act as if the policy matches a local endpoint even if it does not. This is useful for \"preloading\" any large static policies that are known to be used on every node. If the policy is _not_ used on a particular node then the work done to preload the policy (and to maintain it) is wasted.", 4610 Type: []string{"array"}, 4611 Items: &spec.SchemaOrArray{ 4612 Schema: &spec.Schema{ 4613 SchemaProps: spec.SchemaProps{ 4614 Default: "", 4615 Type: []string{"string"}, 4616 Format: "", 4617 }, 4618 }, 4619 }, 4620 }, 4621 }, 4622 }, 4623 }, 4624 }, 4625 Dependencies: []string{ 4626 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.Rule"}, 4627 } 4628 } 4629 4630 func schema_pkg_apis_projectcalico_v3_NetworkSet(ref common.ReferenceCallback) common.OpenAPIDefinition { 4631 return common.OpenAPIDefinition{ 4632 Schema: spec.Schema{ 4633 SchemaProps: spec.SchemaProps{ 4634 Type: []string{"object"}, 4635 Properties: map[string]spec.Schema{ 4636 "kind": { 4637 SchemaProps: spec.SchemaProps{ 4638 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 4639 Type: []string{"string"}, 4640 Format: "", 4641 }, 4642 }, 4643 "apiVersion": { 4644 SchemaProps: spec.SchemaProps{ 4645 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 4646 Type: []string{"string"}, 4647 Format: "", 4648 }, 4649 }, 4650 "metadata": { 4651 SchemaProps: spec.SchemaProps{ 4652 Default: map[string]interface{}{}, 4653 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 4654 }, 4655 }, 4656 "spec": { 4657 SchemaProps: spec.SchemaProps{ 4658 Default: map[string]interface{}{}, 4659 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.NetworkSetSpec"), 4660 }, 4661 }, 4662 }, 4663 }, 4664 }, 4665 Dependencies: []string{ 4666 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.NetworkSetSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 4667 } 4668 } 4669 4670 func schema_pkg_apis_projectcalico_v3_NetworkSetList(ref common.ReferenceCallback) common.OpenAPIDefinition { 4671 return common.OpenAPIDefinition{ 4672 Schema: spec.Schema{ 4673 SchemaProps: spec.SchemaProps{ 4674 Description: "NetworkSetList is a list of NetworkSet objects.", 4675 Type: []string{"object"}, 4676 Properties: map[string]spec.Schema{ 4677 "kind": { 4678 SchemaProps: spec.SchemaProps{ 4679 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 4680 Type: []string{"string"}, 4681 Format: "", 4682 }, 4683 }, 4684 "apiVersion": { 4685 SchemaProps: spec.SchemaProps{ 4686 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 4687 Type: []string{"string"}, 4688 Format: "", 4689 }, 4690 }, 4691 "metadata": { 4692 SchemaProps: spec.SchemaProps{ 4693 Default: map[string]interface{}{}, 4694 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 4695 }, 4696 }, 4697 "items": { 4698 SchemaProps: spec.SchemaProps{ 4699 Type: []string{"array"}, 4700 Items: &spec.SchemaOrArray{ 4701 Schema: &spec.Schema{ 4702 SchemaProps: spec.SchemaProps{ 4703 Default: map[string]interface{}{}, 4704 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.NetworkSet"), 4705 }, 4706 }, 4707 }, 4708 }, 4709 }, 4710 }, 4711 Required: []string{"items"}, 4712 }, 4713 }, 4714 Dependencies: []string{ 4715 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.NetworkSet", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 4716 } 4717 } 4718 4719 func schema_pkg_apis_projectcalico_v3_NetworkSetSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 4720 return common.OpenAPIDefinition{ 4721 Schema: spec.Schema{ 4722 SchemaProps: spec.SchemaProps{ 4723 Description: "NetworkSetSpec contains the specification for a NetworkSet resource.", 4724 Type: []string{"object"}, 4725 Properties: map[string]spec.Schema{ 4726 "nets": { 4727 SchemaProps: spec.SchemaProps{ 4728 Description: "The list of IP networks that belong to this set.", 4729 Type: []string{"array"}, 4730 Items: &spec.SchemaOrArray{ 4731 Schema: &spec.Schema{ 4732 SchemaProps: spec.SchemaProps{ 4733 Default: "", 4734 Type: []string{"string"}, 4735 Format: "", 4736 }, 4737 }, 4738 }, 4739 }, 4740 }, 4741 }, 4742 }, 4743 }, 4744 } 4745 } 4746 4747 func schema_pkg_apis_projectcalico_v3_NodeControllerConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 4748 return common.OpenAPIDefinition{ 4749 Schema: spec.Schema{ 4750 SchemaProps: spec.SchemaProps{ 4751 Description: "NodeControllerConfig configures the node controller, which automatically cleans up configuration for nodes that no longer exist. Optionally, it can create host endpoints for all Kubernetes nodes.", 4752 Type: []string{"object"}, 4753 Properties: map[string]spec.Schema{ 4754 "reconcilerPeriod": { 4755 SchemaProps: spec.SchemaProps{ 4756 Description: "ReconcilerPeriod is the period to perform reconciliation with the Calico datastore. [Default: 5m]", 4757 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 4758 }, 4759 }, 4760 "syncLabels": { 4761 SchemaProps: spec.SchemaProps{ 4762 Description: "SyncLabels controls whether to copy Kubernetes node labels to Calico nodes. [Default: Enabled]", 4763 Type: []string{"string"}, 4764 Format: "", 4765 }, 4766 }, 4767 "hostEndpoint": { 4768 SchemaProps: spec.SchemaProps{ 4769 Description: "HostEndpoint controls syncing nodes to host endpoints. Disabled by default, set to nil to disable.", 4770 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.AutoHostEndpointConfig"), 4771 }, 4772 }, 4773 "leakGracePeriod": { 4774 SchemaProps: spec.SchemaProps{ 4775 Description: "LeakGracePeriod is the period used by the controller to determine if an IP address has been leaked. Set to 0 to disable IP garbage collection. [Default: 15m]", 4776 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 4777 }, 4778 }, 4779 }, 4780 }, 4781 }, 4782 Dependencies: []string{ 4783 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.AutoHostEndpointConfig", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration"}, 4784 } 4785 } 4786 4787 func schema_pkg_apis_projectcalico_v3_PolicyControllerConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 4788 return common.OpenAPIDefinition{ 4789 Schema: spec.Schema{ 4790 SchemaProps: spec.SchemaProps{ 4791 Description: "PolicyControllerConfig configures the network policy controller, which syncs Kubernetes policies to Calico policies (only used for etcdv3 datastore).", 4792 Type: []string{"object"}, 4793 Properties: map[string]spec.Schema{ 4794 "reconcilerPeriod": { 4795 SchemaProps: spec.SchemaProps{ 4796 Description: "ReconcilerPeriod is the period to perform reconciliation with the Calico datastore. [Default: 5m]", 4797 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 4798 }, 4799 }, 4800 }, 4801 }, 4802 }, 4803 Dependencies: []string{ 4804 "k8s.io/apimachinery/pkg/apis/meta/v1.Duration"}, 4805 } 4806 } 4807 4808 func schema_pkg_apis_projectcalico_v3_PrefixAdvertisement(ref common.ReferenceCallback) common.OpenAPIDefinition { 4809 return common.OpenAPIDefinition{ 4810 Schema: spec.Schema{ 4811 SchemaProps: spec.SchemaProps{ 4812 Description: "PrefixAdvertisement configures advertisement properties for the specified CIDR.", 4813 Type: []string{"object"}, 4814 Properties: map[string]spec.Schema{ 4815 "cidr": { 4816 SchemaProps: spec.SchemaProps{ 4817 Description: "CIDR for which properties should be advertised.", 4818 Type: []string{"string"}, 4819 Format: "", 4820 }, 4821 }, 4822 "communities": { 4823 SchemaProps: spec.SchemaProps{ 4824 Description: "Communities can be list of either community names already defined in `Specs.Communities` or community value of format `aa:nn` or `aa:nn:mm`. For standard community use `aa:nn` format, where `aa` and `nn` are 16 bit number. For large community use `aa:nn:mm` format, where `aa`, `nn` and `mm` are 32 bit number. Where,`aa` is an AS Number, `nn` and `mm` are per-AS identifier.", 4825 Type: []string{"array"}, 4826 Items: &spec.SchemaOrArray{ 4827 Schema: &spec.Schema{ 4828 SchemaProps: spec.SchemaProps{ 4829 Default: "", 4830 Type: []string{"string"}, 4831 Format: "", 4832 }, 4833 }, 4834 }, 4835 }, 4836 }, 4837 }, 4838 }, 4839 }, 4840 } 4841 } 4842 4843 func schema_pkg_apis_projectcalico_v3_Profile(ref common.ReferenceCallback) common.OpenAPIDefinition { 4844 return common.OpenAPIDefinition{ 4845 Schema: spec.Schema{ 4846 SchemaProps: spec.SchemaProps{ 4847 Type: []string{"object"}, 4848 Properties: map[string]spec.Schema{ 4849 "kind": { 4850 SchemaProps: spec.SchemaProps{ 4851 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 4852 Type: []string{"string"}, 4853 Format: "", 4854 }, 4855 }, 4856 "apiVersion": { 4857 SchemaProps: spec.SchemaProps{ 4858 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 4859 Type: []string{"string"}, 4860 Format: "", 4861 }, 4862 }, 4863 "metadata": { 4864 SchemaProps: spec.SchemaProps{ 4865 Default: map[string]interface{}{}, 4866 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 4867 }, 4868 }, 4869 "spec": { 4870 SchemaProps: spec.SchemaProps{ 4871 Default: map[string]interface{}{}, 4872 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.ProfileSpec"), 4873 }, 4874 }, 4875 }, 4876 }, 4877 }, 4878 Dependencies: []string{ 4879 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.ProfileSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 4880 } 4881 } 4882 4883 func schema_pkg_apis_projectcalico_v3_ProfileList(ref common.ReferenceCallback) common.OpenAPIDefinition { 4884 return common.OpenAPIDefinition{ 4885 Schema: spec.Schema{ 4886 SchemaProps: spec.SchemaProps{ 4887 Description: "ProfileList is a list of Profile objects.", 4888 Type: []string{"object"}, 4889 Properties: map[string]spec.Schema{ 4890 "kind": { 4891 SchemaProps: spec.SchemaProps{ 4892 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 4893 Type: []string{"string"}, 4894 Format: "", 4895 }, 4896 }, 4897 "apiVersion": { 4898 SchemaProps: spec.SchemaProps{ 4899 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 4900 Type: []string{"string"}, 4901 Format: "", 4902 }, 4903 }, 4904 "metadata": { 4905 SchemaProps: spec.SchemaProps{ 4906 Default: map[string]interface{}{}, 4907 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 4908 }, 4909 }, 4910 "items": { 4911 SchemaProps: spec.SchemaProps{ 4912 Type: []string{"array"}, 4913 Items: &spec.SchemaOrArray{ 4914 Schema: &spec.Schema{ 4915 SchemaProps: spec.SchemaProps{ 4916 Default: map[string]interface{}{}, 4917 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.Profile"), 4918 }, 4919 }, 4920 }, 4921 }, 4922 }, 4923 }, 4924 Required: []string{"items"}, 4925 }, 4926 }, 4927 Dependencies: []string{ 4928 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.Profile", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 4929 } 4930 } 4931 4932 func schema_pkg_apis_projectcalico_v3_ProfileSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 4933 return common.OpenAPIDefinition{ 4934 Schema: spec.Schema{ 4935 SchemaProps: spec.SchemaProps{ 4936 Description: "ProfileSpec contains the specification for a security Profile resource.", 4937 Type: []string{"object"}, 4938 Properties: map[string]spec.Schema{ 4939 "ingress": { 4940 SchemaProps: spec.SchemaProps{ 4941 Description: "The ordered set of ingress rules. Each rule contains a set of packet match criteria and a corresponding action to apply.", 4942 Type: []string{"array"}, 4943 Items: &spec.SchemaOrArray{ 4944 Schema: &spec.Schema{ 4945 SchemaProps: spec.SchemaProps{ 4946 Default: map[string]interface{}{}, 4947 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.Rule"), 4948 }, 4949 }, 4950 }, 4951 }, 4952 }, 4953 "egress": { 4954 SchemaProps: spec.SchemaProps{ 4955 Description: "The ordered set of egress rules. Each rule contains a set of packet match criteria and a corresponding action to apply.", 4956 Type: []string{"array"}, 4957 Items: &spec.SchemaOrArray{ 4958 Schema: &spec.Schema{ 4959 SchemaProps: spec.SchemaProps{ 4960 Default: map[string]interface{}{}, 4961 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.Rule"), 4962 }, 4963 }, 4964 }, 4965 }, 4966 }, 4967 "labelsToApply": { 4968 SchemaProps: spec.SchemaProps{ 4969 Description: "An option set of labels to apply to each endpoint (in addition to their own labels) referencing this profile. If labels configured on the endpoint have keys matching those labels inherited from the profile, the endpoint label values take precedence.", 4970 Type: []string{"object"}, 4971 AdditionalProperties: &spec.SchemaOrBool{ 4972 Allows: true, 4973 Schema: &spec.Schema{ 4974 SchemaProps: spec.SchemaProps{ 4975 Default: "", 4976 Type: []string{"string"}, 4977 Format: "", 4978 }, 4979 }, 4980 }, 4981 }, 4982 }, 4983 }, 4984 }, 4985 }, 4986 Dependencies: []string{ 4987 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.Rule"}, 4988 } 4989 } 4990 4991 func schema_pkg_apis_projectcalico_v3_ProtoPort(ref common.ReferenceCallback) common.OpenAPIDefinition { 4992 return common.OpenAPIDefinition{ 4993 Schema: spec.Schema{ 4994 SchemaProps: spec.SchemaProps{ 4995 Description: "ProtoPort is combination of protocol, port, and CIDR. Protocol and port must be specified.", 4996 Type: []string{"object"}, 4997 Properties: map[string]spec.Schema{ 4998 "protocol": { 4999 SchemaProps: spec.SchemaProps{ 5000 Default: "", 5001 Type: []string{"string"}, 5002 Format: "", 5003 }, 5004 }, 5005 "port": { 5006 SchemaProps: spec.SchemaProps{ 5007 Default: 0, 5008 Type: []string{"integer"}, 5009 Format: "int32", 5010 }, 5011 }, 5012 "net": { 5013 SchemaProps: spec.SchemaProps{ 5014 Default: "", 5015 Type: []string{"string"}, 5016 Format: "", 5017 }, 5018 }, 5019 }, 5020 Required: []string{"protocol", "port"}, 5021 }, 5022 }, 5023 } 5024 } 5025 5026 func schema_pkg_apis_projectcalico_v3_RouteTableIDRange(ref common.ReferenceCallback) common.OpenAPIDefinition { 5027 return common.OpenAPIDefinition{ 5028 Schema: spec.Schema{ 5029 SchemaProps: spec.SchemaProps{ 5030 Type: []string{"object"}, 5031 Properties: map[string]spec.Schema{ 5032 "min": { 5033 SchemaProps: spec.SchemaProps{ 5034 Default: 0, 5035 Type: []string{"integer"}, 5036 Format: "int32", 5037 }, 5038 }, 5039 "max": { 5040 SchemaProps: spec.SchemaProps{ 5041 Default: 0, 5042 Type: []string{"integer"}, 5043 Format: "int32", 5044 }, 5045 }, 5046 }, 5047 Required: []string{"min", "max"}, 5048 }, 5049 }, 5050 } 5051 } 5052 5053 func schema_pkg_apis_projectcalico_v3_RouteTableRange(ref common.ReferenceCallback) common.OpenAPIDefinition { 5054 return common.OpenAPIDefinition{ 5055 Schema: spec.Schema{ 5056 SchemaProps: spec.SchemaProps{ 5057 Type: []string{"object"}, 5058 Properties: map[string]spec.Schema{ 5059 "min": { 5060 SchemaProps: spec.SchemaProps{ 5061 Default: 0, 5062 Type: []string{"integer"}, 5063 Format: "int32", 5064 }, 5065 }, 5066 "max": { 5067 SchemaProps: spec.SchemaProps{ 5068 Default: 0, 5069 Type: []string{"integer"}, 5070 Format: "int32", 5071 }, 5072 }, 5073 }, 5074 Required: []string{"min", "max"}, 5075 }, 5076 }, 5077 } 5078 } 5079 5080 func schema_pkg_apis_projectcalico_v3_Rule(ref common.ReferenceCallback) common.OpenAPIDefinition { 5081 return common.OpenAPIDefinition{ 5082 Schema: spec.Schema{ 5083 SchemaProps: spec.SchemaProps{ 5084 Description: "A Rule encapsulates a set of match criteria and an action. Both selector-based security Policy and security Profiles reference rules - separated out as a list of rules for both ingress and egress packet matching.\n\nEach positive match criteria has a negated version, prefixed with \"Not\". All the match criteria within a rule must be satisfied for a packet to match. A single rule can contain the positive and negative version of a match and both must be satisfied for the rule to match.", 5085 Type: []string{"object"}, 5086 Properties: map[string]spec.Schema{ 5087 "action": { 5088 SchemaProps: spec.SchemaProps{ 5089 Default: "", 5090 Type: []string{"string"}, 5091 Format: "", 5092 }, 5093 }, 5094 "ipVersion": { 5095 SchemaProps: spec.SchemaProps{ 5096 Description: "IPVersion is an optional field that restricts the rule to only match a specific IP version.", 5097 Type: []string{"integer"}, 5098 Format: "int32", 5099 }, 5100 }, 5101 "protocol": { 5102 SchemaProps: spec.SchemaProps{ 5103 Description: "Protocol is an optional field that restricts the rule to only apply to traffic of a specific IP protocol. Required if any of the EntityRules contain Ports (because ports only apply to certain protocols).\n\nMust be one of these string values: \"TCP\", \"UDP\", \"ICMP\", \"ICMPv6\", \"SCTP\", \"UDPLite\" or an integer in the range 1-255.", 5104 Ref: ref("github.com/projectcalico/api/pkg/lib/numorstring.Protocol"), 5105 }, 5106 }, 5107 "icmp": { 5108 SchemaProps: spec.SchemaProps{ 5109 Description: "ICMP is an optional field that restricts the rule to apply to a specific type and code of ICMP traffic. This should only be specified if the Protocol field is set to \"ICMP\" or \"ICMPv6\".", 5110 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.ICMPFields"), 5111 }, 5112 }, 5113 "notProtocol": { 5114 SchemaProps: spec.SchemaProps{ 5115 Description: "NotProtocol is the negated version of the Protocol field.", 5116 Ref: ref("github.com/projectcalico/api/pkg/lib/numorstring.Protocol"), 5117 }, 5118 }, 5119 "notICMP": { 5120 SchemaProps: spec.SchemaProps{ 5121 Description: "NotICMP is the negated version of the ICMP field.", 5122 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.ICMPFields"), 5123 }, 5124 }, 5125 "source": { 5126 SchemaProps: spec.SchemaProps{ 5127 Description: "Source contains the match criteria that apply to source entity.", 5128 Default: map[string]interface{}{}, 5129 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.EntityRule"), 5130 }, 5131 }, 5132 "destination": { 5133 SchemaProps: spec.SchemaProps{ 5134 Description: "Destination contains the match criteria that apply to destination entity.", 5135 Default: map[string]interface{}{}, 5136 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.EntityRule"), 5137 }, 5138 }, 5139 "http": { 5140 SchemaProps: spec.SchemaProps{ 5141 Description: "HTTP contains match criteria that apply to HTTP requests.", 5142 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.HTTPMatch"), 5143 }, 5144 }, 5145 "metadata": { 5146 SchemaProps: spec.SchemaProps{ 5147 Description: "Metadata contains additional information for this rule", 5148 Ref: ref("github.com/projectcalico/api/pkg/apis/projectcalico/v3.RuleMetadata"), 5149 }, 5150 }, 5151 }, 5152 Required: []string{"action"}, 5153 }, 5154 }, 5155 Dependencies: []string{ 5156 "github.com/projectcalico/api/pkg/apis/projectcalico/v3.EntityRule", "github.com/projectcalico/api/pkg/apis/projectcalico/v3.HTTPMatch", "github.com/projectcalico/api/pkg/apis/projectcalico/v3.ICMPFields", "github.com/projectcalico/api/pkg/apis/projectcalico/v3.RuleMetadata", "github.com/projectcalico/api/pkg/lib/numorstring.Protocol"}, 5157 } 5158 } 5159 5160 func schema_pkg_apis_projectcalico_v3_RuleMetadata(ref common.ReferenceCallback) common.OpenAPIDefinition { 5161 return common.OpenAPIDefinition{ 5162 Schema: spec.Schema{ 5163 SchemaProps: spec.SchemaProps{ 5164 Type: []string{"object"}, 5165 Properties: map[string]spec.Schema{ 5166 "annotations": { 5167 SchemaProps: spec.SchemaProps{ 5168 Description: "Annotations is a set of key value pairs that give extra information about the rule", 5169 Type: []string{"object"}, 5170 AdditionalProperties: &spec.SchemaOrBool{ 5171 Allows: true, 5172 Schema: &spec.Schema{ 5173 SchemaProps: spec.SchemaProps{ 5174 Default: "", 5175 Type: []string{"string"}, 5176 Format: "", 5177 }, 5178 }, 5179 }, 5180 }, 5181 }, 5182 }, 5183 }, 5184 }, 5185 } 5186 } 5187 5188 func schema_pkg_apis_projectcalico_v3_ServiceAccountControllerConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 5189 return common.OpenAPIDefinition{ 5190 Schema: spec.Schema{ 5191 SchemaProps: spec.SchemaProps{ 5192 Description: "ServiceAccountControllerConfig configures the service account controller, which syncs Kubernetes service accounts to Calico profiles (only used for etcdv3 datastore).", 5193 Type: []string{"object"}, 5194 Properties: map[string]spec.Schema{ 5195 "reconcilerPeriod": { 5196 SchemaProps: spec.SchemaProps{ 5197 Description: "ReconcilerPeriod is the period to perform reconciliation with the Calico datastore. [Default: 5m]", 5198 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 5199 }, 5200 }, 5201 }, 5202 }, 5203 }, 5204 Dependencies: []string{ 5205 "k8s.io/apimachinery/pkg/apis/meta/v1.Duration"}, 5206 } 5207 } 5208 5209 func schema_pkg_apis_projectcalico_v3_ServiceAccountMatch(ref common.ReferenceCallback) common.OpenAPIDefinition { 5210 return common.OpenAPIDefinition{ 5211 Schema: spec.Schema{ 5212 SchemaProps: spec.SchemaProps{ 5213 Type: []string{"object"}, 5214 Properties: map[string]spec.Schema{ 5215 "names": { 5216 SchemaProps: spec.SchemaProps{ 5217 Description: "Names is an optional field that restricts the rule to only apply to traffic that originates from (or terminates at) a pod running as a service account whose name is in the list.", 5218 Type: []string{"array"}, 5219 Items: &spec.SchemaOrArray{ 5220 Schema: &spec.Schema{ 5221 SchemaProps: spec.SchemaProps{ 5222 Default: "", 5223 Type: []string{"string"}, 5224 Format: "", 5225 }, 5226 }, 5227 }, 5228 }, 5229 }, 5230 "selector": { 5231 SchemaProps: spec.SchemaProps{ 5232 Description: "Selector is an optional field that restricts the rule to only apply to traffic that originates from (or terminates at) a pod running as a service account that matches the given label selector. If both Names and Selector are specified then they are AND'ed.", 5233 Type: []string{"string"}, 5234 Format: "", 5235 }, 5236 }, 5237 }, 5238 }, 5239 }, 5240 } 5241 } 5242 5243 func schema_pkg_apis_projectcalico_v3_ServiceClusterIPBlock(ref common.ReferenceCallback) common.OpenAPIDefinition { 5244 return common.OpenAPIDefinition{ 5245 Schema: spec.Schema{ 5246 SchemaProps: spec.SchemaProps{ 5247 Description: "ServiceClusterIPBlock represents a single allowed ClusterIP CIDR block.", 5248 Type: []string{"object"}, 5249 Properties: map[string]spec.Schema{ 5250 "cidr": { 5251 SchemaProps: spec.SchemaProps{ 5252 Type: []string{"string"}, 5253 Format: "", 5254 }, 5255 }, 5256 }, 5257 }, 5258 }, 5259 } 5260 } 5261 5262 func schema_pkg_apis_projectcalico_v3_ServiceExternalIPBlock(ref common.ReferenceCallback) common.OpenAPIDefinition { 5263 return common.OpenAPIDefinition{ 5264 Schema: spec.Schema{ 5265 SchemaProps: spec.SchemaProps{ 5266 Description: "ServiceExternalIPBlock represents a single allowed External IP CIDR block.", 5267 Type: []string{"object"}, 5268 Properties: map[string]spec.Schema{ 5269 "cidr": { 5270 SchemaProps: spec.SchemaProps{ 5271 Type: []string{"string"}, 5272 Format: "", 5273 }, 5274 }, 5275 }, 5276 }, 5277 }, 5278 } 5279 } 5280 5281 func schema_pkg_apis_projectcalico_v3_ServiceLoadBalancerIPBlock(ref common.ReferenceCallback) common.OpenAPIDefinition { 5282 return common.OpenAPIDefinition{ 5283 Schema: spec.Schema{ 5284 SchemaProps: spec.SchemaProps{ 5285 Description: "ServiceLoadBalancerIPBlock represents a single allowed LoadBalancer IP CIDR block.", 5286 Type: []string{"object"}, 5287 Properties: map[string]spec.Schema{ 5288 "cidr": { 5289 SchemaProps: spec.SchemaProps{ 5290 Type: []string{"string"}, 5291 Format: "", 5292 }, 5293 }, 5294 }, 5295 }, 5296 }, 5297 } 5298 } 5299 5300 func schema_pkg_apis_projectcalico_v3_ServiceMatch(ref common.ReferenceCallback) common.OpenAPIDefinition { 5301 return common.OpenAPIDefinition{ 5302 Schema: spec.Schema{ 5303 SchemaProps: spec.SchemaProps{ 5304 Type: []string{"object"}, 5305 Properties: map[string]spec.Schema{ 5306 "name": { 5307 SchemaProps: spec.SchemaProps{ 5308 Description: "Name specifies the name of a Kubernetes Service to match.", 5309 Type: []string{"string"}, 5310 Format: "", 5311 }, 5312 }, 5313 "namespace": { 5314 SchemaProps: spec.SchemaProps{ 5315 Description: "Namespace specifies the namespace of the given Service. If left empty, the rule will match within this policy's namespace.", 5316 Type: []string{"string"}, 5317 Format: "", 5318 }, 5319 }, 5320 }, 5321 }, 5322 }, 5323 } 5324 } 5325 5326 func schema_pkg_apis_projectcalico_v3_WorkloadEndpointControllerConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 5327 return common.OpenAPIDefinition{ 5328 Schema: spec.Schema{ 5329 SchemaProps: spec.SchemaProps{ 5330 Description: "WorkloadEndpointControllerConfig configures the workload endpoint controller, which syncs Kubernetes labels to Calico workload endpoints (only used for etcdv3 datastore).", 5331 Type: []string{"object"}, 5332 Properties: map[string]spec.Schema{ 5333 "reconcilerPeriod": { 5334 SchemaProps: spec.SchemaProps{ 5335 Description: "ReconcilerPeriod is the period to perform reconciliation with the Calico datastore. [Default: 5m]", 5336 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 5337 }, 5338 }, 5339 }, 5340 }, 5341 }, 5342 Dependencies: []string{ 5343 "k8s.io/apimachinery/pkg/apis/meta/v1.Duration"}, 5344 } 5345 } 5346 5347 func schema_api_pkg_lib_numorstring_Port(ref common.ReferenceCallback) common.OpenAPIDefinition { 5348 return common.OpenAPIDefinition{ 5349 Schema: spec.Schema{ 5350 SchemaProps: spec.SchemaProps{ 5351 Description: "Port represents either a range of numeric ports or a named port.\n\n - For a named port, set the PortName, leaving MinPort and MaxPort as 0.\n - For a port range, set MinPort and MaxPort to the (inclusive) port numbers. Set\n PortName to \"\".\n - For a single port, set MinPort = MaxPort and PortName = \"\".", 5352 Type: numorstring.Port{}.OpenAPISchemaType(), 5353 Format: numorstring.Port{}.OpenAPISchemaFormat(), 5354 }, 5355 }, 5356 } 5357 } 5358 5359 func schema_api_pkg_lib_numorstring_Protocol(ref common.ReferenceCallback) common.OpenAPIDefinition { 5360 return common.OpenAPIDefinition{ 5361 Schema: spec.Schema{ 5362 SchemaProps: spec.SchemaProps{ 5363 Type: numorstring.Protocol{}.OpenAPISchemaType(), 5364 Format: numorstring.Protocol{}.OpenAPISchemaFormat(), 5365 }, 5366 }, 5367 } 5368 } 5369 5370 func schema_api_pkg_lib_numorstring_Uint8OrString(ref common.ReferenceCallback) common.OpenAPIDefinition { 5371 return common.OpenAPIDefinition{ 5372 Schema: spec.Schema{ 5373 SchemaProps: spec.SchemaProps{ 5374 Description: "UInt8OrString is a type that can hold an uint8 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.", 5375 Type: numorstring.Uint8OrString{}.OpenAPISchemaType(), 5376 Format: numorstring.Uint8OrString{}.OpenAPISchemaFormat(), 5377 }, 5378 }, 5379 } 5380 } 5381 5382 func schema_k8sio_api_core_v1_AWSElasticBlockStoreVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 5383 return common.OpenAPIDefinition{ 5384 Schema: spec.Schema{ 5385 SchemaProps: spec.SchemaProps{ 5386 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.", 5387 Type: []string{"object"}, 5388 Properties: map[string]spec.Schema{ 5389 "volumeID": { 5390 SchemaProps: spec.SchemaProps{ 5391 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", 5392 Default: "", 5393 Type: []string{"string"}, 5394 Format: "", 5395 }, 5396 }, 5397 "fsType": { 5398 SchemaProps: spec.SchemaProps{ 5399 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", 5400 Type: []string{"string"}, 5401 Format: "", 5402 }, 5403 }, 5404 "partition": { 5405 SchemaProps: spec.SchemaProps{ 5406 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).", 5407 Type: []string{"integer"}, 5408 Format: "int32", 5409 }, 5410 }, 5411 "readOnly": { 5412 SchemaProps: spec.SchemaProps{ 5413 Description: "readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", 5414 Type: []string{"boolean"}, 5415 Format: "", 5416 }, 5417 }, 5418 }, 5419 Required: []string{"volumeID"}, 5420 }, 5421 }, 5422 } 5423 } 5424 5425 func schema_k8sio_api_core_v1_Affinity(ref common.ReferenceCallback) common.OpenAPIDefinition { 5426 return common.OpenAPIDefinition{ 5427 Schema: spec.Schema{ 5428 SchemaProps: spec.SchemaProps{ 5429 Description: "Affinity is a group of affinity scheduling rules.", 5430 Type: []string{"object"}, 5431 Properties: map[string]spec.Schema{ 5432 "nodeAffinity": { 5433 SchemaProps: spec.SchemaProps{ 5434 Description: "Describes node affinity scheduling rules for the pod.", 5435 Ref: ref("k8s.io/api/core/v1.NodeAffinity"), 5436 }, 5437 }, 5438 "podAffinity": { 5439 SchemaProps: spec.SchemaProps{ 5440 Description: "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).", 5441 Ref: ref("k8s.io/api/core/v1.PodAffinity"), 5442 }, 5443 }, 5444 "podAntiAffinity": { 5445 SchemaProps: spec.SchemaProps{ 5446 Description: "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).", 5447 Ref: ref("k8s.io/api/core/v1.PodAntiAffinity"), 5448 }, 5449 }, 5450 }, 5451 }, 5452 }, 5453 Dependencies: []string{ 5454 "k8s.io/api/core/v1.NodeAffinity", "k8s.io/api/core/v1.PodAffinity", "k8s.io/api/core/v1.PodAntiAffinity"}, 5455 } 5456 } 5457 5458 func schema_k8sio_api_core_v1_AttachedVolume(ref common.ReferenceCallback) common.OpenAPIDefinition { 5459 return common.OpenAPIDefinition{ 5460 Schema: spec.Schema{ 5461 SchemaProps: spec.SchemaProps{ 5462 Description: "AttachedVolume describes a volume attached to a node", 5463 Type: []string{"object"}, 5464 Properties: map[string]spec.Schema{ 5465 "name": { 5466 SchemaProps: spec.SchemaProps{ 5467 Description: "Name of the attached volume", 5468 Default: "", 5469 Type: []string{"string"}, 5470 Format: "", 5471 }, 5472 }, 5473 "devicePath": { 5474 SchemaProps: spec.SchemaProps{ 5475 Description: "DevicePath represents the device path where the volume should be available", 5476 Default: "", 5477 Type: []string{"string"}, 5478 Format: "", 5479 }, 5480 }, 5481 }, 5482 Required: []string{"name", "devicePath"}, 5483 }, 5484 }, 5485 } 5486 } 5487 5488 func schema_k8sio_api_core_v1_AvoidPods(ref common.ReferenceCallback) common.OpenAPIDefinition { 5489 return common.OpenAPIDefinition{ 5490 Schema: spec.Schema{ 5491 SchemaProps: spec.SchemaProps{ 5492 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.", 5493 Type: []string{"object"}, 5494 Properties: map[string]spec.Schema{ 5495 "preferAvoidPods": { 5496 SchemaProps: spec.SchemaProps{ 5497 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.", 5498 Type: []string{"array"}, 5499 Items: &spec.SchemaOrArray{ 5500 Schema: &spec.Schema{ 5501 SchemaProps: spec.SchemaProps{ 5502 Default: map[string]interface{}{}, 5503 Ref: ref("k8s.io/api/core/v1.PreferAvoidPodsEntry"), 5504 }, 5505 }, 5506 }, 5507 }, 5508 }, 5509 }, 5510 }, 5511 }, 5512 Dependencies: []string{ 5513 "k8s.io/api/core/v1.PreferAvoidPodsEntry"}, 5514 } 5515 } 5516 5517 func schema_k8sio_api_core_v1_AzureDiskVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 5518 return common.OpenAPIDefinition{ 5519 Schema: spec.Schema{ 5520 SchemaProps: spec.SchemaProps{ 5521 Description: "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", 5522 Type: []string{"object"}, 5523 Properties: map[string]spec.Schema{ 5524 "diskName": { 5525 SchemaProps: spec.SchemaProps{ 5526 Description: "diskName is the Name of the data disk in the blob storage", 5527 Default: "", 5528 Type: []string{"string"}, 5529 Format: "", 5530 }, 5531 }, 5532 "diskURI": { 5533 SchemaProps: spec.SchemaProps{ 5534 Description: "diskURI is the URI of data disk in the blob storage", 5535 Default: "", 5536 Type: []string{"string"}, 5537 Format: "", 5538 }, 5539 }, 5540 "cachingMode": { 5541 SchemaProps: spec.SchemaProps{ 5542 Description: "cachingMode is the Host Caching mode: None, Read Only, Read Write.\n\nPossible enum values:\n - `\"None\"`\n - `\"ReadOnly\"`\n - `\"ReadWrite\"`", 5543 Type: []string{"string"}, 5544 Format: "", 5545 Enum: []interface{}{"None", "ReadOnly", "ReadWrite"}, 5546 }, 5547 }, 5548 "fsType": { 5549 SchemaProps: spec.SchemaProps{ 5550 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.", 5551 Type: []string{"string"}, 5552 Format: "", 5553 }, 5554 }, 5555 "readOnly": { 5556 SchemaProps: spec.SchemaProps{ 5557 Description: "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 5558 Type: []string{"boolean"}, 5559 Format: "", 5560 }, 5561 }, 5562 "kind": { 5563 SchemaProps: spec.SchemaProps{ 5564 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\n\nPossible enum values:\n - `\"Dedicated\"`\n - `\"Managed\"`\n - `\"Shared\"`", 5565 Type: []string{"string"}, 5566 Format: "", 5567 Enum: []interface{}{"Dedicated", "Managed", "Shared"}, 5568 }, 5569 }, 5570 }, 5571 Required: []string{"diskName", "diskURI"}, 5572 }, 5573 }, 5574 } 5575 } 5576 5577 func schema_k8sio_api_core_v1_AzureFilePersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 5578 return common.OpenAPIDefinition{ 5579 Schema: spec.Schema{ 5580 SchemaProps: spec.SchemaProps{ 5581 Description: "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", 5582 Type: []string{"object"}, 5583 Properties: map[string]spec.Schema{ 5584 "secretName": { 5585 SchemaProps: spec.SchemaProps{ 5586 Description: "secretName is the name of secret that contains Azure Storage Account Name and Key", 5587 Default: "", 5588 Type: []string{"string"}, 5589 Format: "", 5590 }, 5591 }, 5592 "shareName": { 5593 SchemaProps: spec.SchemaProps{ 5594 Description: "shareName is the azure Share Name", 5595 Default: "", 5596 Type: []string{"string"}, 5597 Format: "", 5598 }, 5599 }, 5600 "readOnly": { 5601 SchemaProps: spec.SchemaProps{ 5602 Description: "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 5603 Type: []string{"boolean"}, 5604 Format: "", 5605 }, 5606 }, 5607 "secretNamespace": { 5608 SchemaProps: spec.SchemaProps{ 5609 Description: "secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod", 5610 Type: []string{"string"}, 5611 Format: "", 5612 }, 5613 }, 5614 }, 5615 Required: []string{"secretName", "shareName"}, 5616 }, 5617 }, 5618 } 5619 } 5620 5621 func schema_k8sio_api_core_v1_AzureFileVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 5622 return common.OpenAPIDefinition{ 5623 Schema: spec.Schema{ 5624 SchemaProps: spec.SchemaProps{ 5625 Description: "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", 5626 Type: []string{"object"}, 5627 Properties: map[string]spec.Schema{ 5628 "secretName": { 5629 SchemaProps: spec.SchemaProps{ 5630 Description: "secretName is the name of secret that contains Azure Storage Account Name and Key", 5631 Default: "", 5632 Type: []string{"string"}, 5633 Format: "", 5634 }, 5635 }, 5636 "shareName": { 5637 SchemaProps: spec.SchemaProps{ 5638 Description: "shareName is the azure share Name", 5639 Default: "", 5640 Type: []string{"string"}, 5641 Format: "", 5642 }, 5643 }, 5644 "readOnly": { 5645 SchemaProps: spec.SchemaProps{ 5646 Description: "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 5647 Type: []string{"boolean"}, 5648 Format: "", 5649 }, 5650 }, 5651 }, 5652 Required: []string{"secretName", "shareName"}, 5653 }, 5654 }, 5655 } 5656 } 5657 5658 func schema_k8sio_api_core_v1_Binding(ref common.ReferenceCallback) common.OpenAPIDefinition { 5659 return common.OpenAPIDefinition{ 5660 Schema: spec.Schema{ 5661 SchemaProps: spec.SchemaProps{ 5662 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.", 5663 Type: []string{"object"}, 5664 Properties: map[string]spec.Schema{ 5665 "kind": { 5666 SchemaProps: spec.SchemaProps{ 5667 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 5668 Type: []string{"string"}, 5669 Format: "", 5670 }, 5671 }, 5672 "apiVersion": { 5673 SchemaProps: spec.SchemaProps{ 5674 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 5675 Type: []string{"string"}, 5676 Format: "", 5677 }, 5678 }, 5679 "metadata": { 5680 SchemaProps: spec.SchemaProps{ 5681 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 5682 Default: map[string]interface{}{}, 5683 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 5684 }, 5685 }, 5686 "target": { 5687 SchemaProps: spec.SchemaProps{ 5688 Description: "The target object that you want to bind to the standard object.", 5689 Default: map[string]interface{}{}, 5690 Ref: ref("k8s.io/api/core/v1.ObjectReference"), 5691 }, 5692 }, 5693 }, 5694 Required: []string{"target"}, 5695 }, 5696 }, 5697 Dependencies: []string{ 5698 "k8s.io/api/core/v1.ObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 5699 } 5700 } 5701 5702 func schema_k8sio_api_core_v1_CSIPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 5703 return common.OpenAPIDefinition{ 5704 Schema: spec.Schema{ 5705 SchemaProps: spec.SchemaProps{ 5706 Description: "Represents storage that is managed by an external CSI volume driver (Beta feature)", 5707 Type: []string{"object"}, 5708 Properties: map[string]spec.Schema{ 5709 "driver": { 5710 SchemaProps: spec.SchemaProps{ 5711 Description: "driver is the name of the driver to use for this volume. Required.", 5712 Default: "", 5713 Type: []string{"string"}, 5714 Format: "", 5715 }, 5716 }, 5717 "volumeHandle": { 5718 SchemaProps: spec.SchemaProps{ 5719 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.", 5720 Default: "", 5721 Type: []string{"string"}, 5722 Format: "", 5723 }, 5724 }, 5725 "readOnly": { 5726 SchemaProps: spec.SchemaProps{ 5727 Description: "readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).", 5728 Type: []string{"boolean"}, 5729 Format: "", 5730 }, 5731 }, 5732 "fsType": { 5733 SchemaProps: spec.SchemaProps{ 5734 Description: "fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".", 5735 Type: []string{"string"}, 5736 Format: "", 5737 }, 5738 }, 5739 "volumeAttributes": { 5740 SchemaProps: spec.SchemaProps{ 5741 Description: "volumeAttributes of the volume to publish.", 5742 Type: []string{"object"}, 5743 AdditionalProperties: &spec.SchemaOrBool{ 5744 Allows: true, 5745 Schema: &spec.Schema{ 5746 SchemaProps: spec.SchemaProps{ 5747 Default: "", 5748 Type: []string{"string"}, 5749 Format: "", 5750 }, 5751 }, 5752 }, 5753 }, 5754 }, 5755 "controllerPublishSecretRef": { 5756 SchemaProps: spec.SchemaProps{ 5757 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.", 5758 Ref: ref("k8s.io/api/core/v1.SecretReference"), 5759 }, 5760 }, 5761 "nodeStageSecretRef": { 5762 SchemaProps: spec.SchemaProps{ 5763 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.", 5764 Ref: ref("k8s.io/api/core/v1.SecretReference"), 5765 }, 5766 }, 5767 "nodePublishSecretRef": { 5768 SchemaProps: spec.SchemaProps{ 5769 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.", 5770 Ref: ref("k8s.io/api/core/v1.SecretReference"), 5771 }, 5772 }, 5773 "controllerExpandSecretRef": { 5774 SchemaProps: spec.SchemaProps{ 5775 Description: "controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.", 5776 Ref: ref("k8s.io/api/core/v1.SecretReference"), 5777 }, 5778 }, 5779 "nodeExpandSecretRef": { 5780 SchemaProps: spec.SchemaProps{ 5781 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 a beta field which is enabled default by 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.", 5782 Ref: ref("k8s.io/api/core/v1.SecretReference"), 5783 }, 5784 }, 5785 }, 5786 Required: []string{"driver", "volumeHandle"}, 5787 }, 5788 }, 5789 Dependencies: []string{ 5790 "k8s.io/api/core/v1.SecretReference"}, 5791 } 5792 } 5793 5794 func schema_k8sio_api_core_v1_CSIVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 5795 return common.OpenAPIDefinition{ 5796 Schema: spec.Schema{ 5797 SchemaProps: spec.SchemaProps{ 5798 Description: "Represents a source location of a volume to mount, managed by an external CSI driver", 5799 Type: []string{"object"}, 5800 Properties: map[string]spec.Schema{ 5801 "driver": { 5802 SchemaProps: spec.SchemaProps{ 5803 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.", 5804 Default: "", 5805 Type: []string{"string"}, 5806 Format: "", 5807 }, 5808 }, 5809 "readOnly": { 5810 SchemaProps: spec.SchemaProps{ 5811 Description: "readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).", 5812 Type: []string{"boolean"}, 5813 Format: "", 5814 }, 5815 }, 5816 "fsType": { 5817 SchemaProps: spec.SchemaProps{ 5818 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.", 5819 Type: []string{"string"}, 5820 Format: "", 5821 }, 5822 }, 5823 "volumeAttributes": { 5824 SchemaProps: spec.SchemaProps{ 5825 Description: "volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.", 5826 Type: []string{"object"}, 5827 AdditionalProperties: &spec.SchemaOrBool{ 5828 Allows: true, 5829 Schema: &spec.Schema{ 5830 SchemaProps: spec.SchemaProps{ 5831 Default: "", 5832 Type: []string{"string"}, 5833 Format: "", 5834 }, 5835 }, 5836 }, 5837 }, 5838 }, 5839 "nodePublishSecretRef": { 5840 SchemaProps: spec.SchemaProps{ 5841 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.", 5842 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 5843 }, 5844 }, 5845 }, 5846 Required: []string{"driver"}, 5847 }, 5848 }, 5849 Dependencies: []string{ 5850 "k8s.io/api/core/v1.LocalObjectReference"}, 5851 } 5852 } 5853 5854 func schema_k8sio_api_core_v1_Capabilities(ref common.ReferenceCallback) common.OpenAPIDefinition { 5855 return common.OpenAPIDefinition{ 5856 Schema: spec.Schema{ 5857 SchemaProps: spec.SchemaProps{ 5858 Description: "Adds and removes POSIX capabilities from running containers.", 5859 Type: []string{"object"}, 5860 Properties: map[string]spec.Schema{ 5861 "add": { 5862 SchemaProps: spec.SchemaProps{ 5863 Description: "Added capabilities", 5864 Type: []string{"array"}, 5865 Items: &spec.SchemaOrArray{ 5866 Schema: &spec.Schema{ 5867 SchemaProps: spec.SchemaProps{ 5868 Default: "", 5869 Type: []string{"string"}, 5870 Format: "", 5871 }, 5872 }, 5873 }, 5874 }, 5875 }, 5876 "drop": { 5877 SchemaProps: spec.SchemaProps{ 5878 Description: "Removed capabilities", 5879 Type: []string{"array"}, 5880 Items: &spec.SchemaOrArray{ 5881 Schema: &spec.Schema{ 5882 SchemaProps: spec.SchemaProps{ 5883 Default: "", 5884 Type: []string{"string"}, 5885 Format: "", 5886 }, 5887 }, 5888 }, 5889 }, 5890 }, 5891 }, 5892 }, 5893 }, 5894 } 5895 } 5896 5897 func schema_k8sio_api_core_v1_CephFSPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 5898 return common.OpenAPIDefinition{ 5899 Schema: spec.Schema{ 5900 SchemaProps: spec.SchemaProps{ 5901 Description: "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", 5902 Type: []string{"object"}, 5903 Properties: map[string]spec.Schema{ 5904 "monitors": { 5905 SchemaProps: spec.SchemaProps{ 5906 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", 5907 Type: []string{"array"}, 5908 Items: &spec.SchemaOrArray{ 5909 Schema: &spec.Schema{ 5910 SchemaProps: spec.SchemaProps{ 5911 Default: "", 5912 Type: []string{"string"}, 5913 Format: "", 5914 }, 5915 }, 5916 }, 5917 }, 5918 }, 5919 "path": { 5920 SchemaProps: spec.SchemaProps{ 5921 Description: "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /", 5922 Type: []string{"string"}, 5923 Format: "", 5924 }, 5925 }, 5926 "user": { 5927 SchemaProps: spec.SchemaProps{ 5928 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", 5929 Type: []string{"string"}, 5930 Format: "", 5931 }, 5932 }, 5933 "secretFile": { 5934 SchemaProps: spec.SchemaProps{ 5935 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", 5936 Type: []string{"string"}, 5937 Format: "", 5938 }, 5939 }, 5940 "secretRef": { 5941 SchemaProps: spec.SchemaProps{ 5942 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", 5943 Ref: ref("k8s.io/api/core/v1.SecretReference"), 5944 }, 5945 }, 5946 "readOnly": { 5947 SchemaProps: spec.SchemaProps{ 5948 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", 5949 Type: []string{"boolean"}, 5950 Format: "", 5951 }, 5952 }, 5953 }, 5954 Required: []string{"monitors"}, 5955 }, 5956 }, 5957 Dependencies: []string{ 5958 "k8s.io/api/core/v1.SecretReference"}, 5959 } 5960 } 5961 5962 func schema_k8sio_api_core_v1_CephFSVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 5963 return common.OpenAPIDefinition{ 5964 Schema: spec.Schema{ 5965 SchemaProps: spec.SchemaProps{ 5966 Description: "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", 5967 Type: []string{"object"}, 5968 Properties: map[string]spec.Schema{ 5969 "monitors": { 5970 SchemaProps: spec.SchemaProps{ 5971 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", 5972 Type: []string{"array"}, 5973 Items: &spec.SchemaOrArray{ 5974 Schema: &spec.Schema{ 5975 SchemaProps: spec.SchemaProps{ 5976 Default: "", 5977 Type: []string{"string"}, 5978 Format: "", 5979 }, 5980 }, 5981 }, 5982 }, 5983 }, 5984 "path": { 5985 SchemaProps: spec.SchemaProps{ 5986 Description: "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /", 5987 Type: []string{"string"}, 5988 Format: "", 5989 }, 5990 }, 5991 "user": { 5992 SchemaProps: spec.SchemaProps{ 5993 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", 5994 Type: []string{"string"}, 5995 Format: "", 5996 }, 5997 }, 5998 "secretFile": { 5999 SchemaProps: spec.SchemaProps{ 6000 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", 6001 Type: []string{"string"}, 6002 Format: "", 6003 }, 6004 }, 6005 "secretRef": { 6006 SchemaProps: spec.SchemaProps{ 6007 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", 6008 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 6009 }, 6010 }, 6011 "readOnly": { 6012 SchemaProps: spec.SchemaProps{ 6013 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", 6014 Type: []string{"boolean"}, 6015 Format: "", 6016 }, 6017 }, 6018 }, 6019 Required: []string{"monitors"}, 6020 }, 6021 }, 6022 Dependencies: []string{ 6023 "k8s.io/api/core/v1.LocalObjectReference"}, 6024 } 6025 } 6026 6027 func schema_k8sio_api_core_v1_CinderPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 6028 return common.OpenAPIDefinition{ 6029 Schema: spec.Schema{ 6030 SchemaProps: spec.SchemaProps{ 6031 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.", 6032 Type: []string{"object"}, 6033 Properties: map[string]spec.Schema{ 6034 "volumeID": { 6035 SchemaProps: spec.SchemaProps{ 6036 Description: "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", 6037 Default: "", 6038 Type: []string{"string"}, 6039 Format: "", 6040 }, 6041 }, 6042 "fsType": { 6043 SchemaProps: spec.SchemaProps{ 6044 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", 6045 Type: []string{"string"}, 6046 Format: "", 6047 }, 6048 }, 6049 "readOnly": { 6050 SchemaProps: spec.SchemaProps{ 6051 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", 6052 Type: []string{"boolean"}, 6053 Format: "", 6054 }, 6055 }, 6056 "secretRef": { 6057 SchemaProps: spec.SchemaProps{ 6058 Description: "secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack.", 6059 Ref: ref("k8s.io/api/core/v1.SecretReference"), 6060 }, 6061 }, 6062 }, 6063 Required: []string{"volumeID"}, 6064 }, 6065 }, 6066 Dependencies: []string{ 6067 "k8s.io/api/core/v1.SecretReference"}, 6068 } 6069 } 6070 6071 func schema_k8sio_api_core_v1_CinderVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 6072 return common.OpenAPIDefinition{ 6073 Schema: spec.Schema{ 6074 SchemaProps: spec.SchemaProps{ 6075 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.", 6076 Type: []string{"object"}, 6077 Properties: map[string]spec.Schema{ 6078 "volumeID": { 6079 SchemaProps: spec.SchemaProps{ 6080 Description: "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", 6081 Default: "", 6082 Type: []string{"string"}, 6083 Format: "", 6084 }, 6085 }, 6086 "fsType": { 6087 SchemaProps: spec.SchemaProps{ 6088 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", 6089 Type: []string{"string"}, 6090 Format: "", 6091 }, 6092 }, 6093 "readOnly": { 6094 SchemaProps: spec.SchemaProps{ 6095 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", 6096 Type: []string{"boolean"}, 6097 Format: "", 6098 }, 6099 }, 6100 "secretRef": { 6101 SchemaProps: spec.SchemaProps{ 6102 Description: "secretRef is optional: points to a secret object containing parameters used to connect to OpenStack.", 6103 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 6104 }, 6105 }, 6106 }, 6107 Required: []string{"volumeID"}, 6108 }, 6109 }, 6110 Dependencies: []string{ 6111 "k8s.io/api/core/v1.LocalObjectReference"}, 6112 } 6113 } 6114 6115 func schema_k8sio_api_core_v1_ClaimSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 6116 return common.OpenAPIDefinition{ 6117 Schema: spec.Schema{ 6118 SchemaProps: spec.SchemaProps{ 6119 Description: "ClaimSource describes a reference to a ResourceClaim.\n\nExactly one of these fields should be set. Consumers of this type must treat an empty object as if it has an unknown value.", 6120 Type: []string{"object"}, 6121 Properties: map[string]spec.Schema{ 6122 "resourceClaimName": { 6123 SchemaProps: spec.SchemaProps{ 6124 Description: "ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod.", 6125 Type: []string{"string"}, 6126 Format: "", 6127 }, 6128 }, 6129 "resourceClaimTemplateName": { 6130 SchemaProps: spec.SchemaProps{ 6131 Description: "ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod.\n\nThe template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The name of the ResourceClaim will be <pod name>-<resource name>, where <resource name> is the PodResourceClaim.Name. Pod validation will reject the pod if the concatenated name is not valid for a ResourceClaim (e.g. too long).\n\nAn existing ResourceClaim with that name that is not owned by the pod will not be used for the pod to avoid using an unrelated resource by mistake. Scheduling and pod startup are then blocked until the unrelated ResourceClaim is removed.\n\nThis field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.", 6132 Type: []string{"string"}, 6133 Format: "", 6134 }, 6135 }, 6136 }, 6137 }, 6138 }, 6139 } 6140 } 6141 6142 func schema_k8sio_api_core_v1_ClientIPConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 6143 return common.OpenAPIDefinition{ 6144 Schema: spec.Schema{ 6145 SchemaProps: spec.SchemaProps{ 6146 Description: "ClientIPConfig represents the configurations of Client IP based session affinity.", 6147 Type: []string{"object"}, 6148 Properties: map[string]spec.Schema{ 6149 "timeoutSeconds": { 6150 SchemaProps: spec.SchemaProps{ 6151 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).", 6152 Type: []string{"integer"}, 6153 Format: "int32", 6154 }, 6155 }, 6156 }, 6157 }, 6158 }, 6159 } 6160 } 6161 6162 func schema_k8sio_api_core_v1_ComponentCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 6163 return common.OpenAPIDefinition{ 6164 Schema: spec.Schema{ 6165 SchemaProps: spec.SchemaProps{ 6166 Description: "Information about the condition of a component.", 6167 Type: []string{"object"}, 6168 Properties: map[string]spec.Schema{ 6169 "type": { 6170 SchemaProps: spec.SchemaProps{ 6171 Description: "Type of condition for a component. Valid value: \"Healthy\"", 6172 Default: "", 6173 Type: []string{"string"}, 6174 Format: "", 6175 }, 6176 }, 6177 "status": { 6178 SchemaProps: spec.SchemaProps{ 6179 Description: "Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\".", 6180 Default: "", 6181 Type: []string{"string"}, 6182 Format: "", 6183 }, 6184 }, 6185 "message": { 6186 SchemaProps: spec.SchemaProps{ 6187 Description: "Message about the condition for a component. For example, information about a health check.", 6188 Type: []string{"string"}, 6189 Format: "", 6190 }, 6191 }, 6192 "error": { 6193 SchemaProps: spec.SchemaProps{ 6194 Description: "Condition error code for a component. For example, a health check error code.", 6195 Type: []string{"string"}, 6196 Format: "", 6197 }, 6198 }, 6199 }, 6200 Required: []string{"type", "status"}, 6201 }, 6202 }, 6203 } 6204 } 6205 6206 func schema_k8sio_api_core_v1_ComponentStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 6207 return common.OpenAPIDefinition{ 6208 Schema: spec.Schema{ 6209 SchemaProps: spec.SchemaProps{ 6210 Description: "ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+", 6211 Type: []string{"object"}, 6212 Properties: map[string]spec.Schema{ 6213 "kind": { 6214 SchemaProps: spec.SchemaProps{ 6215 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 6216 Type: []string{"string"}, 6217 Format: "", 6218 }, 6219 }, 6220 "apiVersion": { 6221 SchemaProps: spec.SchemaProps{ 6222 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 6223 Type: []string{"string"}, 6224 Format: "", 6225 }, 6226 }, 6227 "metadata": { 6228 SchemaProps: spec.SchemaProps{ 6229 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 6230 Default: map[string]interface{}{}, 6231 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 6232 }, 6233 }, 6234 "conditions": { 6235 VendorExtensible: spec.VendorExtensible{ 6236 Extensions: spec.Extensions{ 6237 "x-kubernetes-patch-merge-key": "type", 6238 "x-kubernetes-patch-strategy": "merge", 6239 }, 6240 }, 6241 SchemaProps: spec.SchemaProps{ 6242 Description: "List of component conditions observed", 6243 Type: []string{"array"}, 6244 Items: &spec.SchemaOrArray{ 6245 Schema: &spec.Schema{ 6246 SchemaProps: spec.SchemaProps{ 6247 Default: map[string]interface{}{}, 6248 Ref: ref("k8s.io/api/core/v1.ComponentCondition"), 6249 }, 6250 }, 6251 }, 6252 }, 6253 }, 6254 }, 6255 }, 6256 }, 6257 Dependencies: []string{ 6258 "k8s.io/api/core/v1.ComponentCondition", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 6259 } 6260 } 6261 6262 func schema_k8sio_api_core_v1_ComponentStatusList(ref common.ReferenceCallback) common.OpenAPIDefinition { 6263 return common.OpenAPIDefinition{ 6264 Schema: spec.Schema{ 6265 SchemaProps: spec.SchemaProps{ 6266 Description: "Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+", 6267 Type: []string{"object"}, 6268 Properties: map[string]spec.Schema{ 6269 "kind": { 6270 SchemaProps: spec.SchemaProps{ 6271 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 6272 Type: []string{"string"}, 6273 Format: "", 6274 }, 6275 }, 6276 "apiVersion": { 6277 SchemaProps: spec.SchemaProps{ 6278 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 6279 Type: []string{"string"}, 6280 Format: "", 6281 }, 6282 }, 6283 "metadata": { 6284 SchemaProps: spec.SchemaProps{ 6285 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 6286 Default: map[string]interface{}{}, 6287 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 6288 }, 6289 }, 6290 "items": { 6291 SchemaProps: spec.SchemaProps{ 6292 Description: "List of ComponentStatus objects.", 6293 Type: []string{"array"}, 6294 Items: &spec.SchemaOrArray{ 6295 Schema: &spec.Schema{ 6296 SchemaProps: spec.SchemaProps{ 6297 Default: map[string]interface{}{}, 6298 Ref: ref("k8s.io/api/core/v1.ComponentStatus"), 6299 }, 6300 }, 6301 }, 6302 }, 6303 }, 6304 }, 6305 Required: []string{"items"}, 6306 }, 6307 }, 6308 Dependencies: []string{ 6309 "k8s.io/api/core/v1.ComponentStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 6310 } 6311 } 6312 6313 func schema_k8sio_api_core_v1_ConfigMap(ref common.ReferenceCallback) common.OpenAPIDefinition { 6314 return common.OpenAPIDefinition{ 6315 Schema: spec.Schema{ 6316 SchemaProps: spec.SchemaProps{ 6317 Description: "ConfigMap holds configuration data for pods to consume.", 6318 Type: []string{"object"}, 6319 Properties: map[string]spec.Schema{ 6320 "kind": { 6321 SchemaProps: spec.SchemaProps{ 6322 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 6323 Type: []string{"string"}, 6324 Format: "", 6325 }, 6326 }, 6327 "apiVersion": { 6328 SchemaProps: spec.SchemaProps{ 6329 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 6330 Type: []string{"string"}, 6331 Format: "", 6332 }, 6333 }, 6334 "metadata": { 6335 SchemaProps: spec.SchemaProps{ 6336 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 6337 Default: map[string]interface{}{}, 6338 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 6339 }, 6340 }, 6341 "immutable": { 6342 SchemaProps: spec.SchemaProps{ 6343 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.", 6344 Type: []string{"boolean"}, 6345 Format: "", 6346 }, 6347 }, 6348 "data": { 6349 SchemaProps: spec.SchemaProps{ 6350 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.", 6351 Type: []string{"object"}, 6352 AdditionalProperties: &spec.SchemaOrBool{ 6353 Allows: true, 6354 Schema: &spec.Schema{ 6355 SchemaProps: spec.SchemaProps{ 6356 Default: "", 6357 Type: []string{"string"}, 6358 Format: "", 6359 }, 6360 }, 6361 }, 6362 }, 6363 }, 6364 "binaryData": { 6365 SchemaProps: spec.SchemaProps{ 6366 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.", 6367 Type: []string{"object"}, 6368 AdditionalProperties: &spec.SchemaOrBool{ 6369 Allows: true, 6370 Schema: &spec.Schema{ 6371 SchemaProps: spec.SchemaProps{ 6372 Type: []string{"string"}, 6373 Format: "byte", 6374 }, 6375 }, 6376 }, 6377 }, 6378 }, 6379 }, 6380 }, 6381 }, 6382 Dependencies: []string{ 6383 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 6384 } 6385 } 6386 6387 func schema_k8sio_api_core_v1_ConfigMapEnvSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 6388 return common.OpenAPIDefinition{ 6389 Schema: spec.Schema{ 6390 SchemaProps: spec.SchemaProps{ 6391 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.", 6392 Type: []string{"object"}, 6393 Properties: map[string]spec.Schema{ 6394 "name": { 6395 SchemaProps: spec.SchemaProps{ 6396 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", 6397 Type: []string{"string"}, 6398 Format: "", 6399 }, 6400 }, 6401 "optional": { 6402 SchemaProps: spec.SchemaProps{ 6403 Description: "Specify whether the ConfigMap must be defined", 6404 Type: []string{"boolean"}, 6405 Format: "", 6406 }, 6407 }, 6408 }, 6409 }, 6410 }, 6411 } 6412 } 6413 6414 func schema_k8sio_api_core_v1_ConfigMapKeySelector(ref common.ReferenceCallback) common.OpenAPIDefinition { 6415 return common.OpenAPIDefinition{ 6416 Schema: spec.Schema{ 6417 SchemaProps: spec.SchemaProps{ 6418 Description: "Selects a key from a ConfigMap.", 6419 Type: []string{"object"}, 6420 Properties: map[string]spec.Schema{ 6421 "name": { 6422 SchemaProps: spec.SchemaProps{ 6423 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", 6424 Type: []string{"string"}, 6425 Format: "", 6426 }, 6427 }, 6428 "key": { 6429 SchemaProps: spec.SchemaProps{ 6430 Description: "The key to select.", 6431 Default: "", 6432 Type: []string{"string"}, 6433 Format: "", 6434 }, 6435 }, 6436 "optional": { 6437 SchemaProps: spec.SchemaProps{ 6438 Description: "Specify whether the ConfigMap or its key must be defined", 6439 Type: []string{"boolean"}, 6440 Format: "", 6441 }, 6442 }, 6443 }, 6444 Required: []string{"key"}, 6445 }, 6446 VendorExtensible: spec.VendorExtensible{ 6447 Extensions: spec.Extensions{ 6448 "x-kubernetes-map-type": "atomic", 6449 }, 6450 }, 6451 }, 6452 } 6453 } 6454 6455 func schema_k8sio_api_core_v1_ConfigMapList(ref common.ReferenceCallback) common.OpenAPIDefinition { 6456 return common.OpenAPIDefinition{ 6457 Schema: spec.Schema{ 6458 SchemaProps: spec.SchemaProps{ 6459 Description: "ConfigMapList is a resource containing a list of ConfigMap objects.", 6460 Type: []string{"object"}, 6461 Properties: map[string]spec.Schema{ 6462 "kind": { 6463 SchemaProps: spec.SchemaProps{ 6464 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 6465 Type: []string{"string"}, 6466 Format: "", 6467 }, 6468 }, 6469 "apiVersion": { 6470 SchemaProps: spec.SchemaProps{ 6471 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 6472 Type: []string{"string"}, 6473 Format: "", 6474 }, 6475 }, 6476 "metadata": { 6477 SchemaProps: spec.SchemaProps{ 6478 Description: "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 6479 Default: map[string]interface{}{}, 6480 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 6481 }, 6482 }, 6483 "items": { 6484 SchemaProps: spec.SchemaProps{ 6485 Description: "Items is the list of ConfigMaps.", 6486 Type: []string{"array"}, 6487 Items: &spec.SchemaOrArray{ 6488 Schema: &spec.Schema{ 6489 SchemaProps: spec.SchemaProps{ 6490 Default: map[string]interface{}{}, 6491 Ref: ref("k8s.io/api/core/v1.ConfigMap"), 6492 }, 6493 }, 6494 }, 6495 }, 6496 }, 6497 }, 6498 Required: []string{"items"}, 6499 }, 6500 }, 6501 Dependencies: []string{ 6502 "k8s.io/api/core/v1.ConfigMap", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 6503 } 6504 } 6505 6506 func schema_k8sio_api_core_v1_ConfigMapNodeConfigSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 6507 return common.OpenAPIDefinition{ 6508 Schema: spec.Schema{ 6509 SchemaProps: spec.SchemaProps{ 6510 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", 6511 Type: []string{"object"}, 6512 Properties: map[string]spec.Schema{ 6513 "namespace": { 6514 SchemaProps: spec.SchemaProps{ 6515 Description: "Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases.", 6516 Default: "", 6517 Type: []string{"string"}, 6518 Format: "", 6519 }, 6520 }, 6521 "name": { 6522 SchemaProps: spec.SchemaProps{ 6523 Description: "Name is the metadata.name of the referenced ConfigMap. This field is required in all cases.", 6524 Default: "", 6525 Type: []string{"string"}, 6526 Format: "", 6527 }, 6528 }, 6529 "uid": { 6530 SchemaProps: spec.SchemaProps{ 6531 Description: "UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.", 6532 Type: []string{"string"}, 6533 Format: "", 6534 }, 6535 }, 6536 "resourceVersion": { 6537 SchemaProps: spec.SchemaProps{ 6538 Description: "ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.", 6539 Type: []string{"string"}, 6540 Format: "", 6541 }, 6542 }, 6543 "kubeletConfigKey": { 6544 SchemaProps: spec.SchemaProps{ 6545 Description: "KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases.", 6546 Default: "", 6547 Type: []string{"string"}, 6548 Format: "", 6549 }, 6550 }, 6551 }, 6552 Required: []string{"namespace", "name", "kubeletConfigKey"}, 6553 }, 6554 }, 6555 } 6556 } 6557 6558 func schema_k8sio_api_core_v1_ConfigMapProjection(ref common.ReferenceCallback) common.OpenAPIDefinition { 6559 return common.OpenAPIDefinition{ 6560 Schema: spec.Schema{ 6561 SchemaProps: spec.SchemaProps{ 6562 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.", 6563 Type: []string{"object"}, 6564 Properties: map[string]spec.Schema{ 6565 "name": { 6566 SchemaProps: spec.SchemaProps{ 6567 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", 6568 Type: []string{"string"}, 6569 Format: "", 6570 }, 6571 }, 6572 "items": { 6573 SchemaProps: spec.SchemaProps{ 6574 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 '..'.", 6575 Type: []string{"array"}, 6576 Items: &spec.SchemaOrArray{ 6577 Schema: &spec.Schema{ 6578 SchemaProps: spec.SchemaProps{ 6579 Default: map[string]interface{}{}, 6580 Ref: ref("k8s.io/api/core/v1.KeyToPath"), 6581 }, 6582 }, 6583 }, 6584 }, 6585 }, 6586 "optional": { 6587 SchemaProps: spec.SchemaProps{ 6588 Description: "optional specify whether the ConfigMap or its keys must be defined", 6589 Type: []string{"boolean"}, 6590 Format: "", 6591 }, 6592 }, 6593 }, 6594 }, 6595 }, 6596 Dependencies: []string{ 6597 "k8s.io/api/core/v1.KeyToPath"}, 6598 } 6599 } 6600 6601 func schema_k8sio_api_core_v1_ConfigMapVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 6602 return common.OpenAPIDefinition{ 6603 Schema: spec.Schema{ 6604 SchemaProps: spec.SchemaProps{ 6605 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.", 6606 Type: []string{"object"}, 6607 Properties: map[string]spec.Schema{ 6608 "name": { 6609 SchemaProps: spec.SchemaProps{ 6610 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", 6611 Type: []string{"string"}, 6612 Format: "", 6613 }, 6614 }, 6615 "items": { 6616 SchemaProps: spec.SchemaProps{ 6617 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 '..'.", 6618 Type: []string{"array"}, 6619 Items: &spec.SchemaOrArray{ 6620 Schema: &spec.Schema{ 6621 SchemaProps: spec.SchemaProps{ 6622 Default: map[string]interface{}{}, 6623 Ref: ref("k8s.io/api/core/v1.KeyToPath"), 6624 }, 6625 }, 6626 }, 6627 }, 6628 }, 6629 "defaultMode": { 6630 SchemaProps: spec.SchemaProps{ 6631 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.", 6632 Type: []string{"integer"}, 6633 Format: "int32", 6634 }, 6635 }, 6636 "optional": { 6637 SchemaProps: spec.SchemaProps{ 6638 Description: "optional specify whether the ConfigMap or its keys must be defined", 6639 Type: []string{"boolean"}, 6640 Format: "", 6641 }, 6642 }, 6643 }, 6644 }, 6645 }, 6646 Dependencies: []string{ 6647 "k8s.io/api/core/v1.KeyToPath"}, 6648 } 6649 } 6650 6651 func schema_k8sio_api_core_v1_Container(ref common.ReferenceCallback) common.OpenAPIDefinition { 6652 return common.OpenAPIDefinition{ 6653 Schema: spec.Schema{ 6654 SchemaProps: spec.SchemaProps{ 6655 Description: "A single application container that you want to run within a pod.", 6656 Type: []string{"object"}, 6657 Properties: map[string]spec.Schema{ 6658 "name": { 6659 SchemaProps: spec.SchemaProps{ 6660 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.", 6661 Default: "", 6662 Type: []string{"string"}, 6663 Format: "", 6664 }, 6665 }, 6666 "image": { 6667 SchemaProps: spec.SchemaProps{ 6668 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.", 6669 Type: []string{"string"}, 6670 Format: "", 6671 }, 6672 }, 6673 "command": { 6674 SchemaProps: spec.SchemaProps{ 6675 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", 6676 Type: []string{"array"}, 6677 Items: &spec.SchemaOrArray{ 6678 Schema: &spec.Schema{ 6679 SchemaProps: spec.SchemaProps{ 6680 Default: "", 6681 Type: []string{"string"}, 6682 Format: "", 6683 }, 6684 }, 6685 }, 6686 }, 6687 }, 6688 "args": { 6689 SchemaProps: spec.SchemaProps{ 6690 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", 6691 Type: []string{"array"}, 6692 Items: &spec.SchemaOrArray{ 6693 Schema: &spec.Schema{ 6694 SchemaProps: spec.SchemaProps{ 6695 Default: "", 6696 Type: []string{"string"}, 6697 Format: "", 6698 }, 6699 }, 6700 }, 6701 }, 6702 }, 6703 "workingDir": { 6704 SchemaProps: spec.SchemaProps{ 6705 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.", 6706 Type: []string{"string"}, 6707 Format: "", 6708 }, 6709 }, 6710 "ports": { 6711 VendorExtensible: spec.VendorExtensible{ 6712 Extensions: spec.Extensions{ 6713 "x-kubernetes-list-map-keys": []interface{}{ 6714 "containerPort", 6715 "protocol", 6716 }, 6717 "x-kubernetes-list-type": "map", 6718 "x-kubernetes-patch-merge-key": "containerPort", 6719 "x-kubernetes-patch-strategy": "merge", 6720 }, 6721 }, 6722 SchemaProps: spec.SchemaProps{ 6723 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.", 6724 Type: []string{"array"}, 6725 Items: &spec.SchemaOrArray{ 6726 Schema: &spec.Schema{ 6727 SchemaProps: spec.SchemaProps{ 6728 Default: map[string]interface{}{}, 6729 Ref: ref("k8s.io/api/core/v1.ContainerPort"), 6730 }, 6731 }, 6732 }, 6733 }, 6734 }, 6735 "envFrom": { 6736 SchemaProps: spec.SchemaProps{ 6737 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.", 6738 Type: []string{"array"}, 6739 Items: &spec.SchemaOrArray{ 6740 Schema: &spec.Schema{ 6741 SchemaProps: spec.SchemaProps{ 6742 Default: map[string]interface{}{}, 6743 Ref: ref("k8s.io/api/core/v1.EnvFromSource"), 6744 }, 6745 }, 6746 }, 6747 }, 6748 }, 6749 "env": { 6750 VendorExtensible: spec.VendorExtensible{ 6751 Extensions: spec.Extensions{ 6752 "x-kubernetes-patch-merge-key": "name", 6753 "x-kubernetes-patch-strategy": "merge", 6754 }, 6755 }, 6756 SchemaProps: spec.SchemaProps{ 6757 Description: "List of environment variables to set in the container. Cannot be updated.", 6758 Type: []string{"array"}, 6759 Items: &spec.SchemaOrArray{ 6760 Schema: &spec.Schema{ 6761 SchemaProps: spec.SchemaProps{ 6762 Default: map[string]interface{}{}, 6763 Ref: ref("k8s.io/api/core/v1.EnvVar"), 6764 }, 6765 }, 6766 }, 6767 }, 6768 }, 6769 "resources": { 6770 SchemaProps: spec.SchemaProps{ 6771 Description: "Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", 6772 Default: map[string]interface{}{}, 6773 Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), 6774 }, 6775 }, 6776 "resizePolicy": { 6777 VendorExtensible: spec.VendorExtensible{ 6778 Extensions: spec.Extensions{ 6779 "x-kubernetes-list-type": "atomic", 6780 }, 6781 }, 6782 SchemaProps: spec.SchemaProps{ 6783 Description: "Resources resize policy for the container.", 6784 Type: []string{"array"}, 6785 Items: &spec.SchemaOrArray{ 6786 Schema: &spec.Schema{ 6787 SchemaProps: spec.SchemaProps{ 6788 Default: map[string]interface{}{}, 6789 Ref: ref("k8s.io/api/core/v1.ContainerResizePolicy"), 6790 }, 6791 }, 6792 }, 6793 }, 6794 }, 6795 "volumeMounts": { 6796 VendorExtensible: spec.VendorExtensible{ 6797 Extensions: spec.Extensions{ 6798 "x-kubernetes-patch-merge-key": "mountPath", 6799 "x-kubernetes-patch-strategy": "merge", 6800 }, 6801 }, 6802 SchemaProps: spec.SchemaProps{ 6803 Description: "Pod volumes to mount into the container's filesystem. Cannot be updated.", 6804 Type: []string{"array"}, 6805 Items: &spec.SchemaOrArray{ 6806 Schema: &spec.Schema{ 6807 SchemaProps: spec.SchemaProps{ 6808 Default: map[string]interface{}{}, 6809 Ref: ref("k8s.io/api/core/v1.VolumeMount"), 6810 }, 6811 }, 6812 }, 6813 }, 6814 }, 6815 "volumeDevices": { 6816 VendorExtensible: spec.VendorExtensible{ 6817 Extensions: spec.Extensions{ 6818 "x-kubernetes-patch-merge-key": "devicePath", 6819 "x-kubernetes-patch-strategy": "merge", 6820 }, 6821 }, 6822 SchemaProps: spec.SchemaProps{ 6823 Description: "volumeDevices is the list of block devices to be used by the container.", 6824 Type: []string{"array"}, 6825 Items: &spec.SchemaOrArray{ 6826 Schema: &spec.Schema{ 6827 SchemaProps: spec.SchemaProps{ 6828 Default: map[string]interface{}{}, 6829 Ref: ref("k8s.io/api/core/v1.VolumeDevice"), 6830 }, 6831 }, 6832 }, 6833 }, 6834 }, 6835 "livenessProbe": { 6836 SchemaProps: spec.SchemaProps{ 6837 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", 6838 Ref: ref("k8s.io/api/core/v1.Probe"), 6839 }, 6840 }, 6841 "readinessProbe": { 6842 SchemaProps: spec.SchemaProps{ 6843 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", 6844 Ref: ref("k8s.io/api/core/v1.Probe"), 6845 }, 6846 }, 6847 "startupProbe": { 6848 SchemaProps: spec.SchemaProps{ 6849 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", 6850 Ref: ref("k8s.io/api/core/v1.Probe"), 6851 }, 6852 }, 6853 "lifecycle": { 6854 SchemaProps: spec.SchemaProps{ 6855 Description: "Actions that the management system should take in response to container lifecycle events. Cannot be updated.", 6856 Ref: ref("k8s.io/api/core/v1.Lifecycle"), 6857 }, 6858 }, 6859 "terminationMessagePath": { 6860 SchemaProps: spec.SchemaProps{ 6861 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.", 6862 Type: []string{"string"}, 6863 Format: "", 6864 }, 6865 }, 6866 "terminationMessagePolicy": { 6867 SchemaProps: spec.SchemaProps{ 6868 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.", 6869 Type: []string{"string"}, 6870 Format: "", 6871 Enum: []interface{}{"FallbackToLogsOnError", "File"}, 6872 }, 6873 }, 6874 "imagePullPolicy": { 6875 SchemaProps: spec.SchemaProps{ 6876 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", 6877 Type: []string{"string"}, 6878 Format: "", 6879 Enum: []interface{}{"Always", "IfNotPresent", "Never"}, 6880 }, 6881 }, 6882 "securityContext": { 6883 SchemaProps: spec.SchemaProps{ 6884 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/", 6885 Ref: ref("k8s.io/api/core/v1.SecurityContext"), 6886 }, 6887 }, 6888 "stdin": { 6889 SchemaProps: spec.SchemaProps{ 6890 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.", 6891 Type: []string{"boolean"}, 6892 Format: "", 6893 }, 6894 }, 6895 "stdinOnce": { 6896 SchemaProps: spec.SchemaProps{ 6897 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", 6898 Type: []string{"boolean"}, 6899 Format: "", 6900 }, 6901 }, 6902 "tty": { 6903 SchemaProps: spec.SchemaProps{ 6904 Description: "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", 6905 Type: []string{"boolean"}, 6906 Format: "", 6907 }, 6908 }, 6909 }, 6910 Required: []string{"name"}, 6911 }, 6912 }, 6913 Dependencies: []string{ 6914 "k8s.io/api/core/v1.ContainerPort", "k8s.io/api/core/v1.ContainerResizePolicy", "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"}, 6915 } 6916 } 6917 6918 func schema_k8sio_api_core_v1_ContainerImage(ref common.ReferenceCallback) common.OpenAPIDefinition { 6919 return common.OpenAPIDefinition{ 6920 Schema: spec.Schema{ 6921 SchemaProps: spec.SchemaProps{ 6922 Description: "Describe a container image", 6923 Type: []string{"object"}, 6924 Properties: map[string]spec.Schema{ 6925 "names": { 6926 SchemaProps: spec.SchemaProps{ 6927 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\"]", 6928 Type: []string{"array"}, 6929 Items: &spec.SchemaOrArray{ 6930 Schema: &spec.Schema{ 6931 SchemaProps: spec.SchemaProps{ 6932 Default: "", 6933 Type: []string{"string"}, 6934 Format: "", 6935 }, 6936 }, 6937 }, 6938 }, 6939 }, 6940 "sizeBytes": { 6941 SchemaProps: spec.SchemaProps{ 6942 Description: "The size of the image in bytes.", 6943 Type: []string{"integer"}, 6944 Format: "int64", 6945 }, 6946 }, 6947 }, 6948 }, 6949 }, 6950 } 6951 } 6952 6953 func schema_k8sio_api_core_v1_ContainerPort(ref common.ReferenceCallback) common.OpenAPIDefinition { 6954 return common.OpenAPIDefinition{ 6955 Schema: spec.Schema{ 6956 SchemaProps: spec.SchemaProps{ 6957 Description: "ContainerPort represents a network port in a single container.", 6958 Type: []string{"object"}, 6959 Properties: map[string]spec.Schema{ 6960 "name": { 6961 SchemaProps: spec.SchemaProps{ 6962 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.", 6963 Type: []string{"string"}, 6964 Format: "", 6965 }, 6966 }, 6967 "hostPort": { 6968 SchemaProps: spec.SchemaProps{ 6969 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.", 6970 Type: []string{"integer"}, 6971 Format: "int32", 6972 }, 6973 }, 6974 "containerPort": { 6975 SchemaProps: spec.SchemaProps{ 6976 Description: "Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.", 6977 Default: 0, 6978 Type: []string{"integer"}, 6979 Format: "int32", 6980 }, 6981 }, 6982 "protocol": { 6983 SchemaProps: spec.SchemaProps{ 6984 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.", 6985 Default: "TCP", 6986 Type: []string{"string"}, 6987 Format: "", 6988 Enum: []interface{}{"SCTP", "TCP", "UDP"}, 6989 }, 6990 }, 6991 "hostIP": { 6992 SchemaProps: spec.SchemaProps{ 6993 Description: "What host IP to bind the external port to.", 6994 Type: []string{"string"}, 6995 Format: "", 6996 }, 6997 }, 6998 }, 6999 Required: []string{"containerPort"}, 7000 }, 7001 }, 7002 } 7003 } 7004 7005 func schema_k8sio_api_core_v1_ContainerResizePolicy(ref common.ReferenceCallback) common.OpenAPIDefinition { 7006 return common.OpenAPIDefinition{ 7007 Schema: spec.Schema{ 7008 SchemaProps: spec.SchemaProps{ 7009 Description: "ContainerResizePolicy represents resource resize policy for the container.", 7010 Type: []string{"object"}, 7011 Properties: map[string]spec.Schema{ 7012 "resourceName": { 7013 SchemaProps: spec.SchemaProps{ 7014 Description: "Name of the resource to which this resource resize policy applies. Supported values: cpu, memory.", 7015 Default: "", 7016 Type: []string{"string"}, 7017 Format: "", 7018 }, 7019 }, 7020 "restartPolicy": { 7021 SchemaProps: spec.SchemaProps{ 7022 Description: "Restart policy to apply when specified resource is resized. If not specified, it defaults to NotRequired.", 7023 Default: "", 7024 Type: []string{"string"}, 7025 Format: "", 7026 }, 7027 }, 7028 }, 7029 Required: []string{"resourceName", "restartPolicy"}, 7030 }, 7031 }, 7032 } 7033 } 7034 7035 func schema_k8sio_api_core_v1_ContainerState(ref common.ReferenceCallback) common.OpenAPIDefinition { 7036 return common.OpenAPIDefinition{ 7037 Schema: spec.Schema{ 7038 SchemaProps: spec.SchemaProps{ 7039 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.", 7040 Type: []string{"object"}, 7041 Properties: map[string]spec.Schema{ 7042 "waiting": { 7043 SchemaProps: spec.SchemaProps{ 7044 Description: "Details about a waiting container", 7045 Ref: ref("k8s.io/api/core/v1.ContainerStateWaiting"), 7046 }, 7047 }, 7048 "running": { 7049 SchemaProps: spec.SchemaProps{ 7050 Description: "Details about a running container", 7051 Ref: ref("k8s.io/api/core/v1.ContainerStateRunning"), 7052 }, 7053 }, 7054 "terminated": { 7055 SchemaProps: spec.SchemaProps{ 7056 Description: "Details about a terminated container", 7057 Ref: ref("k8s.io/api/core/v1.ContainerStateTerminated"), 7058 }, 7059 }, 7060 }, 7061 }, 7062 }, 7063 Dependencies: []string{ 7064 "k8s.io/api/core/v1.ContainerStateRunning", "k8s.io/api/core/v1.ContainerStateTerminated", "k8s.io/api/core/v1.ContainerStateWaiting"}, 7065 } 7066 } 7067 7068 func schema_k8sio_api_core_v1_ContainerStateRunning(ref common.ReferenceCallback) common.OpenAPIDefinition { 7069 return common.OpenAPIDefinition{ 7070 Schema: spec.Schema{ 7071 SchemaProps: spec.SchemaProps{ 7072 Description: "ContainerStateRunning is a running state of a container.", 7073 Type: []string{"object"}, 7074 Properties: map[string]spec.Schema{ 7075 "startedAt": { 7076 SchemaProps: spec.SchemaProps{ 7077 Description: "Time at which the container was last (re-)started", 7078 Default: map[string]interface{}{}, 7079 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 7080 }, 7081 }, 7082 }, 7083 }, 7084 }, 7085 Dependencies: []string{ 7086 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 7087 } 7088 } 7089 7090 func schema_k8sio_api_core_v1_ContainerStateTerminated(ref common.ReferenceCallback) common.OpenAPIDefinition { 7091 return common.OpenAPIDefinition{ 7092 Schema: spec.Schema{ 7093 SchemaProps: spec.SchemaProps{ 7094 Description: "ContainerStateTerminated is a terminated state of a container.", 7095 Type: []string{"object"}, 7096 Properties: map[string]spec.Schema{ 7097 "exitCode": { 7098 SchemaProps: spec.SchemaProps{ 7099 Description: "Exit status from the last termination of the container", 7100 Default: 0, 7101 Type: []string{"integer"}, 7102 Format: "int32", 7103 }, 7104 }, 7105 "signal": { 7106 SchemaProps: spec.SchemaProps{ 7107 Description: "Signal from the last termination of the container", 7108 Type: []string{"integer"}, 7109 Format: "int32", 7110 }, 7111 }, 7112 "reason": { 7113 SchemaProps: spec.SchemaProps{ 7114 Description: "(brief) reason from the last termination of the container", 7115 Type: []string{"string"}, 7116 Format: "", 7117 }, 7118 }, 7119 "message": { 7120 SchemaProps: spec.SchemaProps{ 7121 Description: "Message regarding the last termination of the container", 7122 Type: []string{"string"}, 7123 Format: "", 7124 }, 7125 }, 7126 "startedAt": { 7127 SchemaProps: spec.SchemaProps{ 7128 Description: "Time at which previous execution of the container started", 7129 Default: map[string]interface{}{}, 7130 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 7131 }, 7132 }, 7133 "finishedAt": { 7134 SchemaProps: spec.SchemaProps{ 7135 Description: "Time at which the container last terminated", 7136 Default: map[string]interface{}{}, 7137 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 7138 }, 7139 }, 7140 "containerID": { 7141 SchemaProps: spec.SchemaProps{ 7142 Description: "Container's ID in the format '<type>://<container_id>'", 7143 Type: []string{"string"}, 7144 Format: "", 7145 }, 7146 }, 7147 }, 7148 Required: []string{"exitCode"}, 7149 }, 7150 }, 7151 Dependencies: []string{ 7152 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 7153 } 7154 } 7155 7156 func schema_k8sio_api_core_v1_ContainerStateWaiting(ref common.ReferenceCallback) common.OpenAPIDefinition { 7157 return common.OpenAPIDefinition{ 7158 Schema: spec.Schema{ 7159 SchemaProps: spec.SchemaProps{ 7160 Description: "ContainerStateWaiting is a waiting state of a container.", 7161 Type: []string{"object"}, 7162 Properties: map[string]spec.Schema{ 7163 "reason": { 7164 SchemaProps: spec.SchemaProps{ 7165 Description: "(brief) reason the container is not yet running.", 7166 Type: []string{"string"}, 7167 Format: "", 7168 }, 7169 }, 7170 "message": { 7171 SchemaProps: spec.SchemaProps{ 7172 Description: "Message regarding why the container is not yet running.", 7173 Type: []string{"string"}, 7174 Format: "", 7175 }, 7176 }, 7177 }, 7178 }, 7179 }, 7180 } 7181 } 7182 7183 func schema_k8sio_api_core_v1_ContainerStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 7184 return common.OpenAPIDefinition{ 7185 Schema: spec.Schema{ 7186 SchemaProps: spec.SchemaProps{ 7187 Description: "ContainerStatus contains details for the current status of this container.", 7188 Type: []string{"object"}, 7189 Properties: map[string]spec.Schema{ 7190 "name": { 7191 SchemaProps: spec.SchemaProps{ 7192 Description: "Name is a DNS_LABEL representing the unique name of the container. Each container in a pod must have a unique name across all container types. Cannot be updated.", 7193 Default: "", 7194 Type: []string{"string"}, 7195 Format: "", 7196 }, 7197 }, 7198 "state": { 7199 SchemaProps: spec.SchemaProps{ 7200 Description: "State holds details about the container's current condition.", 7201 Default: map[string]interface{}{}, 7202 Ref: ref("k8s.io/api/core/v1.ContainerState"), 7203 }, 7204 }, 7205 "lastState": { 7206 SchemaProps: spec.SchemaProps{ 7207 Description: "LastTerminationState holds the last termination state of the container to help debug container crashes and restarts. This field is not populated if the container is still running and RestartCount is 0.", 7208 Default: map[string]interface{}{}, 7209 Ref: ref("k8s.io/api/core/v1.ContainerState"), 7210 }, 7211 }, 7212 "ready": { 7213 SchemaProps: spec.SchemaProps{ 7214 Description: "Ready specifies whether the container is currently passing its readiness check. The value will change as readiness probes keep executing. If no readiness probes are specified, this field defaults to true once the container is fully started (see Started field).\n\nThe value is typically used to determine whether a container is ready to accept traffic.", 7215 Default: false, 7216 Type: []string{"boolean"}, 7217 Format: "", 7218 }, 7219 }, 7220 "restartCount": { 7221 SchemaProps: spec.SchemaProps{ 7222 Description: "RestartCount holds the number of times the container has been restarted. Kubelet makes an effort to always increment the value, but there are cases when the state may be lost due to node restarts and then the value may be reset to 0. The value is never negative.", 7223 Default: 0, 7224 Type: []string{"integer"}, 7225 Format: "int32", 7226 }, 7227 }, 7228 "image": { 7229 SchemaProps: spec.SchemaProps{ 7230 Description: "Image is the name of container image that the container is running. The container image may not match the image used in the PodSpec, as it may have been resolved by the runtime. More info: https://kubernetes.io/docs/concepts/containers/images.", 7231 Default: "", 7232 Type: []string{"string"}, 7233 Format: "", 7234 }, 7235 }, 7236 "imageID": { 7237 SchemaProps: spec.SchemaProps{ 7238 Description: "ImageID is the image ID of the container's image. The image ID may not match the image ID of the image used in the PodSpec, as it may have been resolved by the runtime.", 7239 Default: "", 7240 Type: []string{"string"}, 7241 Format: "", 7242 }, 7243 }, 7244 "containerID": { 7245 SchemaProps: spec.SchemaProps{ 7246 Description: "ContainerID is the ID of the container in the format '<type>://<container_id>'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\").", 7247 Type: []string{"string"}, 7248 Format: "", 7249 }, 7250 }, 7251 "started": { 7252 SchemaProps: spec.SchemaProps{ 7253 Description: "Started indicates whether the container has finished its postStart lifecycle hook and passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. In both cases, startup probes will run again. Is always true when no startupProbe is defined and container is running and has passed the postStart lifecycle hook. The null value must be treated the same as false.", 7254 Type: []string{"boolean"}, 7255 Format: "", 7256 }, 7257 }, 7258 "allocatedResources": { 7259 SchemaProps: spec.SchemaProps{ 7260 Description: "AllocatedResources represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize.", 7261 Type: []string{"object"}, 7262 AdditionalProperties: &spec.SchemaOrBool{ 7263 Allows: true, 7264 Schema: &spec.Schema{ 7265 SchemaProps: spec.SchemaProps{ 7266 Default: map[string]interface{}{}, 7267 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 7268 }, 7269 }, 7270 }, 7271 }, 7272 }, 7273 "resources": { 7274 SchemaProps: spec.SchemaProps{ 7275 Description: "Resources represents the compute resource requests and limits that have been successfully enacted on the running container after it has been started or has been successfully resized.", 7276 Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), 7277 }, 7278 }, 7279 }, 7280 Required: []string{"name", "ready", "restartCount", "image", "imageID"}, 7281 }, 7282 }, 7283 Dependencies: []string{ 7284 "k8s.io/api/core/v1.ContainerState", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, 7285 } 7286 } 7287 7288 func schema_k8sio_api_core_v1_DaemonEndpoint(ref common.ReferenceCallback) common.OpenAPIDefinition { 7289 return common.OpenAPIDefinition{ 7290 Schema: spec.Schema{ 7291 SchemaProps: spec.SchemaProps{ 7292 Description: "DaemonEndpoint contains information about a single Daemon endpoint.", 7293 Type: []string{"object"}, 7294 Properties: map[string]spec.Schema{ 7295 "Port": { 7296 SchemaProps: spec.SchemaProps{ 7297 Description: "Port number of the given endpoint.", 7298 Default: 0, 7299 Type: []string{"integer"}, 7300 Format: "int32", 7301 }, 7302 }, 7303 }, 7304 Required: []string{"Port"}, 7305 }, 7306 }, 7307 } 7308 } 7309 7310 func schema_k8sio_api_core_v1_DownwardAPIProjection(ref common.ReferenceCallback) common.OpenAPIDefinition { 7311 return common.OpenAPIDefinition{ 7312 Schema: spec.Schema{ 7313 SchemaProps: spec.SchemaProps{ 7314 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.", 7315 Type: []string{"object"}, 7316 Properties: map[string]spec.Schema{ 7317 "items": { 7318 SchemaProps: spec.SchemaProps{ 7319 Description: "Items is a list of DownwardAPIVolume file", 7320 Type: []string{"array"}, 7321 Items: &spec.SchemaOrArray{ 7322 Schema: &spec.Schema{ 7323 SchemaProps: spec.SchemaProps{ 7324 Default: map[string]interface{}{}, 7325 Ref: ref("k8s.io/api/core/v1.DownwardAPIVolumeFile"), 7326 }, 7327 }, 7328 }, 7329 }, 7330 }, 7331 }, 7332 }, 7333 }, 7334 Dependencies: []string{ 7335 "k8s.io/api/core/v1.DownwardAPIVolumeFile"}, 7336 } 7337 } 7338 7339 func schema_k8sio_api_core_v1_DownwardAPIVolumeFile(ref common.ReferenceCallback) common.OpenAPIDefinition { 7340 return common.OpenAPIDefinition{ 7341 Schema: spec.Schema{ 7342 SchemaProps: spec.SchemaProps{ 7343 Description: "DownwardAPIVolumeFile represents information to create the file containing the pod field", 7344 Type: []string{"object"}, 7345 Properties: map[string]spec.Schema{ 7346 "path": { 7347 SchemaProps: spec.SchemaProps{ 7348 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 '..'", 7349 Default: "", 7350 Type: []string{"string"}, 7351 Format: "", 7352 }, 7353 }, 7354 "fieldRef": { 7355 SchemaProps: spec.SchemaProps{ 7356 Description: "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.", 7357 Ref: ref("k8s.io/api/core/v1.ObjectFieldSelector"), 7358 }, 7359 }, 7360 "resourceFieldRef": { 7361 SchemaProps: spec.SchemaProps{ 7362 Description: "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.", 7363 Ref: ref("k8s.io/api/core/v1.ResourceFieldSelector"), 7364 }, 7365 }, 7366 "mode": { 7367 SchemaProps: spec.SchemaProps{ 7368 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.", 7369 Type: []string{"integer"}, 7370 Format: "int32", 7371 }, 7372 }, 7373 }, 7374 Required: []string{"path"}, 7375 }, 7376 }, 7377 Dependencies: []string{ 7378 "k8s.io/api/core/v1.ObjectFieldSelector", "k8s.io/api/core/v1.ResourceFieldSelector"}, 7379 } 7380 } 7381 7382 func schema_k8sio_api_core_v1_DownwardAPIVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 7383 return common.OpenAPIDefinition{ 7384 Schema: spec.Schema{ 7385 SchemaProps: spec.SchemaProps{ 7386 Description: "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.", 7387 Type: []string{"object"}, 7388 Properties: map[string]spec.Schema{ 7389 "items": { 7390 SchemaProps: spec.SchemaProps{ 7391 Description: "Items is a list of downward API volume file", 7392 Type: []string{"array"}, 7393 Items: &spec.SchemaOrArray{ 7394 Schema: &spec.Schema{ 7395 SchemaProps: spec.SchemaProps{ 7396 Default: map[string]interface{}{}, 7397 Ref: ref("k8s.io/api/core/v1.DownwardAPIVolumeFile"), 7398 }, 7399 }, 7400 }, 7401 }, 7402 }, 7403 "defaultMode": { 7404 SchemaProps: spec.SchemaProps{ 7405 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.", 7406 Type: []string{"integer"}, 7407 Format: "int32", 7408 }, 7409 }, 7410 }, 7411 }, 7412 }, 7413 Dependencies: []string{ 7414 "k8s.io/api/core/v1.DownwardAPIVolumeFile"}, 7415 } 7416 } 7417 7418 func schema_k8sio_api_core_v1_EmptyDirVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 7419 return common.OpenAPIDefinition{ 7420 Schema: spec.Schema{ 7421 SchemaProps: spec.SchemaProps{ 7422 Description: "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.", 7423 Type: []string{"object"}, 7424 Properties: map[string]spec.Schema{ 7425 "medium": { 7426 SchemaProps: spec.SchemaProps{ 7427 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", 7428 Type: []string{"string"}, 7429 Format: "", 7430 }, 7431 }, 7432 "sizeLimit": { 7433 SchemaProps: spec.SchemaProps{ 7434 Description: "sizeLimit is the total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", 7435 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 7436 }, 7437 }, 7438 }, 7439 }, 7440 }, 7441 Dependencies: []string{ 7442 "k8s.io/apimachinery/pkg/api/resource.Quantity"}, 7443 } 7444 } 7445 7446 func schema_k8sio_api_core_v1_EndpointAddress(ref common.ReferenceCallback) common.OpenAPIDefinition { 7447 return common.OpenAPIDefinition{ 7448 Schema: spec.Schema{ 7449 SchemaProps: spec.SchemaProps{ 7450 Description: "EndpointAddress is a tuple that describes single IP address.", 7451 Type: []string{"object"}, 7452 Properties: map[string]spec.Schema{ 7453 "ip": { 7454 SchemaProps: spec.SchemaProps{ 7455 Description: "The IP of this endpoint. May not be loopback (127.0.0.0/8 or ::1), link-local (169.254.0.0/16 or fe80::/10), or link-local multicast (224.0.0.0/24 or ff02::/16).", 7456 Default: "", 7457 Type: []string{"string"}, 7458 Format: "", 7459 }, 7460 }, 7461 "hostname": { 7462 SchemaProps: spec.SchemaProps{ 7463 Description: "The Hostname of this endpoint", 7464 Type: []string{"string"}, 7465 Format: "", 7466 }, 7467 }, 7468 "nodeName": { 7469 SchemaProps: spec.SchemaProps{ 7470 Description: "Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.", 7471 Type: []string{"string"}, 7472 Format: "", 7473 }, 7474 }, 7475 "targetRef": { 7476 SchemaProps: spec.SchemaProps{ 7477 Description: "Reference to object providing the endpoint.", 7478 Ref: ref("k8s.io/api/core/v1.ObjectReference"), 7479 }, 7480 }, 7481 }, 7482 Required: []string{"ip"}, 7483 }, 7484 VendorExtensible: spec.VendorExtensible{ 7485 Extensions: spec.Extensions{ 7486 "x-kubernetes-map-type": "atomic", 7487 }, 7488 }, 7489 }, 7490 Dependencies: []string{ 7491 "k8s.io/api/core/v1.ObjectReference"}, 7492 } 7493 } 7494 7495 func schema_k8sio_api_core_v1_EndpointPort(ref common.ReferenceCallback) common.OpenAPIDefinition { 7496 return common.OpenAPIDefinition{ 7497 Schema: spec.Schema{ 7498 SchemaProps: spec.SchemaProps{ 7499 Description: "EndpointPort is a tuple that describes a single port.", 7500 Type: []string{"object"}, 7501 Properties: map[string]spec.Schema{ 7502 "name": { 7503 SchemaProps: spec.SchemaProps{ 7504 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.", 7505 Type: []string{"string"}, 7506 Format: "", 7507 }, 7508 }, 7509 "port": { 7510 SchemaProps: spec.SchemaProps{ 7511 Description: "The port number of the endpoint.", 7512 Default: 0, 7513 Type: []string{"integer"}, 7514 Format: "int32", 7515 }, 7516 }, 7517 "protocol": { 7518 SchemaProps: spec.SchemaProps{ 7519 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.", 7520 Type: []string{"string"}, 7521 Format: "", 7522 Enum: []interface{}{"SCTP", "TCP", "UDP"}, 7523 }, 7524 }, 7525 "appProtocol": { 7526 SchemaProps: spec.SchemaProps{ 7527 Description: "The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either:\n\n* Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names).\n\n* Kubernetes-defined prefixed names:\n * 'kubernetes.io/h2c' - HTTP/2 over cleartext as described in https://www.rfc-editor.org/rfc/rfc7540\n\n* Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.", 7528 Type: []string{"string"}, 7529 Format: "", 7530 }, 7531 }, 7532 }, 7533 Required: []string{"port"}, 7534 }, 7535 VendorExtensible: spec.VendorExtensible{ 7536 Extensions: spec.Extensions{ 7537 "x-kubernetes-map-type": "atomic", 7538 }, 7539 }, 7540 }, 7541 } 7542 } 7543 7544 func schema_k8sio_api_core_v1_EndpointSubset(ref common.ReferenceCallback) common.OpenAPIDefinition { 7545 return common.OpenAPIDefinition{ 7546 Schema: spec.Schema{ 7547 SchemaProps: spec.SchemaProps{ 7548 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 ]", 7549 Type: []string{"object"}, 7550 Properties: map[string]spec.Schema{ 7551 "addresses": { 7552 SchemaProps: spec.SchemaProps{ 7553 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.", 7554 Type: []string{"array"}, 7555 Items: &spec.SchemaOrArray{ 7556 Schema: &spec.Schema{ 7557 SchemaProps: spec.SchemaProps{ 7558 Default: map[string]interface{}{}, 7559 Ref: ref("k8s.io/api/core/v1.EndpointAddress"), 7560 }, 7561 }, 7562 }, 7563 }, 7564 }, 7565 "notReadyAddresses": { 7566 SchemaProps: spec.SchemaProps{ 7567 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.", 7568 Type: []string{"array"}, 7569 Items: &spec.SchemaOrArray{ 7570 Schema: &spec.Schema{ 7571 SchemaProps: spec.SchemaProps{ 7572 Default: map[string]interface{}{}, 7573 Ref: ref("k8s.io/api/core/v1.EndpointAddress"), 7574 }, 7575 }, 7576 }, 7577 }, 7578 }, 7579 "ports": { 7580 SchemaProps: spec.SchemaProps{ 7581 Description: "Port numbers available on the related IP addresses.", 7582 Type: []string{"array"}, 7583 Items: &spec.SchemaOrArray{ 7584 Schema: &spec.Schema{ 7585 SchemaProps: spec.SchemaProps{ 7586 Default: map[string]interface{}{}, 7587 Ref: ref("k8s.io/api/core/v1.EndpointPort"), 7588 }, 7589 }, 7590 }, 7591 }, 7592 }, 7593 }, 7594 }, 7595 }, 7596 Dependencies: []string{ 7597 "k8s.io/api/core/v1.EndpointAddress", "k8s.io/api/core/v1.EndpointPort"}, 7598 } 7599 } 7600 7601 func schema_k8sio_api_core_v1_Endpoints(ref common.ReferenceCallback) common.OpenAPIDefinition { 7602 return common.OpenAPIDefinition{ 7603 Schema: spec.Schema{ 7604 SchemaProps: spec.SchemaProps{ 7605 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]", 7606 Type: []string{"object"}, 7607 Properties: map[string]spec.Schema{ 7608 "kind": { 7609 SchemaProps: spec.SchemaProps{ 7610 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 7611 Type: []string{"string"}, 7612 Format: "", 7613 }, 7614 }, 7615 "apiVersion": { 7616 SchemaProps: spec.SchemaProps{ 7617 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 7618 Type: []string{"string"}, 7619 Format: "", 7620 }, 7621 }, 7622 "metadata": { 7623 SchemaProps: spec.SchemaProps{ 7624 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 7625 Default: map[string]interface{}{}, 7626 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 7627 }, 7628 }, 7629 "subsets": { 7630 SchemaProps: spec.SchemaProps{ 7631 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.", 7632 Type: []string{"array"}, 7633 Items: &spec.SchemaOrArray{ 7634 Schema: &spec.Schema{ 7635 SchemaProps: spec.SchemaProps{ 7636 Default: map[string]interface{}{}, 7637 Ref: ref("k8s.io/api/core/v1.EndpointSubset"), 7638 }, 7639 }, 7640 }, 7641 }, 7642 }, 7643 }, 7644 }, 7645 }, 7646 Dependencies: []string{ 7647 "k8s.io/api/core/v1.EndpointSubset", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 7648 } 7649 } 7650 7651 func schema_k8sio_api_core_v1_EndpointsList(ref common.ReferenceCallback) common.OpenAPIDefinition { 7652 return common.OpenAPIDefinition{ 7653 Schema: spec.Schema{ 7654 SchemaProps: spec.SchemaProps{ 7655 Description: "EndpointsList is a list of endpoints.", 7656 Type: []string{"object"}, 7657 Properties: map[string]spec.Schema{ 7658 "kind": { 7659 SchemaProps: spec.SchemaProps{ 7660 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 7661 Type: []string{"string"}, 7662 Format: "", 7663 }, 7664 }, 7665 "apiVersion": { 7666 SchemaProps: spec.SchemaProps{ 7667 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 7668 Type: []string{"string"}, 7669 Format: "", 7670 }, 7671 }, 7672 "metadata": { 7673 SchemaProps: spec.SchemaProps{ 7674 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 7675 Default: map[string]interface{}{}, 7676 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 7677 }, 7678 }, 7679 "items": { 7680 SchemaProps: spec.SchemaProps{ 7681 Description: "List of endpoints.", 7682 Type: []string{"array"}, 7683 Items: &spec.SchemaOrArray{ 7684 Schema: &spec.Schema{ 7685 SchemaProps: spec.SchemaProps{ 7686 Default: map[string]interface{}{}, 7687 Ref: ref("k8s.io/api/core/v1.Endpoints"), 7688 }, 7689 }, 7690 }, 7691 }, 7692 }, 7693 }, 7694 Required: []string{"items"}, 7695 }, 7696 }, 7697 Dependencies: []string{ 7698 "k8s.io/api/core/v1.Endpoints", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 7699 } 7700 } 7701 7702 func schema_k8sio_api_core_v1_EnvFromSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 7703 return common.OpenAPIDefinition{ 7704 Schema: spec.Schema{ 7705 SchemaProps: spec.SchemaProps{ 7706 Description: "EnvFromSource represents the source of a set of ConfigMaps", 7707 Type: []string{"object"}, 7708 Properties: map[string]spec.Schema{ 7709 "prefix": { 7710 SchemaProps: spec.SchemaProps{ 7711 Description: "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", 7712 Type: []string{"string"}, 7713 Format: "", 7714 }, 7715 }, 7716 "configMapRef": { 7717 SchemaProps: spec.SchemaProps{ 7718 Description: "The ConfigMap to select from", 7719 Ref: ref("k8s.io/api/core/v1.ConfigMapEnvSource"), 7720 }, 7721 }, 7722 "secretRef": { 7723 SchemaProps: spec.SchemaProps{ 7724 Description: "The Secret to select from", 7725 Ref: ref("k8s.io/api/core/v1.SecretEnvSource"), 7726 }, 7727 }, 7728 }, 7729 }, 7730 }, 7731 Dependencies: []string{ 7732 "k8s.io/api/core/v1.ConfigMapEnvSource", "k8s.io/api/core/v1.SecretEnvSource"}, 7733 } 7734 } 7735 7736 func schema_k8sio_api_core_v1_EnvVar(ref common.ReferenceCallback) common.OpenAPIDefinition { 7737 return common.OpenAPIDefinition{ 7738 Schema: spec.Schema{ 7739 SchemaProps: spec.SchemaProps{ 7740 Description: "EnvVar represents an environment variable present in a Container.", 7741 Type: []string{"object"}, 7742 Properties: map[string]spec.Schema{ 7743 "name": { 7744 SchemaProps: spec.SchemaProps{ 7745 Description: "Name of the environment variable. Must be a C_IDENTIFIER.", 7746 Default: "", 7747 Type: []string{"string"}, 7748 Format: "", 7749 }, 7750 }, 7751 "value": { 7752 SchemaProps: spec.SchemaProps{ 7753 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 \"\".", 7754 Type: []string{"string"}, 7755 Format: "", 7756 }, 7757 }, 7758 "valueFrom": { 7759 SchemaProps: spec.SchemaProps{ 7760 Description: "Source for the environment variable's value. Cannot be used if value is not empty.", 7761 Ref: ref("k8s.io/api/core/v1.EnvVarSource"), 7762 }, 7763 }, 7764 }, 7765 Required: []string{"name"}, 7766 }, 7767 }, 7768 Dependencies: []string{ 7769 "k8s.io/api/core/v1.EnvVarSource"}, 7770 } 7771 } 7772 7773 func schema_k8sio_api_core_v1_EnvVarSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 7774 return common.OpenAPIDefinition{ 7775 Schema: spec.Schema{ 7776 SchemaProps: spec.SchemaProps{ 7777 Description: "EnvVarSource represents a source for the value of an EnvVar.", 7778 Type: []string{"object"}, 7779 Properties: map[string]spec.Schema{ 7780 "fieldRef": { 7781 SchemaProps: spec.SchemaProps{ 7782 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.", 7783 Ref: ref("k8s.io/api/core/v1.ObjectFieldSelector"), 7784 }, 7785 }, 7786 "resourceFieldRef": { 7787 SchemaProps: spec.SchemaProps{ 7788 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.", 7789 Ref: ref("k8s.io/api/core/v1.ResourceFieldSelector"), 7790 }, 7791 }, 7792 "configMapKeyRef": { 7793 SchemaProps: spec.SchemaProps{ 7794 Description: "Selects a key of a ConfigMap.", 7795 Ref: ref("k8s.io/api/core/v1.ConfigMapKeySelector"), 7796 }, 7797 }, 7798 "secretKeyRef": { 7799 SchemaProps: spec.SchemaProps{ 7800 Description: "Selects a key of a secret in the pod's namespace", 7801 Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), 7802 }, 7803 }, 7804 }, 7805 }, 7806 }, 7807 Dependencies: []string{ 7808 "k8s.io/api/core/v1.ConfigMapKeySelector", "k8s.io/api/core/v1.ObjectFieldSelector", "k8s.io/api/core/v1.ResourceFieldSelector", "k8s.io/api/core/v1.SecretKeySelector"}, 7809 } 7810 } 7811 7812 func schema_k8sio_api_core_v1_EphemeralContainer(ref common.ReferenceCallback) common.OpenAPIDefinition { 7813 return common.OpenAPIDefinition{ 7814 Schema: spec.Schema{ 7815 SchemaProps: spec.SchemaProps{ 7816 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.", 7817 Type: []string{"object"}, 7818 Properties: map[string]spec.Schema{ 7819 "name": { 7820 SchemaProps: spec.SchemaProps{ 7821 Description: "Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers.", 7822 Default: "", 7823 Type: []string{"string"}, 7824 Format: "", 7825 }, 7826 }, 7827 "image": { 7828 SchemaProps: spec.SchemaProps{ 7829 Description: "Container image name. More info: https://kubernetes.io/docs/concepts/containers/images", 7830 Type: []string{"string"}, 7831 Format: "", 7832 }, 7833 }, 7834 "command": { 7835 SchemaProps: spec.SchemaProps{ 7836 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", 7837 Type: []string{"array"}, 7838 Items: &spec.SchemaOrArray{ 7839 Schema: &spec.Schema{ 7840 SchemaProps: spec.SchemaProps{ 7841 Default: "", 7842 Type: []string{"string"}, 7843 Format: "", 7844 }, 7845 }, 7846 }, 7847 }, 7848 }, 7849 "args": { 7850 SchemaProps: spec.SchemaProps{ 7851 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", 7852 Type: []string{"array"}, 7853 Items: &spec.SchemaOrArray{ 7854 Schema: &spec.Schema{ 7855 SchemaProps: spec.SchemaProps{ 7856 Default: "", 7857 Type: []string{"string"}, 7858 Format: "", 7859 }, 7860 }, 7861 }, 7862 }, 7863 }, 7864 "workingDir": { 7865 SchemaProps: spec.SchemaProps{ 7866 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.", 7867 Type: []string{"string"}, 7868 Format: "", 7869 }, 7870 }, 7871 "ports": { 7872 VendorExtensible: spec.VendorExtensible{ 7873 Extensions: spec.Extensions{ 7874 "x-kubernetes-list-map-keys": []interface{}{ 7875 "containerPort", 7876 "protocol", 7877 }, 7878 "x-kubernetes-list-type": "map", 7879 "x-kubernetes-patch-merge-key": "containerPort", 7880 "x-kubernetes-patch-strategy": "merge", 7881 }, 7882 }, 7883 SchemaProps: spec.SchemaProps{ 7884 Description: "Ports are not allowed for ephemeral containers.", 7885 Type: []string{"array"}, 7886 Items: &spec.SchemaOrArray{ 7887 Schema: &spec.Schema{ 7888 SchemaProps: spec.SchemaProps{ 7889 Default: map[string]interface{}{}, 7890 Ref: ref("k8s.io/api/core/v1.ContainerPort"), 7891 }, 7892 }, 7893 }, 7894 }, 7895 }, 7896 "envFrom": { 7897 SchemaProps: spec.SchemaProps{ 7898 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.", 7899 Type: []string{"array"}, 7900 Items: &spec.SchemaOrArray{ 7901 Schema: &spec.Schema{ 7902 SchemaProps: spec.SchemaProps{ 7903 Default: map[string]interface{}{}, 7904 Ref: ref("k8s.io/api/core/v1.EnvFromSource"), 7905 }, 7906 }, 7907 }, 7908 }, 7909 }, 7910 "env": { 7911 VendorExtensible: spec.VendorExtensible{ 7912 Extensions: spec.Extensions{ 7913 "x-kubernetes-patch-merge-key": "name", 7914 "x-kubernetes-patch-strategy": "merge", 7915 }, 7916 }, 7917 SchemaProps: spec.SchemaProps{ 7918 Description: "List of environment variables to set in the container. Cannot be updated.", 7919 Type: []string{"array"}, 7920 Items: &spec.SchemaOrArray{ 7921 Schema: &spec.Schema{ 7922 SchemaProps: spec.SchemaProps{ 7923 Default: map[string]interface{}{}, 7924 Ref: ref("k8s.io/api/core/v1.EnvVar"), 7925 }, 7926 }, 7927 }, 7928 }, 7929 }, 7930 "resources": { 7931 SchemaProps: spec.SchemaProps{ 7932 Description: "Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod.", 7933 Default: map[string]interface{}{}, 7934 Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), 7935 }, 7936 }, 7937 "resizePolicy": { 7938 VendorExtensible: spec.VendorExtensible{ 7939 Extensions: spec.Extensions{ 7940 "x-kubernetes-list-type": "atomic", 7941 }, 7942 }, 7943 SchemaProps: spec.SchemaProps{ 7944 Description: "Resources resize policy for the container.", 7945 Type: []string{"array"}, 7946 Items: &spec.SchemaOrArray{ 7947 Schema: &spec.Schema{ 7948 SchemaProps: spec.SchemaProps{ 7949 Default: map[string]interface{}{}, 7950 Ref: ref("k8s.io/api/core/v1.ContainerResizePolicy"), 7951 }, 7952 }, 7953 }, 7954 }, 7955 }, 7956 "volumeMounts": { 7957 VendorExtensible: spec.VendorExtensible{ 7958 Extensions: spec.Extensions{ 7959 "x-kubernetes-patch-merge-key": "mountPath", 7960 "x-kubernetes-patch-strategy": "merge", 7961 }, 7962 }, 7963 SchemaProps: spec.SchemaProps{ 7964 Description: "Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated.", 7965 Type: []string{"array"}, 7966 Items: &spec.SchemaOrArray{ 7967 Schema: &spec.Schema{ 7968 SchemaProps: spec.SchemaProps{ 7969 Default: map[string]interface{}{}, 7970 Ref: ref("k8s.io/api/core/v1.VolumeMount"), 7971 }, 7972 }, 7973 }, 7974 }, 7975 }, 7976 "volumeDevices": { 7977 VendorExtensible: spec.VendorExtensible{ 7978 Extensions: spec.Extensions{ 7979 "x-kubernetes-patch-merge-key": "devicePath", 7980 "x-kubernetes-patch-strategy": "merge", 7981 }, 7982 }, 7983 SchemaProps: spec.SchemaProps{ 7984 Description: "volumeDevices is the list of block devices to be used by the container.", 7985 Type: []string{"array"}, 7986 Items: &spec.SchemaOrArray{ 7987 Schema: &spec.Schema{ 7988 SchemaProps: spec.SchemaProps{ 7989 Default: map[string]interface{}{}, 7990 Ref: ref("k8s.io/api/core/v1.VolumeDevice"), 7991 }, 7992 }, 7993 }, 7994 }, 7995 }, 7996 "livenessProbe": { 7997 SchemaProps: spec.SchemaProps{ 7998 Description: "Probes are not allowed for ephemeral containers.", 7999 Ref: ref("k8s.io/api/core/v1.Probe"), 8000 }, 8001 }, 8002 "readinessProbe": { 8003 SchemaProps: spec.SchemaProps{ 8004 Description: "Probes are not allowed for ephemeral containers.", 8005 Ref: ref("k8s.io/api/core/v1.Probe"), 8006 }, 8007 }, 8008 "startupProbe": { 8009 SchemaProps: spec.SchemaProps{ 8010 Description: "Probes are not allowed for ephemeral containers.", 8011 Ref: ref("k8s.io/api/core/v1.Probe"), 8012 }, 8013 }, 8014 "lifecycle": { 8015 SchemaProps: spec.SchemaProps{ 8016 Description: "Lifecycle is not allowed for ephemeral containers.", 8017 Ref: ref("k8s.io/api/core/v1.Lifecycle"), 8018 }, 8019 }, 8020 "terminationMessagePath": { 8021 SchemaProps: spec.SchemaProps{ 8022 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.", 8023 Type: []string{"string"}, 8024 Format: "", 8025 }, 8026 }, 8027 "terminationMessagePolicy": { 8028 SchemaProps: spec.SchemaProps{ 8029 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.", 8030 Type: []string{"string"}, 8031 Format: "", 8032 Enum: []interface{}{"FallbackToLogsOnError", "File"}, 8033 }, 8034 }, 8035 "imagePullPolicy": { 8036 SchemaProps: spec.SchemaProps{ 8037 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", 8038 Type: []string{"string"}, 8039 Format: "", 8040 Enum: []interface{}{"Always", "IfNotPresent", "Never"}, 8041 }, 8042 }, 8043 "securityContext": { 8044 SchemaProps: spec.SchemaProps{ 8045 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.", 8046 Ref: ref("k8s.io/api/core/v1.SecurityContext"), 8047 }, 8048 }, 8049 "stdin": { 8050 SchemaProps: spec.SchemaProps{ 8051 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.", 8052 Type: []string{"boolean"}, 8053 Format: "", 8054 }, 8055 }, 8056 "stdinOnce": { 8057 SchemaProps: spec.SchemaProps{ 8058 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", 8059 Type: []string{"boolean"}, 8060 Format: "", 8061 }, 8062 }, 8063 "tty": { 8064 SchemaProps: spec.SchemaProps{ 8065 Description: "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", 8066 Type: []string{"boolean"}, 8067 Format: "", 8068 }, 8069 }, 8070 "targetContainerName": { 8071 SchemaProps: spec.SchemaProps{ 8072 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.", 8073 Type: []string{"string"}, 8074 Format: "", 8075 }, 8076 }, 8077 }, 8078 Required: []string{"name"}, 8079 }, 8080 }, 8081 Dependencies: []string{ 8082 "k8s.io/api/core/v1.ContainerPort", "k8s.io/api/core/v1.ContainerResizePolicy", "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"}, 8083 } 8084 } 8085 8086 func schema_k8sio_api_core_v1_EphemeralContainerCommon(ref common.ReferenceCallback) common.OpenAPIDefinition { 8087 return common.OpenAPIDefinition{ 8088 Schema: spec.Schema{ 8089 SchemaProps: spec.SchemaProps{ 8090 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.", 8091 Type: []string{"object"}, 8092 Properties: map[string]spec.Schema{ 8093 "name": { 8094 SchemaProps: spec.SchemaProps{ 8095 Description: "Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers.", 8096 Default: "", 8097 Type: []string{"string"}, 8098 Format: "", 8099 }, 8100 }, 8101 "image": { 8102 SchemaProps: spec.SchemaProps{ 8103 Description: "Container image name. More info: https://kubernetes.io/docs/concepts/containers/images", 8104 Type: []string{"string"}, 8105 Format: "", 8106 }, 8107 }, 8108 "command": { 8109 SchemaProps: spec.SchemaProps{ 8110 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", 8111 Type: []string{"array"}, 8112 Items: &spec.SchemaOrArray{ 8113 Schema: &spec.Schema{ 8114 SchemaProps: spec.SchemaProps{ 8115 Default: "", 8116 Type: []string{"string"}, 8117 Format: "", 8118 }, 8119 }, 8120 }, 8121 }, 8122 }, 8123 "args": { 8124 SchemaProps: spec.SchemaProps{ 8125 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", 8126 Type: []string{"array"}, 8127 Items: &spec.SchemaOrArray{ 8128 Schema: &spec.Schema{ 8129 SchemaProps: spec.SchemaProps{ 8130 Default: "", 8131 Type: []string{"string"}, 8132 Format: "", 8133 }, 8134 }, 8135 }, 8136 }, 8137 }, 8138 "workingDir": { 8139 SchemaProps: spec.SchemaProps{ 8140 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.", 8141 Type: []string{"string"}, 8142 Format: "", 8143 }, 8144 }, 8145 "ports": { 8146 VendorExtensible: spec.VendorExtensible{ 8147 Extensions: spec.Extensions{ 8148 "x-kubernetes-list-map-keys": []interface{}{ 8149 "containerPort", 8150 "protocol", 8151 }, 8152 "x-kubernetes-list-type": "map", 8153 "x-kubernetes-patch-merge-key": "containerPort", 8154 "x-kubernetes-patch-strategy": "merge", 8155 }, 8156 }, 8157 SchemaProps: spec.SchemaProps{ 8158 Description: "Ports are not allowed for ephemeral containers.", 8159 Type: []string{"array"}, 8160 Items: &spec.SchemaOrArray{ 8161 Schema: &spec.Schema{ 8162 SchemaProps: spec.SchemaProps{ 8163 Default: map[string]interface{}{}, 8164 Ref: ref("k8s.io/api/core/v1.ContainerPort"), 8165 }, 8166 }, 8167 }, 8168 }, 8169 }, 8170 "envFrom": { 8171 SchemaProps: spec.SchemaProps{ 8172 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.", 8173 Type: []string{"array"}, 8174 Items: &spec.SchemaOrArray{ 8175 Schema: &spec.Schema{ 8176 SchemaProps: spec.SchemaProps{ 8177 Default: map[string]interface{}{}, 8178 Ref: ref("k8s.io/api/core/v1.EnvFromSource"), 8179 }, 8180 }, 8181 }, 8182 }, 8183 }, 8184 "env": { 8185 VendorExtensible: spec.VendorExtensible{ 8186 Extensions: spec.Extensions{ 8187 "x-kubernetes-patch-merge-key": "name", 8188 "x-kubernetes-patch-strategy": "merge", 8189 }, 8190 }, 8191 SchemaProps: spec.SchemaProps{ 8192 Description: "List of environment variables to set in the container. Cannot be updated.", 8193 Type: []string{"array"}, 8194 Items: &spec.SchemaOrArray{ 8195 Schema: &spec.Schema{ 8196 SchemaProps: spec.SchemaProps{ 8197 Default: map[string]interface{}{}, 8198 Ref: ref("k8s.io/api/core/v1.EnvVar"), 8199 }, 8200 }, 8201 }, 8202 }, 8203 }, 8204 "resources": { 8205 SchemaProps: spec.SchemaProps{ 8206 Description: "Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod.", 8207 Default: map[string]interface{}{}, 8208 Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), 8209 }, 8210 }, 8211 "resizePolicy": { 8212 VendorExtensible: spec.VendorExtensible{ 8213 Extensions: spec.Extensions{ 8214 "x-kubernetes-list-type": "atomic", 8215 }, 8216 }, 8217 SchemaProps: spec.SchemaProps{ 8218 Description: "Resources resize policy for the container.", 8219 Type: []string{"array"}, 8220 Items: &spec.SchemaOrArray{ 8221 Schema: &spec.Schema{ 8222 SchemaProps: spec.SchemaProps{ 8223 Default: map[string]interface{}{}, 8224 Ref: ref("k8s.io/api/core/v1.ContainerResizePolicy"), 8225 }, 8226 }, 8227 }, 8228 }, 8229 }, 8230 "volumeMounts": { 8231 VendorExtensible: spec.VendorExtensible{ 8232 Extensions: spec.Extensions{ 8233 "x-kubernetes-patch-merge-key": "mountPath", 8234 "x-kubernetes-patch-strategy": "merge", 8235 }, 8236 }, 8237 SchemaProps: spec.SchemaProps{ 8238 Description: "Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated.", 8239 Type: []string{"array"}, 8240 Items: &spec.SchemaOrArray{ 8241 Schema: &spec.Schema{ 8242 SchemaProps: spec.SchemaProps{ 8243 Default: map[string]interface{}{}, 8244 Ref: ref("k8s.io/api/core/v1.VolumeMount"), 8245 }, 8246 }, 8247 }, 8248 }, 8249 }, 8250 "volumeDevices": { 8251 VendorExtensible: spec.VendorExtensible{ 8252 Extensions: spec.Extensions{ 8253 "x-kubernetes-patch-merge-key": "devicePath", 8254 "x-kubernetes-patch-strategy": "merge", 8255 }, 8256 }, 8257 SchemaProps: spec.SchemaProps{ 8258 Description: "volumeDevices is the list of block devices to be used by the container.", 8259 Type: []string{"array"}, 8260 Items: &spec.SchemaOrArray{ 8261 Schema: &spec.Schema{ 8262 SchemaProps: spec.SchemaProps{ 8263 Default: map[string]interface{}{}, 8264 Ref: ref("k8s.io/api/core/v1.VolumeDevice"), 8265 }, 8266 }, 8267 }, 8268 }, 8269 }, 8270 "livenessProbe": { 8271 SchemaProps: spec.SchemaProps{ 8272 Description: "Probes are not allowed for ephemeral containers.", 8273 Ref: ref("k8s.io/api/core/v1.Probe"), 8274 }, 8275 }, 8276 "readinessProbe": { 8277 SchemaProps: spec.SchemaProps{ 8278 Description: "Probes are not allowed for ephemeral containers.", 8279 Ref: ref("k8s.io/api/core/v1.Probe"), 8280 }, 8281 }, 8282 "startupProbe": { 8283 SchemaProps: spec.SchemaProps{ 8284 Description: "Probes are not allowed for ephemeral containers.", 8285 Ref: ref("k8s.io/api/core/v1.Probe"), 8286 }, 8287 }, 8288 "lifecycle": { 8289 SchemaProps: spec.SchemaProps{ 8290 Description: "Lifecycle is not allowed for ephemeral containers.", 8291 Ref: ref("k8s.io/api/core/v1.Lifecycle"), 8292 }, 8293 }, 8294 "terminationMessagePath": { 8295 SchemaProps: spec.SchemaProps{ 8296 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.", 8297 Type: []string{"string"}, 8298 Format: "", 8299 }, 8300 }, 8301 "terminationMessagePolicy": { 8302 SchemaProps: spec.SchemaProps{ 8303 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.", 8304 Type: []string{"string"}, 8305 Format: "", 8306 Enum: []interface{}{"FallbackToLogsOnError", "File"}, 8307 }, 8308 }, 8309 "imagePullPolicy": { 8310 SchemaProps: spec.SchemaProps{ 8311 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", 8312 Type: []string{"string"}, 8313 Format: "", 8314 Enum: []interface{}{"Always", "IfNotPresent", "Never"}, 8315 }, 8316 }, 8317 "securityContext": { 8318 SchemaProps: spec.SchemaProps{ 8319 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.", 8320 Ref: ref("k8s.io/api/core/v1.SecurityContext"), 8321 }, 8322 }, 8323 "stdin": { 8324 SchemaProps: spec.SchemaProps{ 8325 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.", 8326 Type: []string{"boolean"}, 8327 Format: "", 8328 }, 8329 }, 8330 "stdinOnce": { 8331 SchemaProps: spec.SchemaProps{ 8332 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", 8333 Type: []string{"boolean"}, 8334 Format: "", 8335 }, 8336 }, 8337 "tty": { 8338 SchemaProps: spec.SchemaProps{ 8339 Description: "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", 8340 Type: []string{"boolean"}, 8341 Format: "", 8342 }, 8343 }, 8344 }, 8345 Required: []string{"name"}, 8346 }, 8347 }, 8348 Dependencies: []string{ 8349 "k8s.io/api/core/v1.ContainerPort", "k8s.io/api/core/v1.ContainerResizePolicy", "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"}, 8350 } 8351 } 8352 8353 func schema_k8sio_api_core_v1_EphemeralVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 8354 return common.OpenAPIDefinition{ 8355 Schema: spec.Schema{ 8356 SchemaProps: spec.SchemaProps{ 8357 Description: "Represents an ephemeral volume that is handled by a normal storage driver.", 8358 Type: []string{"object"}, 8359 Properties: map[string]spec.Schema{ 8360 "volumeClaimTemplate": { 8361 SchemaProps: spec.SchemaProps{ 8362 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.", 8363 Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimTemplate"), 8364 }, 8365 }, 8366 }, 8367 }, 8368 }, 8369 Dependencies: []string{ 8370 "k8s.io/api/core/v1.PersistentVolumeClaimTemplate"}, 8371 } 8372 } 8373 8374 func schema_k8sio_api_core_v1_Event(ref common.ReferenceCallback) common.OpenAPIDefinition { 8375 return common.OpenAPIDefinition{ 8376 Schema: spec.Schema{ 8377 SchemaProps: spec.SchemaProps{ 8378 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.", 8379 Type: []string{"object"}, 8380 Properties: map[string]spec.Schema{ 8381 "kind": { 8382 SchemaProps: spec.SchemaProps{ 8383 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 8384 Type: []string{"string"}, 8385 Format: "", 8386 }, 8387 }, 8388 "apiVersion": { 8389 SchemaProps: spec.SchemaProps{ 8390 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 8391 Type: []string{"string"}, 8392 Format: "", 8393 }, 8394 }, 8395 "metadata": { 8396 SchemaProps: spec.SchemaProps{ 8397 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 8398 Default: map[string]interface{}{}, 8399 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 8400 }, 8401 }, 8402 "involvedObject": { 8403 SchemaProps: spec.SchemaProps{ 8404 Description: "The object that this event is about.", 8405 Default: map[string]interface{}{}, 8406 Ref: ref("k8s.io/api/core/v1.ObjectReference"), 8407 }, 8408 }, 8409 "reason": { 8410 SchemaProps: spec.SchemaProps{ 8411 Description: "This should be a short, machine understandable string that gives the reason for the transition into the object's current status.", 8412 Type: []string{"string"}, 8413 Format: "", 8414 }, 8415 }, 8416 "message": { 8417 SchemaProps: spec.SchemaProps{ 8418 Description: "A human-readable description of the status of this operation.", 8419 Type: []string{"string"}, 8420 Format: "", 8421 }, 8422 }, 8423 "source": { 8424 SchemaProps: spec.SchemaProps{ 8425 Description: "The component reporting this event. Should be a short machine understandable string.", 8426 Default: map[string]interface{}{}, 8427 Ref: ref("k8s.io/api/core/v1.EventSource"), 8428 }, 8429 }, 8430 "firstTimestamp": { 8431 SchemaProps: spec.SchemaProps{ 8432 Description: "The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)", 8433 Default: map[string]interface{}{}, 8434 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 8435 }, 8436 }, 8437 "lastTimestamp": { 8438 SchemaProps: spec.SchemaProps{ 8439 Description: "The time at which the most recent occurrence of this event was recorded.", 8440 Default: map[string]interface{}{}, 8441 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 8442 }, 8443 }, 8444 "count": { 8445 SchemaProps: spec.SchemaProps{ 8446 Description: "The number of times this event has occurred.", 8447 Type: []string{"integer"}, 8448 Format: "int32", 8449 }, 8450 }, 8451 "type": { 8452 SchemaProps: spec.SchemaProps{ 8453 Description: "Type of this event (Normal, Warning), new types could be added in the future", 8454 Type: []string{"string"}, 8455 Format: "", 8456 }, 8457 }, 8458 "eventTime": { 8459 SchemaProps: spec.SchemaProps{ 8460 Description: "Time when this Event was first observed.", 8461 Default: map[string]interface{}{}, 8462 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"), 8463 }, 8464 }, 8465 "series": { 8466 SchemaProps: spec.SchemaProps{ 8467 Description: "Data about the Event series this event represents or nil if it's a singleton Event.", 8468 Ref: ref("k8s.io/api/core/v1.EventSeries"), 8469 }, 8470 }, 8471 "action": { 8472 SchemaProps: spec.SchemaProps{ 8473 Description: "What action was taken/failed regarding to the Regarding object.", 8474 Type: []string{"string"}, 8475 Format: "", 8476 }, 8477 }, 8478 "related": { 8479 SchemaProps: spec.SchemaProps{ 8480 Description: "Optional secondary object for more complex actions.", 8481 Ref: ref("k8s.io/api/core/v1.ObjectReference"), 8482 }, 8483 }, 8484 "reportingComponent": { 8485 SchemaProps: spec.SchemaProps{ 8486 Description: "Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.", 8487 Default: "", 8488 Type: []string{"string"}, 8489 Format: "", 8490 }, 8491 }, 8492 "reportingInstance": { 8493 SchemaProps: spec.SchemaProps{ 8494 Description: "ID of the controller instance, e.g. `kubelet-xyzf`.", 8495 Default: "", 8496 Type: []string{"string"}, 8497 Format: "", 8498 }, 8499 }, 8500 }, 8501 Required: []string{"metadata", "involvedObject"}, 8502 }, 8503 }, 8504 Dependencies: []string{ 8505 "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"}, 8506 } 8507 } 8508 8509 func schema_k8sio_api_core_v1_EventList(ref common.ReferenceCallback) common.OpenAPIDefinition { 8510 return common.OpenAPIDefinition{ 8511 Schema: spec.Schema{ 8512 SchemaProps: spec.SchemaProps{ 8513 Description: "EventList is a list of events.", 8514 Type: []string{"object"}, 8515 Properties: map[string]spec.Schema{ 8516 "kind": { 8517 SchemaProps: spec.SchemaProps{ 8518 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 8519 Type: []string{"string"}, 8520 Format: "", 8521 }, 8522 }, 8523 "apiVersion": { 8524 SchemaProps: spec.SchemaProps{ 8525 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 8526 Type: []string{"string"}, 8527 Format: "", 8528 }, 8529 }, 8530 "metadata": { 8531 SchemaProps: spec.SchemaProps{ 8532 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 8533 Default: map[string]interface{}{}, 8534 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 8535 }, 8536 }, 8537 "items": { 8538 SchemaProps: spec.SchemaProps{ 8539 Description: "List of events", 8540 Type: []string{"array"}, 8541 Items: &spec.SchemaOrArray{ 8542 Schema: &spec.Schema{ 8543 SchemaProps: spec.SchemaProps{ 8544 Default: map[string]interface{}{}, 8545 Ref: ref("k8s.io/api/core/v1.Event"), 8546 }, 8547 }, 8548 }, 8549 }, 8550 }, 8551 }, 8552 Required: []string{"items"}, 8553 }, 8554 }, 8555 Dependencies: []string{ 8556 "k8s.io/api/core/v1.Event", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 8557 } 8558 } 8559 8560 func schema_k8sio_api_core_v1_EventSeries(ref common.ReferenceCallback) common.OpenAPIDefinition { 8561 return common.OpenAPIDefinition{ 8562 Schema: spec.Schema{ 8563 SchemaProps: spec.SchemaProps{ 8564 Description: "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.", 8565 Type: []string{"object"}, 8566 Properties: map[string]spec.Schema{ 8567 "count": { 8568 SchemaProps: spec.SchemaProps{ 8569 Description: "Number of occurrences in this series up to the last heartbeat time", 8570 Type: []string{"integer"}, 8571 Format: "int32", 8572 }, 8573 }, 8574 "lastObservedTime": { 8575 SchemaProps: spec.SchemaProps{ 8576 Description: "Time of the last occurrence observed", 8577 Default: map[string]interface{}{}, 8578 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"), 8579 }, 8580 }, 8581 }, 8582 }, 8583 }, 8584 Dependencies: []string{ 8585 "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"}, 8586 } 8587 } 8588 8589 func schema_k8sio_api_core_v1_EventSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 8590 return common.OpenAPIDefinition{ 8591 Schema: spec.Schema{ 8592 SchemaProps: spec.SchemaProps{ 8593 Description: "EventSource contains information for an event.", 8594 Type: []string{"object"}, 8595 Properties: map[string]spec.Schema{ 8596 "component": { 8597 SchemaProps: spec.SchemaProps{ 8598 Description: "Component from which the event is generated.", 8599 Type: []string{"string"}, 8600 Format: "", 8601 }, 8602 }, 8603 "host": { 8604 SchemaProps: spec.SchemaProps{ 8605 Description: "Node name on which the event is generated.", 8606 Type: []string{"string"}, 8607 Format: "", 8608 }, 8609 }, 8610 }, 8611 }, 8612 }, 8613 } 8614 } 8615 8616 func schema_k8sio_api_core_v1_ExecAction(ref common.ReferenceCallback) common.OpenAPIDefinition { 8617 return common.OpenAPIDefinition{ 8618 Schema: spec.Schema{ 8619 SchemaProps: spec.SchemaProps{ 8620 Description: "ExecAction describes a \"run in container\" action.", 8621 Type: []string{"object"}, 8622 Properties: map[string]spec.Schema{ 8623 "command": { 8624 SchemaProps: spec.SchemaProps{ 8625 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.", 8626 Type: []string{"array"}, 8627 Items: &spec.SchemaOrArray{ 8628 Schema: &spec.Schema{ 8629 SchemaProps: spec.SchemaProps{ 8630 Default: "", 8631 Type: []string{"string"}, 8632 Format: "", 8633 }, 8634 }, 8635 }, 8636 }, 8637 }, 8638 }, 8639 }, 8640 }, 8641 } 8642 } 8643 8644 func schema_k8sio_api_core_v1_FCVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 8645 return common.OpenAPIDefinition{ 8646 Schema: spec.Schema{ 8647 SchemaProps: spec.SchemaProps{ 8648 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.", 8649 Type: []string{"object"}, 8650 Properties: map[string]spec.Schema{ 8651 "targetWWNs": { 8652 SchemaProps: spec.SchemaProps{ 8653 Description: "targetWWNs is Optional: FC target worldwide names (WWNs)", 8654 Type: []string{"array"}, 8655 Items: &spec.SchemaOrArray{ 8656 Schema: &spec.Schema{ 8657 SchemaProps: spec.SchemaProps{ 8658 Default: "", 8659 Type: []string{"string"}, 8660 Format: "", 8661 }, 8662 }, 8663 }, 8664 }, 8665 }, 8666 "lun": { 8667 SchemaProps: spec.SchemaProps{ 8668 Description: "lun is Optional: FC target lun number", 8669 Type: []string{"integer"}, 8670 Format: "int32", 8671 }, 8672 }, 8673 "fsType": { 8674 SchemaProps: spec.SchemaProps{ 8675 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.", 8676 Type: []string{"string"}, 8677 Format: "", 8678 }, 8679 }, 8680 "readOnly": { 8681 SchemaProps: spec.SchemaProps{ 8682 Description: "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 8683 Type: []string{"boolean"}, 8684 Format: "", 8685 }, 8686 }, 8687 "wwids": { 8688 SchemaProps: spec.SchemaProps{ 8689 Description: "wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.", 8690 Type: []string{"array"}, 8691 Items: &spec.SchemaOrArray{ 8692 Schema: &spec.Schema{ 8693 SchemaProps: spec.SchemaProps{ 8694 Default: "", 8695 Type: []string{"string"}, 8696 Format: "", 8697 }, 8698 }, 8699 }, 8700 }, 8701 }, 8702 }, 8703 }, 8704 }, 8705 } 8706 } 8707 8708 func schema_k8sio_api_core_v1_FlexPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 8709 return common.OpenAPIDefinition{ 8710 Schema: spec.Schema{ 8711 SchemaProps: spec.SchemaProps{ 8712 Description: "FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin.", 8713 Type: []string{"object"}, 8714 Properties: map[string]spec.Schema{ 8715 "driver": { 8716 SchemaProps: spec.SchemaProps{ 8717 Description: "driver is the name of the driver to use for this volume.", 8718 Default: "", 8719 Type: []string{"string"}, 8720 Format: "", 8721 }, 8722 }, 8723 "fsType": { 8724 SchemaProps: spec.SchemaProps{ 8725 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.", 8726 Type: []string{"string"}, 8727 Format: "", 8728 }, 8729 }, 8730 "secretRef": { 8731 SchemaProps: spec.SchemaProps{ 8732 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.", 8733 Ref: ref("k8s.io/api/core/v1.SecretReference"), 8734 }, 8735 }, 8736 "readOnly": { 8737 SchemaProps: spec.SchemaProps{ 8738 Description: "readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 8739 Type: []string{"boolean"}, 8740 Format: "", 8741 }, 8742 }, 8743 "options": { 8744 SchemaProps: spec.SchemaProps{ 8745 Description: "options is Optional: this field holds extra command options if any.", 8746 Type: []string{"object"}, 8747 AdditionalProperties: &spec.SchemaOrBool{ 8748 Allows: true, 8749 Schema: &spec.Schema{ 8750 SchemaProps: spec.SchemaProps{ 8751 Default: "", 8752 Type: []string{"string"}, 8753 Format: "", 8754 }, 8755 }, 8756 }, 8757 }, 8758 }, 8759 }, 8760 Required: []string{"driver"}, 8761 }, 8762 }, 8763 Dependencies: []string{ 8764 "k8s.io/api/core/v1.SecretReference"}, 8765 } 8766 } 8767 8768 func schema_k8sio_api_core_v1_FlexVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 8769 return common.OpenAPIDefinition{ 8770 Schema: spec.Schema{ 8771 SchemaProps: spec.SchemaProps{ 8772 Description: "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", 8773 Type: []string{"object"}, 8774 Properties: map[string]spec.Schema{ 8775 "driver": { 8776 SchemaProps: spec.SchemaProps{ 8777 Description: "driver is the name of the driver to use for this volume.", 8778 Default: "", 8779 Type: []string{"string"}, 8780 Format: "", 8781 }, 8782 }, 8783 "fsType": { 8784 SchemaProps: spec.SchemaProps{ 8785 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.", 8786 Type: []string{"string"}, 8787 Format: "", 8788 }, 8789 }, 8790 "secretRef": { 8791 SchemaProps: spec.SchemaProps{ 8792 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.", 8793 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 8794 }, 8795 }, 8796 "readOnly": { 8797 SchemaProps: spec.SchemaProps{ 8798 Description: "readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 8799 Type: []string{"boolean"}, 8800 Format: "", 8801 }, 8802 }, 8803 "options": { 8804 SchemaProps: spec.SchemaProps{ 8805 Description: "options is Optional: this field holds extra command options if any.", 8806 Type: []string{"object"}, 8807 AdditionalProperties: &spec.SchemaOrBool{ 8808 Allows: true, 8809 Schema: &spec.Schema{ 8810 SchemaProps: spec.SchemaProps{ 8811 Default: "", 8812 Type: []string{"string"}, 8813 Format: "", 8814 }, 8815 }, 8816 }, 8817 }, 8818 }, 8819 }, 8820 Required: []string{"driver"}, 8821 }, 8822 }, 8823 Dependencies: []string{ 8824 "k8s.io/api/core/v1.LocalObjectReference"}, 8825 } 8826 } 8827 8828 func schema_k8sio_api_core_v1_FlockerVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 8829 return common.OpenAPIDefinition{ 8830 Schema: spec.Schema{ 8831 SchemaProps: spec.SchemaProps{ 8832 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.", 8833 Type: []string{"object"}, 8834 Properties: map[string]spec.Schema{ 8835 "datasetName": { 8836 SchemaProps: spec.SchemaProps{ 8837 Description: "datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated", 8838 Type: []string{"string"}, 8839 Format: "", 8840 }, 8841 }, 8842 "datasetUUID": { 8843 SchemaProps: spec.SchemaProps{ 8844 Description: "datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset", 8845 Type: []string{"string"}, 8846 Format: "", 8847 }, 8848 }, 8849 }, 8850 }, 8851 }, 8852 } 8853 } 8854 8855 func schema_k8sio_api_core_v1_GCEPersistentDiskVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 8856 return common.OpenAPIDefinition{ 8857 Schema: spec.Schema{ 8858 SchemaProps: spec.SchemaProps{ 8859 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.", 8860 Type: []string{"object"}, 8861 Properties: map[string]spec.Schema{ 8862 "pdName": { 8863 SchemaProps: spec.SchemaProps{ 8864 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", 8865 Default: "", 8866 Type: []string{"string"}, 8867 Format: "", 8868 }, 8869 }, 8870 "fsType": { 8871 SchemaProps: spec.SchemaProps{ 8872 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", 8873 Type: []string{"string"}, 8874 Format: "", 8875 }, 8876 }, 8877 "partition": { 8878 SchemaProps: spec.SchemaProps{ 8879 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", 8880 Type: []string{"integer"}, 8881 Format: "int32", 8882 }, 8883 }, 8884 "readOnly": { 8885 SchemaProps: spec.SchemaProps{ 8886 Description: "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", 8887 Type: []string{"boolean"}, 8888 Format: "", 8889 }, 8890 }, 8891 }, 8892 Required: []string{"pdName"}, 8893 }, 8894 }, 8895 } 8896 } 8897 8898 func schema_k8sio_api_core_v1_GRPCAction(ref common.ReferenceCallback) common.OpenAPIDefinition { 8899 return common.OpenAPIDefinition{ 8900 Schema: spec.Schema{ 8901 SchemaProps: spec.SchemaProps{ 8902 Type: []string{"object"}, 8903 Properties: map[string]spec.Schema{ 8904 "port": { 8905 SchemaProps: spec.SchemaProps{ 8906 Description: "Port number of the gRPC service. Number must be in the range 1 to 65535.", 8907 Default: 0, 8908 Type: []string{"integer"}, 8909 Format: "int32", 8910 }, 8911 }, 8912 "service": { 8913 SchemaProps: spec.SchemaProps{ 8914 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.", 8915 Default: "", 8916 Type: []string{"string"}, 8917 Format: "", 8918 }, 8919 }, 8920 }, 8921 Required: []string{"port"}, 8922 }, 8923 }, 8924 } 8925 } 8926 8927 func schema_k8sio_api_core_v1_GitRepoVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 8928 return common.OpenAPIDefinition{ 8929 Schema: spec.Schema{ 8930 SchemaProps: spec.SchemaProps{ 8931 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.", 8932 Type: []string{"object"}, 8933 Properties: map[string]spec.Schema{ 8934 "repository": { 8935 SchemaProps: spec.SchemaProps{ 8936 Description: "repository is the URL", 8937 Default: "", 8938 Type: []string{"string"}, 8939 Format: "", 8940 }, 8941 }, 8942 "revision": { 8943 SchemaProps: spec.SchemaProps{ 8944 Description: "revision is the commit hash for the specified revision.", 8945 Type: []string{"string"}, 8946 Format: "", 8947 }, 8948 }, 8949 "directory": { 8950 SchemaProps: spec.SchemaProps{ 8951 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.", 8952 Type: []string{"string"}, 8953 Format: "", 8954 }, 8955 }, 8956 }, 8957 Required: []string{"repository"}, 8958 }, 8959 }, 8960 } 8961 } 8962 8963 func schema_k8sio_api_core_v1_GlusterfsPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 8964 return common.OpenAPIDefinition{ 8965 Schema: spec.Schema{ 8966 SchemaProps: spec.SchemaProps{ 8967 Description: "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", 8968 Type: []string{"object"}, 8969 Properties: map[string]spec.Schema{ 8970 "endpoints": { 8971 SchemaProps: spec.SchemaProps{ 8972 Description: "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", 8973 Default: "", 8974 Type: []string{"string"}, 8975 Format: "", 8976 }, 8977 }, 8978 "path": { 8979 SchemaProps: spec.SchemaProps{ 8980 Description: "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", 8981 Default: "", 8982 Type: []string{"string"}, 8983 Format: "", 8984 }, 8985 }, 8986 "readOnly": { 8987 SchemaProps: spec.SchemaProps{ 8988 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", 8989 Type: []string{"boolean"}, 8990 Format: "", 8991 }, 8992 }, 8993 "endpointsNamespace": { 8994 SchemaProps: spec.SchemaProps{ 8995 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", 8996 Type: []string{"string"}, 8997 Format: "", 8998 }, 8999 }, 9000 }, 9001 Required: []string{"endpoints", "path"}, 9002 }, 9003 }, 9004 } 9005 } 9006 9007 func schema_k8sio_api_core_v1_GlusterfsVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 9008 return common.OpenAPIDefinition{ 9009 Schema: spec.Schema{ 9010 SchemaProps: spec.SchemaProps{ 9011 Description: "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", 9012 Type: []string{"object"}, 9013 Properties: map[string]spec.Schema{ 9014 "endpoints": { 9015 SchemaProps: spec.SchemaProps{ 9016 Description: "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", 9017 Default: "", 9018 Type: []string{"string"}, 9019 Format: "", 9020 }, 9021 }, 9022 "path": { 9023 SchemaProps: spec.SchemaProps{ 9024 Description: "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", 9025 Default: "", 9026 Type: []string{"string"}, 9027 Format: "", 9028 }, 9029 }, 9030 "readOnly": { 9031 SchemaProps: spec.SchemaProps{ 9032 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", 9033 Type: []string{"boolean"}, 9034 Format: "", 9035 }, 9036 }, 9037 }, 9038 Required: []string{"endpoints", "path"}, 9039 }, 9040 }, 9041 } 9042 } 9043 9044 func schema_k8sio_api_core_v1_HTTPGetAction(ref common.ReferenceCallback) common.OpenAPIDefinition { 9045 return common.OpenAPIDefinition{ 9046 Schema: spec.Schema{ 9047 SchemaProps: spec.SchemaProps{ 9048 Description: "HTTPGetAction describes an action based on HTTP Get requests.", 9049 Type: []string{"object"}, 9050 Properties: map[string]spec.Schema{ 9051 "path": { 9052 SchemaProps: spec.SchemaProps{ 9053 Description: "Path to access on the HTTP server.", 9054 Type: []string{"string"}, 9055 Format: "", 9056 }, 9057 }, 9058 "port": { 9059 SchemaProps: spec.SchemaProps{ 9060 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.", 9061 Default: map[string]interface{}{}, 9062 Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), 9063 }, 9064 }, 9065 "host": { 9066 SchemaProps: spec.SchemaProps{ 9067 Description: "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", 9068 Type: []string{"string"}, 9069 Format: "", 9070 }, 9071 }, 9072 "scheme": { 9073 SchemaProps: spec.SchemaProps{ 9074 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://", 9075 Type: []string{"string"}, 9076 Format: "", 9077 Enum: []interface{}{"HTTP", "HTTPS"}, 9078 }, 9079 }, 9080 "httpHeaders": { 9081 SchemaProps: spec.SchemaProps{ 9082 Description: "Custom headers to set in the request. HTTP allows repeated headers.", 9083 Type: []string{"array"}, 9084 Items: &spec.SchemaOrArray{ 9085 Schema: &spec.Schema{ 9086 SchemaProps: spec.SchemaProps{ 9087 Default: map[string]interface{}{}, 9088 Ref: ref("k8s.io/api/core/v1.HTTPHeader"), 9089 }, 9090 }, 9091 }, 9092 }, 9093 }, 9094 }, 9095 Required: []string{"port"}, 9096 }, 9097 }, 9098 Dependencies: []string{ 9099 "k8s.io/api/core/v1.HTTPHeader", "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, 9100 } 9101 } 9102 9103 func schema_k8sio_api_core_v1_HTTPHeader(ref common.ReferenceCallback) common.OpenAPIDefinition { 9104 return common.OpenAPIDefinition{ 9105 Schema: spec.Schema{ 9106 SchemaProps: spec.SchemaProps{ 9107 Description: "HTTPHeader describes a custom header to be used in HTTP probes", 9108 Type: []string{"object"}, 9109 Properties: map[string]spec.Schema{ 9110 "name": { 9111 SchemaProps: spec.SchemaProps{ 9112 Description: "The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header.", 9113 Default: "", 9114 Type: []string{"string"}, 9115 Format: "", 9116 }, 9117 }, 9118 "value": { 9119 SchemaProps: spec.SchemaProps{ 9120 Description: "The header field value", 9121 Default: "", 9122 Type: []string{"string"}, 9123 Format: "", 9124 }, 9125 }, 9126 }, 9127 Required: []string{"name", "value"}, 9128 }, 9129 }, 9130 } 9131 } 9132 9133 func schema_k8sio_api_core_v1_HostAlias(ref common.ReferenceCallback) common.OpenAPIDefinition { 9134 return common.OpenAPIDefinition{ 9135 Schema: spec.Schema{ 9136 SchemaProps: spec.SchemaProps{ 9137 Description: "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.", 9138 Type: []string{"object"}, 9139 Properties: map[string]spec.Schema{ 9140 "ip": { 9141 SchemaProps: spec.SchemaProps{ 9142 Description: "IP address of the host file entry.", 9143 Type: []string{"string"}, 9144 Format: "", 9145 }, 9146 }, 9147 "hostnames": { 9148 SchemaProps: spec.SchemaProps{ 9149 Description: "Hostnames for the above IP address.", 9150 Type: []string{"array"}, 9151 Items: &spec.SchemaOrArray{ 9152 Schema: &spec.Schema{ 9153 SchemaProps: spec.SchemaProps{ 9154 Default: "", 9155 Type: []string{"string"}, 9156 Format: "", 9157 }, 9158 }, 9159 }, 9160 }, 9161 }, 9162 }, 9163 }, 9164 }, 9165 } 9166 } 9167 9168 func schema_k8sio_api_core_v1_HostPathVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 9169 return common.OpenAPIDefinition{ 9170 Schema: spec.Schema{ 9171 SchemaProps: spec.SchemaProps{ 9172 Description: "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.", 9173 Type: []string{"object"}, 9174 Properties: map[string]spec.Schema{ 9175 "path": { 9176 SchemaProps: spec.SchemaProps{ 9177 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", 9178 Default: "", 9179 Type: []string{"string"}, 9180 Format: "", 9181 }, 9182 }, 9183 "type": { 9184 SchemaProps: spec.SchemaProps{ 9185 Description: "type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath\n\nPossible enum values:\n - `\"\"` For backwards compatible, leave it empty if unset\n - `\"BlockDevice\"` A block device must exist at the given path\n - `\"CharDevice\"` A character device must exist at the given path\n - `\"Directory\"` A directory must exist at the given path\n - `\"DirectoryOrCreate\"` If nothing exists at the given path, an empty directory will be created there as needed with file mode 0755, having the same group and ownership with Kubelet.\n - `\"File\"` A file must exist at the given path\n - `\"FileOrCreate\"` If nothing exists at the given path, an empty file will be created there as needed with file mode 0644, having the same group and ownership with Kubelet.\n - `\"Socket\"` A UNIX socket must exist at the given path", 9186 Type: []string{"string"}, 9187 Format: "", 9188 Enum: []interface{}{"", "BlockDevice", "CharDevice", "Directory", "DirectoryOrCreate", "File", "FileOrCreate", "Socket"}, 9189 }, 9190 }, 9191 }, 9192 Required: []string{"path"}, 9193 }, 9194 }, 9195 } 9196 } 9197 9198 func schema_k8sio_api_core_v1_ISCSIPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 9199 return common.OpenAPIDefinition{ 9200 Schema: spec.Schema{ 9201 SchemaProps: spec.SchemaProps{ 9202 Description: "ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", 9203 Type: []string{"object"}, 9204 Properties: map[string]spec.Schema{ 9205 "targetPortal": { 9206 SchemaProps: spec.SchemaProps{ 9207 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).", 9208 Default: "", 9209 Type: []string{"string"}, 9210 Format: "", 9211 }, 9212 }, 9213 "iqn": { 9214 SchemaProps: spec.SchemaProps{ 9215 Description: "iqn is Target iSCSI Qualified Name.", 9216 Default: "", 9217 Type: []string{"string"}, 9218 Format: "", 9219 }, 9220 }, 9221 "lun": { 9222 SchemaProps: spec.SchemaProps{ 9223 Description: "lun is iSCSI Target Lun number.", 9224 Default: 0, 9225 Type: []string{"integer"}, 9226 Format: "int32", 9227 }, 9228 }, 9229 "iscsiInterface": { 9230 SchemaProps: spec.SchemaProps{ 9231 Description: "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", 9232 Type: []string{"string"}, 9233 Format: "", 9234 }, 9235 }, 9236 "fsType": { 9237 SchemaProps: spec.SchemaProps{ 9238 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", 9239 Type: []string{"string"}, 9240 Format: "", 9241 }, 9242 }, 9243 "readOnly": { 9244 SchemaProps: spec.SchemaProps{ 9245 Description: "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", 9246 Type: []string{"boolean"}, 9247 Format: "", 9248 }, 9249 }, 9250 "portals": { 9251 SchemaProps: spec.SchemaProps{ 9252 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).", 9253 Type: []string{"array"}, 9254 Items: &spec.SchemaOrArray{ 9255 Schema: &spec.Schema{ 9256 SchemaProps: spec.SchemaProps{ 9257 Default: "", 9258 Type: []string{"string"}, 9259 Format: "", 9260 }, 9261 }, 9262 }, 9263 }, 9264 }, 9265 "chapAuthDiscovery": { 9266 SchemaProps: spec.SchemaProps{ 9267 Description: "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication", 9268 Type: []string{"boolean"}, 9269 Format: "", 9270 }, 9271 }, 9272 "chapAuthSession": { 9273 SchemaProps: spec.SchemaProps{ 9274 Description: "chapAuthSession defines whether support iSCSI Session CHAP authentication", 9275 Type: []string{"boolean"}, 9276 Format: "", 9277 }, 9278 }, 9279 "secretRef": { 9280 SchemaProps: spec.SchemaProps{ 9281 Description: "secretRef is the CHAP Secret for iSCSI target and initiator authentication", 9282 Ref: ref("k8s.io/api/core/v1.SecretReference"), 9283 }, 9284 }, 9285 "initiatorName": { 9286 SchemaProps: spec.SchemaProps{ 9287 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.", 9288 Type: []string{"string"}, 9289 Format: "", 9290 }, 9291 }, 9292 }, 9293 Required: []string{"targetPortal", "iqn", "lun"}, 9294 }, 9295 }, 9296 Dependencies: []string{ 9297 "k8s.io/api/core/v1.SecretReference"}, 9298 } 9299 } 9300 9301 func schema_k8sio_api_core_v1_ISCSIVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 9302 return common.OpenAPIDefinition{ 9303 Schema: spec.Schema{ 9304 SchemaProps: spec.SchemaProps{ 9305 Description: "Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", 9306 Type: []string{"object"}, 9307 Properties: map[string]spec.Schema{ 9308 "targetPortal": { 9309 SchemaProps: spec.SchemaProps{ 9310 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).", 9311 Default: "", 9312 Type: []string{"string"}, 9313 Format: "", 9314 }, 9315 }, 9316 "iqn": { 9317 SchemaProps: spec.SchemaProps{ 9318 Description: "iqn is the target iSCSI Qualified Name.", 9319 Default: "", 9320 Type: []string{"string"}, 9321 Format: "", 9322 }, 9323 }, 9324 "lun": { 9325 SchemaProps: spec.SchemaProps{ 9326 Description: "lun represents iSCSI Target Lun number.", 9327 Default: 0, 9328 Type: []string{"integer"}, 9329 Format: "int32", 9330 }, 9331 }, 9332 "iscsiInterface": { 9333 SchemaProps: spec.SchemaProps{ 9334 Description: "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", 9335 Type: []string{"string"}, 9336 Format: "", 9337 }, 9338 }, 9339 "fsType": { 9340 SchemaProps: spec.SchemaProps{ 9341 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", 9342 Type: []string{"string"}, 9343 Format: "", 9344 }, 9345 }, 9346 "readOnly": { 9347 SchemaProps: spec.SchemaProps{ 9348 Description: "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", 9349 Type: []string{"boolean"}, 9350 Format: "", 9351 }, 9352 }, 9353 "portals": { 9354 SchemaProps: spec.SchemaProps{ 9355 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).", 9356 Type: []string{"array"}, 9357 Items: &spec.SchemaOrArray{ 9358 Schema: &spec.Schema{ 9359 SchemaProps: spec.SchemaProps{ 9360 Default: "", 9361 Type: []string{"string"}, 9362 Format: "", 9363 }, 9364 }, 9365 }, 9366 }, 9367 }, 9368 "chapAuthDiscovery": { 9369 SchemaProps: spec.SchemaProps{ 9370 Description: "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication", 9371 Type: []string{"boolean"}, 9372 Format: "", 9373 }, 9374 }, 9375 "chapAuthSession": { 9376 SchemaProps: spec.SchemaProps{ 9377 Description: "chapAuthSession defines whether support iSCSI Session CHAP authentication", 9378 Type: []string{"boolean"}, 9379 Format: "", 9380 }, 9381 }, 9382 "secretRef": { 9383 SchemaProps: spec.SchemaProps{ 9384 Description: "secretRef is the CHAP Secret for iSCSI target and initiator authentication", 9385 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 9386 }, 9387 }, 9388 "initiatorName": { 9389 SchemaProps: spec.SchemaProps{ 9390 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.", 9391 Type: []string{"string"}, 9392 Format: "", 9393 }, 9394 }, 9395 }, 9396 Required: []string{"targetPortal", "iqn", "lun"}, 9397 }, 9398 }, 9399 Dependencies: []string{ 9400 "k8s.io/api/core/v1.LocalObjectReference"}, 9401 } 9402 } 9403 9404 func schema_k8sio_api_core_v1_KeyToPath(ref common.ReferenceCallback) common.OpenAPIDefinition { 9405 return common.OpenAPIDefinition{ 9406 Schema: spec.Schema{ 9407 SchemaProps: spec.SchemaProps{ 9408 Description: "Maps a string key to a path within a volume.", 9409 Type: []string{"object"}, 9410 Properties: map[string]spec.Schema{ 9411 "key": { 9412 SchemaProps: spec.SchemaProps{ 9413 Description: "key is the key to project.", 9414 Default: "", 9415 Type: []string{"string"}, 9416 Format: "", 9417 }, 9418 }, 9419 "path": { 9420 SchemaProps: spec.SchemaProps{ 9421 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 '..'.", 9422 Default: "", 9423 Type: []string{"string"}, 9424 Format: "", 9425 }, 9426 }, 9427 "mode": { 9428 SchemaProps: spec.SchemaProps{ 9429 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.", 9430 Type: []string{"integer"}, 9431 Format: "int32", 9432 }, 9433 }, 9434 }, 9435 Required: []string{"key", "path"}, 9436 }, 9437 }, 9438 } 9439 } 9440 9441 func schema_k8sio_api_core_v1_Lifecycle(ref common.ReferenceCallback) common.OpenAPIDefinition { 9442 return common.OpenAPIDefinition{ 9443 Schema: spec.Schema{ 9444 SchemaProps: spec.SchemaProps{ 9445 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.", 9446 Type: []string{"object"}, 9447 Properties: map[string]spec.Schema{ 9448 "postStart": { 9449 SchemaProps: spec.SchemaProps{ 9450 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", 9451 Ref: ref("k8s.io/api/core/v1.LifecycleHandler"), 9452 }, 9453 }, 9454 "preStop": { 9455 SchemaProps: spec.SchemaProps{ 9456 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", 9457 Ref: ref("k8s.io/api/core/v1.LifecycleHandler"), 9458 }, 9459 }, 9460 }, 9461 }, 9462 }, 9463 Dependencies: []string{ 9464 "k8s.io/api/core/v1.LifecycleHandler"}, 9465 } 9466 } 9467 9468 func schema_k8sio_api_core_v1_LifecycleHandler(ref common.ReferenceCallback) common.OpenAPIDefinition { 9469 return common.OpenAPIDefinition{ 9470 Schema: spec.Schema{ 9471 SchemaProps: spec.SchemaProps{ 9472 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.", 9473 Type: []string{"object"}, 9474 Properties: map[string]spec.Schema{ 9475 "exec": { 9476 SchemaProps: spec.SchemaProps{ 9477 Description: "Exec specifies the action to take.", 9478 Ref: ref("k8s.io/api/core/v1.ExecAction"), 9479 }, 9480 }, 9481 "httpGet": { 9482 SchemaProps: spec.SchemaProps{ 9483 Description: "HTTPGet specifies the http request to perform.", 9484 Ref: ref("k8s.io/api/core/v1.HTTPGetAction"), 9485 }, 9486 }, 9487 "tcpSocket": { 9488 SchemaProps: spec.SchemaProps{ 9489 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.", 9490 Ref: ref("k8s.io/api/core/v1.TCPSocketAction"), 9491 }, 9492 }, 9493 }, 9494 }, 9495 }, 9496 Dependencies: []string{ 9497 "k8s.io/api/core/v1.ExecAction", "k8s.io/api/core/v1.HTTPGetAction", "k8s.io/api/core/v1.TCPSocketAction"}, 9498 } 9499 } 9500 9501 func schema_k8sio_api_core_v1_LimitRange(ref common.ReferenceCallback) common.OpenAPIDefinition { 9502 return common.OpenAPIDefinition{ 9503 Schema: spec.Schema{ 9504 SchemaProps: spec.SchemaProps{ 9505 Description: "LimitRange sets resource usage limits for each kind of resource in a Namespace.", 9506 Type: []string{"object"}, 9507 Properties: map[string]spec.Schema{ 9508 "kind": { 9509 SchemaProps: spec.SchemaProps{ 9510 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 9511 Type: []string{"string"}, 9512 Format: "", 9513 }, 9514 }, 9515 "apiVersion": { 9516 SchemaProps: spec.SchemaProps{ 9517 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 9518 Type: []string{"string"}, 9519 Format: "", 9520 }, 9521 }, 9522 "metadata": { 9523 SchemaProps: spec.SchemaProps{ 9524 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 9525 Default: map[string]interface{}{}, 9526 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 9527 }, 9528 }, 9529 "spec": { 9530 SchemaProps: spec.SchemaProps{ 9531 Description: "Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", 9532 Default: map[string]interface{}{}, 9533 Ref: ref("k8s.io/api/core/v1.LimitRangeSpec"), 9534 }, 9535 }, 9536 }, 9537 }, 9538 }, 9539 Dependencies: []string{ 9540 "k8s.io/api/core/v1.LimitRangeSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 9541 } 9542 } 9543 9544 func schema_k8sio_api_core_v1_LimitRangeItem(ref common.ReferenceCallback) common.OpenAPIDefinition { 9545 return common.OpenAPIDefinition{ 9546 Schema: spec.Schema{ 9547 SchemaProps: spec.SchemaProps{ 9548 Description: "LimitRangeItem defines a min/max usage limit for any resource that matches on kind.", 9549 Type: []string{"object"}, 9550 Properties: map[string]spec.Schema{ 9551 "type": { 9552 SchemaProps: spec.SchemaProps{ 9553 Description: "Type of resource that this limit applies to.", 9554 Default: "", 9555 Type: []string{"string"}, 9556 Format: "", 9557 }, 9558 }, 9559 "max": { 9560 SchemaProps: spec.SchemaProps{ 9561 Description: "Max usage constraints on this kind by resource name.", 9562 Type: []string{"object"}, 9563 AdditionalProperties: &spec.SchemaOrBool{ 9564 Allows: true, 9565 Schema: &spec.Schema{ 9566 SchemaProps: spec.SchemaProps{ 9567 Default: map[string]interface{}{}, 9568 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 9569 }, 9570 }, 9571 }, 9572 }, 9573 }, 9574 "min": { 9575 SchemaProps: spec.SchemaProps{ 9576 Description: "Min usage constraints on this kind by resource name.", 9577 Type: []string{"object"}, 9578 AdditionalProperties: &spec.SchemaOrBool{ 9579 Allows: true, 9580 Schema: &spec.Schema{ 9581 SchemaProps: spec.SchemaProps{ 9582 Default: map[string]interface{}{}, 9583 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 9584 }, 9585 }, 9586 }, 9587 }, 9588 }, 9589 "default": { 9590 SchemaProps: spec.SchemaProps{ 9591 Description: "Default resource requirement limit value by resource name if resource limit is omitted.", 9592 Type: []string{"object"}, 9593 AdditionalProperties: &spec.SchemaOrBool{ 9594 Allows: true, 9595 Schema: &spec.Schema{ 9596 SchemaProps: spec.SchemaProps{ 9597 Default: map[string]interface{}{}, 9598 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 9599 }, 9600 }, 9601 }, 9602 }, 9603 }, 9604 "defaultRequest": { 9605 SchemaProps: spec.SchemaProps{ 9606 Description: "DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.", 9607 Type: []string{"object"}, 9608 AdditionalProperties: &spec.SchemaOrBool{ 9609 Allows: true, 9610 Schema: &spec.Schema{ 9611 SchemaProps: spec.SchemaProps{ 9612 Default: map[string]interface{}{}, 9613 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 9614 }, 9615 }, 9616 }, 9617 }, 9618 }, 9619 "maxLimitRequestRatio": { 9620 SchemaProps: spec.SchemaProps{ 9621 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.", 9622 Type: []string{"object"}, 9623 AdditionalProperties: &spec.SchemaOrBool{ 9624 Allows: true, 9625 Schema: &spec.Schema{ 9626 SchemaProps: spec.SchemaProps{ 9627 Default: map[string]interface{}{}, 9628 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 9629 }, 9630 }, 9631 }, 9632 }, 9633 }, 9634 }, 9635 Required: []string{"type"}, 9636 }, 9637 }, 9638 Dependencies: []string{ 9639 "k8s.io/apimachinery/pkg/api/resource.Quantity"}, 9640 } 9641 } 9642 9643 func schema_k8sio_api_core_v1_LimitRangeList(ref common.ReferenceCallback) common.OpenAPIDefinition { 9644 return common.OpenAPIDefinition{ 9645 Schema: spec.Schema{ 9646 SchemaProps: spec.SchemaProps{ 9647 Description: "LimitRangeList is a list of LimitRange items.", 9648 Type: []string{"object"}, 9649 Properties: map[string]spec.Schema{ 9650 "kind": { 9651 SchemaProps: spec.SchemaProps{ 9652 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 9653 Type: []string{"string"}, 9654 Format: "", 9655 }, 9656 }, 9657 "apiVersion": { 9658 SchemaProps: spec.SchemaProps{ 9659 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 9660 Type: []string{"string"}, 9661 Format: "", 9662 }, 9663 }, 9664 "metadata": { 9665 SchemaProps: spec.SchemaProps{ 9666 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 9667 Default: map[string]interface{}{}, 9668 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 9669 }, 9670 }, 9671 "items": { 9672 SchemaProps: spec.SchemaProps{ 9673 Description: "Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", 9674 Type: []string{"array"}, 9675 Items: &spec.SchemaOrArray{ 9676 Schema: &spec.Schema{ 9677 SchemaProps: spec.SchemaProps{ 9678 Default: map[string]interface{}{}, 9679 Ref: ref("k8s.io/api/core/v1.LimitRange"), 9680 }, 9681 }, 9682 }, 9683 }, 9684 }, 9685 }, 9686 Required: []string{"items"}, 9687 }, 9688 }, 9689 Dependencies: []string{ 9690 "k8s.io/api/core/v1.LimitRange", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 9691 } 9692 } 9693 9694 func schema_k8sio_api_core_v1_LimitRangeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 9695 return common.OpenAPIDefinition{ 9696 Schema: spec.Schema{ 9697 SchemaProps: spec.SchemaProps{ 9698 Description: "LimitRangeSpec defines a min/max usage limit for resources that match on kind.", 9699 Type: []string{"object"}, 9700 Properties: map[string]spec.Schema{ 9701 "limits": { 9702 SchemaProps: spec.SchemaProps{ 9703 Description: "Limits is the list of LimitRangeItem objects that are enforced.", 9704 Type: []string{"array"}, 9705 Items: &spec.SchemaOrArray{ 9706 Schema: &spec.Schema{ 9707 SchemaProps: spec.SchemaProps{ 9708 Default: map[string]interface{}{}, 9709 Ref: ref("k8s.io/api/core/v1.LimitRangeItem"), 9710 }, 9711 }, 9712 }, 9713 }, 9714 }, 9715 }, 9716 Required: []string{"limits"}, 9717 }, 9718 }, 9719 Dependencies: []string{ 9720 "k8s.io/api/core/v1.LimitRangeItem"}, 9721 } 9722 } 9723 9724 func schema_k8sio_api_core_v1_List(ref common.ReferenceCallback) common.OpenAPIDefinition { 9725 return common.OpenAPIDefinition{ 9726 Schema: spec.Schema{ 9727 SchemaProps: spec.SchemaProps{ 9728 Description: "List holds a list of objects, which may not be known by the server.", 9729 Type: []string{"object"}, 9730 Properties: map[string]spec.Schema{ 9731 "kind": { 9732 SchemaProps: spec.SchemaProps{ 9733 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 9734 Type: []string{"string"}, 9735 Format: "", 9736 }, 9737 }, 9738 "apiVersion": { 9739 SchemaProps: spec.SchemaProps{ 9740 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 9741 Type: []string{"string"}, 9742 Format: "", 9743 }, 9744 }, 9745 "metadata": { 9746 SchemaProps: spec.SchemaProps{ 9747 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 9748 Default: map[string]interface{}{}, 9749 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 9750 }, 9751 }, 9752 "items": { 9753 SchemaProps: spec.SchemaProps{ 9754 Description: "List of objects", 9755 Type: []string{"array"}, 9756 Items: &spec.SchemaOrArray{ 9757 Schema: &spec.Schema{ 9758 SchemaProps: spec.SchemaProps{ 9759 Default: map[string]interface{}{}, 9760 Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), 9761 }, 9762 }, 9763 }, 9764 }, 9765 }, 9766 }, 9767 Required: []string{"items"}, 9768 }, 9769 }, 9770 Dependencies: []string{ 9771 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/runtime.RawExtension"}, 9772 } 9773 } 9774 9775 func schema_k8sio_api_core_v1_LoadBalancerIngress(ref common.ReferenceCallback) common.OpenAPIDefinition { 9776 return common.OpenAPIDefinition{ 9777 Schema: spec.Schema{ 9778 SchemaProps: spec.SchemaProps{ 9779 Description: "LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.", 9780 Type: []string{"object"}, 9781 Properties: map[string]spec.Schema{ 9782 "ip": { 9783 SchemaProps: spec.SchemaProps{ 9784 Description: "IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)", 9785 Type: []string{"string"}, 9786 Format: "", 9787 }, 9788 }, 9789 "hostname": { 9790 SchemaProps: spec.SchemaProps{ 9791 Description: "Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)", 9792 Type: []string{"string"}, 9793 Format: "", 9794 }, 9795 }, 9796 "ports": { 9797 VendorExtensible: spec.VendorExtensible{ 9798 Extensions: spec.Extensions{ 9799 "x-kubernetes-list-type": "atomic", 9800 }, 9801 }, 9802 SchemaProps: spec.SchemaProps{ 9803 Description: "Ports is a list of records of service ports If used, every port defined in the service should have an entry in it", 9804 Type: []string{"array"}, 9805 Items: &spec.SchemaOrArray{ 9806 Schema: &spec.Schema{ 9807 SchemaProps: spec.SchemaProps{ 9808 Default: map[string]interface{}{}, 9809 Ref: ref("k8s.io/api/core/v1.PortStatus"), 9810 }, 9811 }, 9812 }, 9813 }, 9814 }, 9815 }, 9816 }, 9817 }, 9818 Dependencies: []string{ 9819 "k8s.io/api/core/v1.PortStatus"}, 9820 } 9821 } 9822 9823 func schema_k8sio_api_core_v1_LoadBalancerStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 9824 return common.OpenAPIDefinition{ 9825 Schema: spec.Schema{ 9826 SchemaProps: spec.SchemaProps{ 9827 Description: "LoadBalancerStatus represents the status of a load-balancer.", 9828 Type: []string{"object"}, 9829 Properties: map[string]spec.Schema{ 9830 "ingress": { 9831 SchemaProps: spec.SchemaProps{ 9832 Description: "Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points.", 9833 Type: []string{"array"}, 9834 Items: &spec.SchemaOrArray{ 9835 Schema: &spec.Schema{ 9836 SchemaProps: spec.SchemaProps{ 9837 Default: map[string]interface{}{}, 9838 Ref: ref("k8s.io/api/core/v1.LoadBalancerIngress"), 9839 }, 9840 }, 9841 }, 9842 }, 9843 }, 9844 }, 9845 }, 9846 }, 9847 Dependencies: []string{ 9848 "k8s.io/api/core/v1.LoadBalancerIngress"}, 9849 } 9850 } 9851 9852 func schema_k8sio_api_core_v1_LocalObjectReference(ref common.ReferenceCallback) common.OpenAPIDefinition { 9853 return common.OpenAPIDefinition{ 9854 Schema: spec.Schema{ 9855 SchemaProps: spec.SchemaProps{ 9856 Description: "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", 9857 Type: []string{"object"}, 9858 Properties: map[string]spec.Schema{ 9859 "name": { 9860 SchemaProps: spec.SchemaProps{ 9861 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", 9862 Type: []string{"string"}, 9863 Format: "", 9864 }, 9865 }, 9866 }, 9867 }, 9868 VendorExtensible: spec.VendorExtensible{ 9869 Extensions: spec.Extensions{ 9870 "x-kubernetes-map-type": "atomic", 9871 }, 9872 }, 9873 }, 9874 } 9875 } 9876 9877 func schema_k8sio_api_core_v1_LocalVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 9878 return common.OpenAPIDefinition{ 9879 Schema: spec.Schema{ 9880 SchemaProps: spec.SchemaProps{ 9881 Description: "Local represents directly-attached storage with node affinity (Beta feature)", 9882 Type: []string{"object"}, 9883 Properties: map[string]spec.Schema{ 9884 "path": { 9885 SchemaProps: spec.SchemaProps{ 9886 Description: "path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...).", 9887 Default: "", 9888 Type: []string{"string"}, 9889 Format: "", 9890 }, 9891 }, 9892 "fsType": { 9893 SchemaProps: spec.SchemaProps{ 9894 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.", 9895 Type: []string{"string"}, 9896 Format: "", 9897 }, 9898 }, 9899 }, 9900 Required: []string{"path"}, 9901 }, 9902 }, 9903 } 9904 } 9905 9906 func schema_k8sio_api_core_v1_NFSVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 9907 return common.OpenAPIDefinition{ 9908 Schema: spec.Schema{ 9909 SchemaProps: spec.SchemaProps{ 9910 Description: "Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.", 9911 Type: []string{"object"}, 9912 Properties: map[string]spec.Schema{ 9913 "server": { 9914 SchemaProps: spec.SchemaProps{ 9915 Description: "server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", 9916 Default: "", 9917 Type: []string{"string"}, 9918 Format: "", 9919 }, 9920 }, 9921 "path": { 9922 SchemaProps: spec.SchemaProps{ 9923 Description: "path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", 9924 Default: "", 9925 Type: []string{"string"}, 9926 Format: "", 9927 }, 9928 }, 9929 "readOnly": { 9930 SchemaProps: spec.SchemaProps{ 9931 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", 9932 Type: []string{"boolean"}, 9933 Format: "", 9934 }, 9935 }, 9936 }, 9937 Required: []string{"server", "path"}, 9938 }, 9939 }, 9940 } 9941 } 9942 9943 func schema_k8sio_api_core_v1_Namespace(ref common.ReferenceCallback) common.OpenAPIDefinition { 9944 return common.OpenAPIDefinition{ 9945 Schema: spec.Schema{ 9946 SchemaProps: spec.SchemaProps{ 9947 Description: "Namespace provides a scope for Names. Use of multiple namespaces is optional.", 9948 Type: []string{"object"}, 9949 Properties: map[string]spec.Schema{ 9950 "kind": { 9951 SchemaProps: spec.SchemaProps{ 9952 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 9953 Type: []string{"string"}, 9954 Format: "", 9955 }, 9956 }, 9957 "apiVersion": { 9958 SchemaProps: spec.SchemaProps{ 9959 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 9960 Type: []string{"string"}, 9961 Format: "", 9962 }, 9963 }, 9964 "metadata": { 9965 SchemaProps: spec.SchemaProps{ 9966 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 9967 Default: map[string]interface{}{}, 9968 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 9969 }, 9970 }, 9971 "spec": { 9972 SchemaProps: spec.SchemaProps{ 9973 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", 9974 Default: map[string]interface{}{}, 9975 Ref: ref("k8s.io/api/core/v1.NamespaceSpec"), 9976 }, 9977 }, 9978 "status": { 9979 SchemaProps: spec.SchemaProps{ 9980 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", 9981 Default: map[string]interface{}{}, 9982 Ref: ref("k8s.io/api/core/v1.NamespaceStatus"), 9983 }, 9984 }, 9985 }, 9986 }, 9987 }, 9988 Dependencies: []string{ 9989 "k8s.io/api/core/v1.NamespaceSpec", "k8s.io/api/core/v1.NamespaceStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 9990 } 9991 } 9992 9993 func schema_k8sio_api_core_v1_NamespaceCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 9994 return common.OpenAPIDefinition{ 9995 Schema: spec.Schema{ 9996 SchemaProps: spec.SchemaProps{ 9997 Description: "NamespaceCondition contains details about state of namespace.", 9998 Type: []string{"object"}, 9999 Properties: map[string]spec.Schema{ 10000 "type": { 10001 SchemaProps: spec.SchemaProps{ 10002 Description: "Type of namespace controller condition.", 10003 Default: "", 10004 Type: []string{"string"}, 10005 Format: "", 10006 }, 10007 }, 10008 "status": { 10009 SchemaProps: spec.SchemaProps{ 10010 Description: "Status of the condition, one of True, False, Unknown.", 10011 Default: "", 10012 Type: []string{"string"}, 10013 Format: "", 10014 }, 10015 }, 10016 "lastTransitionTime": { 10017 SchemaProps: spec.SchemaProps{ 10018 Default: map[string]interface{}{}, 10019 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 10020 }, 10021 }, 10022 "reason": { 10023 SchemaProps: spec.SchemaProps{ 10024 Type: []string{"string"}, 10025 Format: "", 10026 }, 10027 }, 10028 "message": { 10029 SchemaProps: spec.SchemaProps{ 10030 Type: []string{"string"}, 10031 Format: "", 10032 }, 10033 }, 10034 }, 10035 Required: []string{"type", "status"}, 10036 }, 10037 }, 10038 Dependencies: []string{ 10039 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 10040 } 10041 } 10042 10043 func schema_k8sio_api_core_v1_NamespaceList(ref common.ReferenceCallback) common.OpenAPIDefinition { 10044 return common.OpenAPIDefinition{ 10045 Schema: spec.Schema{ 10046 SchemaProps: spec.SchemaProps{ 10047 Description: "NamespaceList is a list of Namespaces.", 10048 Type: []string{"object"}, 10049 Properties: map[string]spec.Schema{ 10050 "kind": { 10051 SchemaProps: spec.SchemaProps{ 10052 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 10053 Type: []string{"string"}, 10054 Format: "", 10055 }, 10056 }, 10057 "apiVersion": { 10058 SchemaProps: spec.SchemaProps{ 10059 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 10060 Type: []string{"string"}, 10061 Format: "", 10062 }, 10063 }, 10064 "metadata": { 10065 SchemaProps: spec.SchemaProps{ 10066 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 10067 Default: map[string]interface{}{}, 10068 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 10069 }, 10070 }, 10071 "items": { 10072 SchemaProps: spec.SchemaProps{ 10073 Description: "Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", 10074 Type: []string{"array"}, 10075 Items: &spec.SchemaOrArray{ 10076 Schema: &spec.Schema{ 10077 SchemaProps: spec.SchemaProps{ 10078 Default: map[string]interface{}{}, 10079 Ref: ref("k8s.io/api/core/v1.Namespace"), 10080 }, 10081 }, 10082 }, 10083 }, 10084 }, 10085 }, 10086 Required: []string{"items"}, 10087 }, 10088 }, 10089 Dependencies: []string{ 10090 "k8s.io/api/core/v1.Namespace", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 10091 } 10092 } 10093 10094 func schema_k8sio_api_core_v1_NamespaceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 10095 return common.OpenAPIDefinition{ 10096 Schema: spec.Schema{ 10097 SchemaProps: spec.SchemaProps{ 10098 Description: "NamespaceSpec describes the attributes on a Namespace.", 10099 Type: []string{"object"}, 10100 Properties: map[string]spec.Schema{ 10101 "finalizers": { 10102 SchemaProps: spec.SchemaProps{ 10103 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/", 10104 Type: []string{"array"}, 10105 Items: &spec.SchemaOrArray{ 10106 Schema: &spec.Schema{ 10107 SchemaProps: spec.SchemaProps{ 10108 Default: "", 10109 Type: []string{"string"}, 10110 Format: "", 10111 }, 10112 }, 10113 }, 10114 }, 10115 }, 10116 }, 10117 }, 10118 }, 10119 } 10120 } 10121 10122 func schema_k8sio_api_core_v1_NamespaceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 10123 return common.OpenAPIDefinition{ 10124 Schema: spec.Schema{ 10125 SchemaProps: spec.SchemaProps{ 10126 Description: "NamespaceStatus is information about the current status of a Namespace.", 10127 Type: []string{"object"}, 10128 Properties: map[string]spec.Schema{ 10129 "phase": { 10130 SchemaProps: spec.SchemaProps{ 10131 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", 10132 Type: []string{"string"}, 10133 Format: "", 10134 Enum: []interface{}{"Active", "Terminating"}, 10135 }, 10136 }, 10137 "conditions": { 10138 VendorExtensible: spec.VendorExtensible{ 10139 Extensions: spec.Extensions{ 10140 "x-kubernetes-patch-merge-key": "type", 10141 "x-kubernetes-patch-strategy": "merge", 10142 }, 10143 }, 10144 SchemaProps: spec.SchemaProps{ 10145 Description: "Represents the latest available observations of a namespace's current state.", 10146 Type: []string{"array"}, 10147 Items: &spec.SchemaOrArray{ 10148 Schema: &spec.Schema{ 10149 SchemaProps: spec.SchemaProps{ 10150 Default: map[string]interface{}{}, 10151 Ref: ref("k8s.io/api/core/v1.NamespaceCondition"), 10152 }, 10153 }, 10154 }, 10155 }, 10156 }, 10157 }, 10158 }, 10159 }, 10160 Dependencies: []string{ 10161 "k8s.io/api/core/v1.NamespaceCondition"}, 10162 } 10163 } 10164 10165 func schema_k8sio_api_core_v1_Node(ref common.ReferenceCallback) common.OpenAPIDefinition { 10166 return common.OpenAPIDefinition{ 10167 Schema: spec.Schema{ 10168 SchemaProps: spec.SchemaProps{ 10169 Description: "Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd).", 10170 Type: []string{"object"}, 10171 Properties: map[string]spec.Schema{ 10172 "kind": { 10173 SchemaProps: spec.SchemaProps{ 10174 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 10175 Type: []string{"string"}, 10176 Format: "", 10177 }, 10178 }, 10179 "apiVersion": { 10180 SchemaProps: spec.SchemaProps{ 10181 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 10182 Type: []string{"string"}, 10183 Format: "", 10184 }, 10185 }, 10186 "metadata": { 10187 SchemaProps: spec.SchemaProps{ 10188 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 10189 Default: map[string]interface{}{}, 10190 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 10191 }, 10192 }, 10193 "spec": { 10194 SchemaProps: spec.SchemaProps{ 10195 Description: "Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", 10196 Default: map[string]interface{}{}, 10197 Ref: ref("k8s.io/api/core/v1.NodeSpec"), 10198 }, 10199 }, 10200 "status": { 10201 SchemaProps: spec.SchemaProps{ 10202 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", 10203 Default: map[string]interface{}{}, 10204 Ref: ref("k8s.io/api/core/v1.NodeStatus"), 10205 }, 10206 }, 10207 }, 10208 }, 10209 }, 10210 Dependencies: []string{ 10211 "k8s.io/api/core/v1.NodeSpec", "k8s.io/api/core/v1.NodeStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 10212 } 10213 } 10214 10215 func schema_k8sio_api_core_v1_NodeAddress(ref common.ReferenceCallback) common.OpenAPIDefinition { 10216 return common.OpenAPIDefinition{ 10217 Schema: spec.Schema{ 10218 SchemaProps: spec.SchemaProps{ 10219 Description: "NodeAddress contains information for the node's address.", 10220 Type: []string{"object"}, 10221 Properties: map[string]spec.Schema{ 10222 "type": { 10223 SchemaProps: spec.SchemaProps{ 10224 Description: "Node address type, one of Hostname, ExternalIP or InternalIP.", 10225 Default: "", 10226 Type: []string{"string"}, 10227 Format: "", 10228 }, 10229 }, 10230 "address": { 10231 SchemaProps: spec.SchemaProps{ 10232 Description: "The node address.", 10233 Default: "", 10234 Type: []string{"string"}, 10235 Format: "", 10236 }, 10237 }, 10238 }, 10239 Required: []string{"type", "address"}, 10240 }, 10241 }, 10242 } 10243 } 10244 10245 func schema_k8sio_api_core_v1_NodeAffinity(ref common.ReferenceCallback) common.OpenAPIDefinition { 10246 return common.OpenAPIDefinition{ 10247 Schema: spec.Schema{ 10248 SchemaProps: spec.SchemaProps{ 10249 Description: "Node affinity is a group of node affinity scheduling rules.", 10250 Type: []string{"object"}, 10251 Properties: map[string]spec.Schema{ 10252 "requiredDuringSchedulingIgnoredDuringExecution": { 10253 SchemaProps: spec.SchemaProps{ 10254 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.", 10255 Ref: ref("k8s.io/api/core/v1.NodeSelector"), 10256 }, 10257 }, 10258 "preferredDuringSchedulingIgnoredDuringExecution": { 10259 SchemaProps: spec.SchemaProps{ 10260 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.", 10261 Type: []string{"array"}, 10262 Items: &spec.SchemaOrArray{ 10263 Schema: &spec.Schema{ 10264 SchemaProps: spec.SchemaProps{ 10265 Default: map[string]interface{}{}, 10266 Ref: ref("k8s.io/api/core/v1.PreferredSchedulingTerm"), 10267 }, 10268 }, 10269 }, 10270 }, 10271 }, 10272 }, 10273 }, 10274 }, 10275 Dependencies: []string{ 10276 "k8s.io/api/core/v1.NodeSelector", "k8s.io/api/core/v1.PreferredSchedulingTerm"}, 10277 } 10278 } 10279 10280 func schema_k8sio_api_core_v1_NodeCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 10281 return common.OpenAPIDefinition{ 10282 Schema: spec.Schema{ 10283 SchemaProps: spec.SchemaProps{ 10284 Description: "NodeCondition contains condition information for a node.", 10285 Type: []string{"object"}, 10286 Properties: map[string]spec.Schema{ 10287 "type": { 10288 SchemaProps: spec.SchemaProps{ 10289 Description: "Type of node condition.", 10290 Default: "", 10291 Type: []string{"string"}, 10292 Format: "", 10293 }, 10294 }, 10295 "status": { 10296 SchemaProps: spec.SchemaProps{ 10297 Description: "Status of the condition, one of True, False, Unknown.", 10298 Default: "", 10299 Type: []string{"string"}, 10300 Format: "", 10301 }, 10302 }, 10303 "lastHeartbeatTime": { 10304 SchemaProps: spec.SchemaProps{ 10305 Description: "Last time we got an update on a given condition.", 10306 Default: map[string]interface{}{}, 10307 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 10308 }, 10309 }, 10310 "lastTransitionTime": { 10311 SchemaProps: spec.SchemaProps{ 10312 Description: "Last time the condition transit from one status to another.", 10313 Default: map[string]interface{}{}, 10314 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 10315 }, 10316 }, 10317 "reason": { 10318 SchemaProps: spec.SchemaProps{ 10319 Description: "(brief) reason for the condition's last transition.", 10320 Type: []string{"string"}, 10321 Format: "", 10322 }, 10323 }, 10324 "message": { 10325 SchemaProps: spec.SchemaProps{ 10326 Description: "Human readable message indicating details about last transition.", 10327 Type: []string{"string"}, 10328 Format: "", 10329 }, 10330 }, 10331 }, 10332 Required: []string{"type", "status"}, 10333 }, 10334 }, 10335 Dependencies: []string{ 10336 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 10337 } 10338 } 10339 10340 func schema_k8sio_api_core_v1_NodeConfigSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 10341 return common.OpenAPIDefinition{ 10342 Schema: spec.Schema{ 10343 SchemaProps: spec.SchemaProps{ 10344 Description: "NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22", 10345 Type: []string{"object"}, 10346 Properties: map[string]spec.Schema{ 10347 "configMap": { 10348 SchemaProps: spec.SchemaProps{ 10349 Description: "ConfigMap is a reference to a Node's ConfigMap", 10350 Ref: ref("k8s.io/api/core/v1.ConfigMapNodeConfigSource"), 10351 }, 10352 }, 10353 }, 10354 }, 10355 }, 10356 Dependencies: []string{ 10357 "k8s.io/api/core/v1.ConfigMapNodeConfigSource"}, 10358 } 10359 } 10360 10361 func schema_k8sio_api_core_v1_NodeConfigStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 10362 return common.OpenAPIDefinition{ 10363 Schema: spec.Schema{ 10364 SchemaProps: spec.SchemaProps{ 10365 Description: "NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.", 10366 Type: []string{"object"}, 10367 Properties: map[string]spec.Schema{ 10368 "assigned": { 10369 SchemaProps: spec.SchemaProps{ 10370 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.", 10371 Ref: ref("k8s.io/api/core/v1.NodeConfigSource"), 10372 }, 10373 }, 10374 "active": { 10375 SchemaProps: spec.SchemaProps{ 10376 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.", 10377 Ref: ref("k8s.io/api/core/v1.NodeConfigSource"), 10378 }, 10379 }, 10380 "lastKnownGood": { 10381 SchemaProps: spec.SchemaProps{ 10382 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.", 10383 Ref: ref("k8s.io/api/core/v1.NodeConfigSource"), 10384 }, 10385 }, 10386 "error": { 10387 SchemaProps: spec.SchemaProps{ 10388 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.", 10389 Type: []string{"string"}, 10390 Format: "", 10391 }, 10392 }, 10393 }, 10394 }, 10395 }, 10396 Dependencies: []string{ 10397 "k8s.io/api/core/v1.NodeConfigSource"}, 10398 } 10399 } 10400 10401 func schema_k8sio_api_core_v1_NodeDaemonEndpoints(ref common.ReferenceCallback) common.OpenAPIDefinition { 10402 return common.OpenAPIDefinition{ 10403 Schema: spec.Schema{ 10404 SchemaProps: spec.SchemaProps{ 10405 Description: "NodeDaemonEndpoints lists ports opened by daemons running on the Node.", 10406 Type: []string{"object"}, 10407 Properties: map[string]spec.Schema{ 10408 "kubeletEndpoint": { 10409 SchemaProps: spec.SchemaProps{ 10410 Description: "Endpoint on which Kubelet is listening.", 10411 Default: map[string]interface{}{}, 10412 Ref: ref("k8s.io/api/core/v1.DaemonEndpoint"), 10413 }, 10414 }, 10415 }, 10416 }, 10417 }, 10418 Dependencies: []string{ 10419 "k8s.io/api/core/v1.DaemonEndpoint"}, 10420 } 10421 } 10422 10423 func schema_k8sio_api_core_v1_NodeList(ref common.ReferenceCallback) common.OpenAPIDefinition { 10424 return common.OpenAPIDefinition{ 10425 Schema: spec.Schema{ 10426 SchemaProps: spec.SchemaProps{ 10427 Description: "NodeList is the whole list of all Nodes which have been registered with master.", 10428 Type: []string{"object"}, 10429 Properties: map[string]spec.Schema{ 10430 "kind": { 10431 SchemaProps: spec.SchemaProps{ 10432 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 10433 Type: []string{"string"}, 10434 Format: "", 10435 }, 10436 }, 10437 "apiVersion": { 10438 SchemaProps: spec.SchemaProps{ 10439 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 10440 Type: []string{"string"}, 10441 Format: "", 10442 }, 10443 }, 10444 "metadata": { 10445 SchemaProps: spec.SchemaProps{ 10446 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 10447 Default: map[string]interface{}{}, 10448 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 10449 }, 10450 }, 10451 "items": { 10452 SchemaProps: spec.SchemaProps{ 10453 Description: "List of nodes", 10454 Type: []string{"array"}, 10455 Items: &spec.SchemaOrArray{ 10456 Schema: &spec.Schema{ 10457 SchemaProps: spec.SchemaProps{ 10458 Default: map[string]interface{}{}, 10459 Ref: ref("k8s.io/api/core/v1.Node"), 10460 }, 10461 }, 10462 }, 10463 }, 10464 }, 10465 }, 10466 Required: []string{"items"}, 10467 }, 10468 }, 10469 Dependencies: []string{ 10470 "k8s.io/api/core/v1.Node", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 10471 } 10472 } 10473 10474 func schema_k8sio_api_core_v1_NodeProxyOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 10475 return common.OpenAPIDefinition{ 10476 Schema: spec.Schema{ 10477 SchemaProps: spec.SchemaProps{ 10478 Description: "NodeProxyOptions is the query options to a Node's proxy call.", 10479 Type: []string{"object"}, 10480 Properties: map[string]spec.Schema{ 10481 "kind": { 10482 SchemaProps: spec.SchemaProps{ 10483 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 10484 Type: []string{"string"}, 10485 Format: "", 10486 }, 10487 }, 10488 "apiVersion": { 10489 SchemaProps: spec.SchemaProps{ 10490 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 10491 Type: []string{"string"}, 10492 Format: "", 10493 }, 10494 }, 10495 "path": { 10496 SchemaProps: spec.SchemaProps{ 10497 Description: "Path is the URL path to use for the current proxy request to node.", 10498 Type: []string{"string"}, 10499 Format: "", 10500 }, 10501 }, 10502 }, 10503 }, 10504 }, 10505 } 10506 } 10507 10508 func schema_k8sio_api_core_v1_NodeResources(ref common.ReferenceCallback) common.OpenAPIDefinition { 10509 return common.OpenAPIDefinition{ 10510 Schema: spec.Schema{ 10511 SchemaProps: spec.SchemaProps{ 10512 Description: "NodeResources is an object for conveying resource information about a node. see https://kubernetes.io/docs/concepts/architecture/nodes/#capacity for more details.", 10513 Type: []string{"object"}, 10514 Properties: map[string]spec.Schema{ 10515 "Capacity": { 10516 SchemaProps: spec.SchemaProps{ 10517 Description: "Capacity represents the available resources of a node", 10518 Type: []string{"object"}, 10519 AdditionalProperties: &spec.SchemaOrBool{ 10520 Allows: true, 10521 Schema: &spec.Schema{ 10522 SchemaProps: spec.SchemaProps{ 10523 Default: map[string]interface{}{}, 10524 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 10525 }, 10526 }, 10527 }, 10528 }, 10529 }, 10530 }, 10531 Required: []string{"Capacity"}, 10532 }, 10533 }, 10534 Dependencies: []string{ 10535 "k8s.io/apimachinery/pkg/api/resource.Quantity"}, 10536 } 10537 } 10538 10539 func schema_k8sio_api_core_v1_NodeSelector(ref common.ReferenceCallback) common.OpenAPIDefinition { 10540 return common.OpenAPIDefinition{ 10541 Schema: spec.Schema{ 10542 SchemaProps: spec.SchemaProps{ 10543 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.", 10544 Type: []string{"object"}, 10545 Properties: map[string]spec.Schema{ 10546 "nodeSelectorTerms": { 10547 SchemaProps: spec.SchemaProps{ 10548 Description: "Required. A list of node selector terms. The terms are ORed.", 10549 Type: []string{"array"}, 10550 Items: &spec.SchemaOrArray{ 10551 Schema: &spec.Schema{ 10552 SchemaProps: spec.SchemaProps{ 10553 Default: map[string]interface{}{}, 10554 Ref: ref("k8s.io/api/core/v1.NodeSelectorTerm"), 10555 }, 10556 }, 10557 }, 10558 }, 10559 }, 10560 }, 10561 Required: []string{"nodeSelectorTerms"}, 10562 }, 10563 VendorExtensible: spec.VendorExtensible{ 10564 Extensions: spec.Extensions{ 10565 "x-kubernetes-map-type": "atomic", 10566 }, 10567 }, 10568 }, 10569 Dependencies: []string{ 10570 "k8s.io/api/core/v1.NodeSelectorTerm"}, 10571 } 10572 } 10573 10574 func schema_k8sio_api_core_v1_NodeSelectorRequirement(ref common.ReferenceCallback) common.OpenAPIDefinition { 10575 return common.OpenAPIDefinition{ 10576 Schema: spec.Schema{ 10577 SchemaProps: spec.SchemaProps{ 10578 Description: "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", 10579 Type: []string{"object"}, 10580 Properties: map[string]spec.Schema{ 10581 "key": { 10582 SchemaProps: spec.SchemaProps{ 10583 Description: "The label key that the selector applies to.", 10584 Default: "", 10585 Type: []string{"string"}, 10586 Format: "", 10587 }, 10588 }, 10589 "operator": { 10590 SchemaProps: spec.SchemaProps{ 10591 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\"`", 10592 Default: "", 10593 Type: []string{"string"}, 10594 Format: "", 10595 Enum: []interface{}{"DoesNotExist", "Exists", "Gt", "In", "Lt", "NotIn"}, 10596 }, 10597 }, 10598 "values": { 10599 SchemaProps: spec.SchemaProps{ 10600 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.", 10601 Type: []string{"array"}, 10602 Items: &spec.SchemaOrArray{ 10603 Schema: &spec.Schema{ 10604 SchemaProps: spec.SchemaProps{ 10605 Default: "", 10606 Type: []string{"string"}, 10607 Format: "", 10608 }, 10609 }, 10610 }, 10611 }, 10612 }, 10613 }, 10614 Required: []string{"key", "operator"}, 10615 }, 10616 }, 10617 } 10618 } 10619 10620 func schema_k8sio_api_core_v1_NodeSelectorTerm(ref common.ReferenceCallback) common.OpenAPIDefinition { 10621 return common.OpenAPIDefinition{ 10622 Schema: spec.Schema{ 10623 SchemaProps: spec.SchemaProps{ 10624 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.", 10625 Type: []string{"object"}, 10626 Properties: map[string]spec.Schema{ 10627 "matchExpressions": { 10628 SchemaProps: spec.SchemaProps{ 10629 Description: "A list of node selector requirements by node's labels.", 10630 Type: []string{"array"}, 10631 Items: &spec.SchemaOrArray{ 10632 Schema: &spec.Schema{ 10633 SchemaProps: spec.SchemaProps{ 10634 Default: map[string]interface{}{}, 10635 Ref: ref("k8s.io/api/core/v1.NodeSelectorRequirement"), 10636 }, 10637 }, 10638 }, 10639 }, 10640 }, 10641 "matchFields": { 10642 SchemaProps: spec.SchemaProps{ 10643 Description: "A list of node selector requirements by node's fields.", 10644 Type: []string{"array"}, 10645 Items: &spec.SchemaOrArray{ 10646 Schema: &spec.Schema{ 10647 SchemaProps: spec.SchemaProps{ 10648 Default: map[string]interface{}{}, 10649 Ref: ref("k8s.io/api/core/v1.NodeSelectorRequirement"), 10650 }, 10651 }, 10652 }, 10653 }, 10654 }, 10655 }, 10656 }, 10657 VendorExtensible: spec.VendorExtensible{ 10658 Extensions: spec.Extensions{ 10659 "x-kubernetes-map-type": "atomic", 10660 }, 10661 }, 10662 }, 10663 Dependencies: []string{ 10664 "k8s.io/api/core/v1.NodeSelectorRequirement"}, 10665 } 10666 } 10667 10668 func schema_k8sio_api_core_v1_NodeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 10669 return common.OpenAPIDefinition{ 10670 Schema: spec.Schema{ 10671 SchemaProps: spec.SchemaProps{ 10672 Description: "NodeSpec describes the attributes that a node is created with.", 10673 Type: []string{"object"}, 10674 Properties: map[string]spec.Schema{ 10675 "podCIDR": { 10676 SchemaProps: spec.SchemaProps{ 10677 Description: "PodCIDR represents the pod IP range assigned to the node.", 10678 Type: []string{"string"}, 10679 Format: "", 10680 }, 10681 }, 10682 "podCIDRs": { 10683 VendorExtensible: spec.VendorExtensible{ 10684 Extensions: spec.Extensions{ 10685 "x-kubernetes-patch-strategy": "merge", 10686 }, 10687 }, 10688 SchemaProps: spec.SchemaProps{ 10689 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.", 10690 Type: []string{"array"}, 10691 Items: &spec.SchemaOrArray{ 10692 Schema: &spec.Schema{ 10693 SchemaProps: spec.SchemaProps{ 10694 Default: "", 10695 Type: []string{"string"}, 10696 Format: "", 10697 }, 10698 }, 10699 }, 10700 }, 10701 }, 10702 "providerID": { 10703 SchemaProps: spec.SchemaProps{ 10704 Description: "ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>", 10705 Type: []string{"string"}, 10706 Format: "", 10707 }, 10708 }, 10709 "unschedulable": { 10710 SchemaProps: spec.SchemaProps{ 10711 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", 10712 Type: []string{"boolean"}, 10713 Format: "", 10714 }, 10715 }, 10716 "taints": { 10717 SchemaProps: spec.SchemaProps{ 10718 Description: "If specified, the node's taints.", 10719 Type: []string{"array"}, 10720 Items: &spec.SchemaOrArray{ 10721 Schema: &spec.Schema{ 10722 SchemaProps: spec.SchemaProps{ 10723 Default: map[string]interface{}{}, 10724 Ref: ref("k8s.io/api/core/v1.Taint"), 10725 }, 10726 }, 10727 }, 10728 }, 10729 }, 10730 "configSource": { 10731 SchemaProps: spec.SchemaProps{ 10732 Description: "Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed.", 10733 Ref: ref("k8s.io/api/core/v1.NodeConfigSource"), 10734 }, 10735 }, 10736 "externalID": { 10737 SchemaProps: spec.SchemaProps{ 10738 Description: "Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966", 10739 Type: []string{"string"}, 10740 Format: "", 10741 }, 10742 }, 10743 }, 10744 }, 10745 }, 10746 Dependencies: []string{ 10747 "k8s.io/api/core/v1.NodeConfigSource", "k8s.io/api/core/v1.Taint"}, 10748 } 10749 } 10750 10751 func schema_k8sio_api_core_v1_NodeStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 10752 return common.OpenAPIDefinition{ 10753 Schema: spec.Schema{ 10754 SchemaProps: spec.SchemaProps{ 10755 Description: "NodeStatus is information about the current status of a node.", 10756 Type: []string{"object"}, 10757 Properties: map[string]spec.Schema{ 10758 "capacity": { 10759 SchemaProps: spec.SchemaProps{ 10760 Description: "Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity", 10761 Type: []string{"object"}, 10762 AdditionalProperties: &spec.SchemaOrBool{ 10763 Allows: true, 10764 Schema: &spec.Schema{ 10765 SchemaProps: spec.SchemaProps{ 10766 Default: map[string]interface{}{}, 10767 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 10768 }, 10769 }, 10770 }, 10771 }, 10772 }, 10773 "allocatable": { 10774 SchemaProps: spec.SchemaProps{ 10775 Description: "Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.", 10776 Type: []string{"object"}, 10777 AdditionalProperties: &spec.SchemaOrBool{ 10778 Allows: true, 10779 Schema: &spec.Schema{ 10780 SchemaProps: spec.SchemaProps{ 10781 Default: map[string]interface{}{}, 10782 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 10783 }, 10784 }, 10785 }, 10786 }, 10787 }, 10788 "phase": { 10789 SchemaProps: spec.SchemaProps{ 10790 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.", 10791 Type: []string{"string"}, 10792 Format: "", 10793 Enum: []interface{}{"Pending", "Running", "Terminated"}, 10794 }, 10795 }, 10796 "conditions": { 10797 VendorExtensible: spec.VendorExtensible{ 10798 Extensions: spec.Extensions{ 10799 "x-kubernetes-patch-merge-key": "type", 10800 "x-kubernetes-patch-strategy": "merge", 10801 }, 10802 }, 10803 SchemaProps: spec.SchemaProps{ 10804 Description: "Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition", 10805 Type: []string{"array"}, 10806 Items: &spec.SchemaOrArray{ 10807 Schema: &spec.Schema{ 10808 SchemaProps: spec.SchemaProps{ 10809 Default: map[string]interface{}{}, 10810 Ref: ref("k8s.io/api/core/v1.NodeCondition"), 10811 }, 10812 }, 10813 }, 10814 }, 10815 }, 10816 "addresses": { 10817 VendorExtensible: spec.VendorExtensible{ 10818 Extensions: spec.Extensions{ 10819 "x-kubernetes-patch-merge-key": "type", 10820 "x-kubernetes-patch-strategy": "merge", 10821 }, 10822 }, 10823 SchemaProps: spec.SchemaProps{ 10824 Description: "List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. Consumers should assume that addresses can change during the lifetime of a Node. However, there are some exceptions where this may not be possible, such as Pods that inherit a Node's address in its own status or consumers of the downward API (status.hostIP).", 10825 Type: []string{"array"}, 10826 Items: &spec.SchemaOrArray{ 10827 Schema: &spec.Schema{ 10828 SchemaProps: spec.SchemaProps{ 10829 Default: map[string]interface{}{}, 10830 Ref: ref("k8s.io/api/core/v1.NodeAddress"), 10831 }, 10832 }, 10833 }, 10834 }, 10835 }, 10836 "daemonEndpoints": { 10837 SchemaProps: spec.SchemaProps{ 10838 Description: "Endpoints of daemons running on the Node.", 10839 Default: map[string]interface{}{}, 10840 Ref: ref("k8s.io/api/core/v1.NodeDaemonEndpoints"), 10841 }, 10842 }, 10843 "nodeInfo": { 10844 SchemaProps: spec.SchemaProps{ 10845 Description: "Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#info", 10846 Default: map[string]interface{}{}, 10847 Ref: ref("k8s.io/api/core/v1.NodeSystemInfo"), 10848 }, 10849 }, 10850 "images": { 10851 SchemaProps: spec.SchemaProps{ 10852 Description: "List of container images on this node", 10853 Type: []string{"array"}, 10854 Items: &spec.SchemaOrArray{ 10855 Schema: &spec.Schema{ 10856 SchemaProps: spec.SchemaProps{ 10857 Default: map[string]interface{}{}, 10858 Ref: ref("k8s.io/api/core/v1.ContainerImage"), 10859 }, 10860 }, 10861 }, 10862 }, 10863 }, 10864 "volumesInUse": { 10865 SchemaProps: spec.SchemaProps{ 10866 Description: "List of attachable volumes in use (mounted) by the node.", 10867 Type: []string{"array"}, 10868 Items: &spec.SchemaOrArray{ 10869 Schema: &spec.Schema{ 10870 SchemaProps: spec.SchemaProps{ 10871 Default: "", 10872 Type: []string{"string"}, 10873 Format: "", 10874 }, 10875 }, 10876 }, 10877 }, 10878 }, 10879 "volumesAttached": { 10880 SchemaProps: spec.SchemaProps{ 10881 Description: "List of volumes that are attached to the node.", 10882 Type: []string{"array"}, 10883 Items: &spec.SchemaOrArray{ 10884 Schema: &spec.Schema{ 10885 SchemaProps: spec.SchemaProps{ 10886 Default: map[string]interface{}{}, 10887 Ref: ref("k8s.io/api/core/v1.AttachedVolume"), 10888 }, 10889 }, 10890 }, 10891 }, 10892 }, 10893 "config": { 10894 SchemaProps: spec.SchemaProps{ 10895 Description: "Status of the config assigned to the node via the dynamic Kubelet config feature.", 10896 Ref: ref("k8s.io/api/core/v1.NodeConfigStatus"), 10897 }, 10898 }, 10899 }, 10900 }, 10901 }, 10902 Dependencies: []string{ 10903 "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"}, 10904 } 10905 } 10906 10907 func schema_k8sio_api_core_v1_NodeSystemInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { 10908 return common.OpenAPIDefinition{ 10909 Schema: spec.Schema{ 10910 SchemaProps: spec.SchemaProps{ 10911 Description: "NodeSystemInfo is a set of ids/uuids to uniquely identify the node.", 10912 Type: []string{"object"}, 10913 Properties: map[string]spec.Schema{ 10914 "machineID": { 10915 SchemaProps: spec.SchemaProps{ 10916 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", 10917 Default: "", 10918 Type: []string{"string"}, 10919 Format: "", 10920 }, 10921 }, 10922 "systemUUID": { 10923 SchemaProps: spec.SchemaProps{ 10924 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", 10925 Default: "", 10926 Type: []string{"string"}, 10927 Format: "", 10928 }, 10929 }, 10930 "bootID": { 10931 SchemaProps: spec.SchemaProps{ 10932 Description: "Boot ID reported by the node.", 10933 Default: "", 10934 Type: []string{"string"}, 10935 Format: "", 10936 }, 10937 }, 10938 "kernelVersion": { 10939 SchemaProps: spec.SchemaProps{ 10940 Description: "Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).", 10941 Default: "", 10942 Type: []string{"string"}, 10943 Format: "", 10944 }, 10945 }, 10946 "osImage": { 10947 SchemaProps: spec.SchemaProps{ 10948 Description: "OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).", 10949 Default: "", 10950 Type: []string{"string"}, 10951 Format: "", 10952 }, 10953 }, 10954 "containerRuntimeVersion": { 10955 SchemaProps: spec.SchemaProps{ 10956 Description: "ContainerRuntime Version reported by the node through runtime remote API (e.g. containerd://1.4.2).", 10957 Default: "", 10958 Type: []string{"string"}, 10959 Format: "", 10960 }, 10961 }, 10962 "kubeletVersion": { 10963 SchemaProps: spec.SchemaProps{ 10964 Description: "Kubelet Version reported by the node.", 10965 Default: "", 10966 Type: []string{"string"}, 10967 Format: "", 10968 }, 10969 }, 10970 "kubeProxyVersion": { 10971 SchemaProps: spec.SchemaProps{ 10972 Description: "KubeProxy Version reported by the node.", 10973 Default: "", 10974 Type: []string{"string"}, 10975 Format: "", 10976 }, 10977 }, 10978 "operatingSystem": { 10979 SchemaProps: spec.SchemaProps{ 10980 Description: "The Operating System reported by the node", 10981 Default: "", 10982 Type: []string{"string"}, 10983 Format: "", 10984 }, 10985 }, 10986 "architecture": { 10987 SchemaProps: spec.SchemaProps{ 10988 Description: "The Architecture reported by the node", 10989 Default: "", 10990 Type: []string{"string"}, 10991 Format: "", 10992 }, 10993 }, 10994 }, 10995 Required: []string{"machineID", "systemUUID", "bootID", "kernelVersion", "osImage", "containerRuntimeVersion", "kubeletVersion", "kubeProxyVersion", "operatingSystem", "architecture"}, 10996 }, 10997 }, 10998 } 10999 } 11000 11001 func schema_k8sio_api_core_v1_ObjectFieldSelector(ref common.ReferenceCallback) common.OpenAPIDefinition { 11002 return common.OpenAPIDefinition{ 11003 Schema: spec.Schema{ 11004 SchemaProps: spec.SchemaProps{ 11005 Description: "ObjectFieldSelector selects an APIVersioned field of an object.", 11006 Type: []string{"object"}, 11007 Properties: map[string]spec.Schema{ 11008 "apiVersion": { 11009 SchemaProps: spec.SchemaProps{ 11010 Description: "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", 11011 Type: []string{"string"}, 11012 Format: "", 11013 }, 11014 }, 11015 "fieldPath": { 11016 SchemaProps: spec.SchemaProps{ 11017 Description: "Path of the field to select in the specified API version.", 11018 Default: "", 11019 Type: []string{"string"}, 11020 Format: "", 11021 }, 11022 }, 11023 }, 11024 Required: []string{"fieldPath"}, 11025 }, 11026 VendorExtensible: spec.VendorExtensible{ 11027 Extensions: spec.Extensions{ 11028 "x-kubernetes-map-type": "atomic", 11029 }, 11030 }, 11031 }, 11032 } 11033 } 11034 11035 func schema_k8sio_api_core_v1_ObjectReference(ref common.ReferenceCallback) common.OpenAPIDefinition { 11036 return common.OpenAPIDefinition{ 11037 Schema: spec.Schema{ 11038 SchemaProps: spec.SchemaProps{ 11039 Description: "ObjectReference contains enough information to let you inspect or modify the referred object.", 11040 Type: []string{"object"}, 11041 Properties: map[string]spec.Schema{ 11042 "kind": { 11043 SchemaProps: spec.SchemaProps{ 11044 Description: "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 11045 Type: []string{"string"}, 11046 Format: "", 11047 }, 11048 }, 11049 "namespace": { 11050 SchemaProps: spec.SchemaProps{ 11051 Description: "Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", 11052 Type: []string{"string"}, 11053 Format: "", 11054 }, 11055 }, 11056 "name": { 11057 SchemaProps: spec.SchemaProps{ 11058 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", 11059 Type: []string{"string"}, 11060 Format: "", 11061 }, 11062 }, 11063 "uid": { 11064 SchemaProps: spec.SchemaProps{ 11065 Description: "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids", 11066 Type: []string{"string"}, 11067 Format: "", 11068 }, 11069 }, 11070 "apiVersion": { 11071 SchemaProps: spec.SchemaProps{ 11072 Description: "API version of the referent.", 11073 Type: []string{"string"}, 11074 Format: "", 11075 }, 11076 }, 11077 "resourceVersion": { 11078 SchemaProps: spec.SchemaProps{ 11079 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", 11080 Type: []string{"string"}, 11081 Format: "", 11082 }, 11083 }, 11084 "fieldPath": { 11085 SchemaProps: spec.SchemaProps{ 11086 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.", 11087 Type: []string{"string"}, 11088 Format: "", 11089 }, 11090 }, 11091 }, 11092 }, 11093 VendorExtensible: spec.VendorExtensible{ 11094 Extensions: spec.Extensions{ 11095 "x-kubernetes-map-type": "atomic", 11096 }, 11097 }, 11098 }, 11099 } 11100 } 11101 11102 func schema_k8sio_api_core_v1_PersistentVolume(ref common.ReferenceCallback) common.OpenAPIDefinition { 11103 return common.OpenAPIDefinition{ 11104 Schema: spec.Schema{ 11105 SchemaProps: spec.SchemaProps{ 11106 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", 11107 Type: []string{"object"}, 11108 Properties: map[string]spec.Schema{ 11109 "kind": { 11110 SchemaProps: spec.SchemaProps{ 11111 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 11112 Type: []string{"string"}, 11113 Format: "", 11114 }, 11115 }, 11116 "apiVersion": { 11117 SchemaProps: spec.SchemaProps{ 11118 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 11119 Type: []string{"string"}, 11120 Format: "", 11121 }, 11122 }, 11123 "metadata": { 11124 SchemaProps: spec.SchemaProps{ 11125 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 11126 Default: map[string]interface{}{}, 11127 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 11128 }, 11129 }, 11130 "spec": { 11131 SchemaProps: spec.SchemaProps{ 11132 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", 11133 Default: map[string]interface{}{}, 11134 Ref: ref("k8s.io/api/core/v1.PersistentVolumeSpec"), 11135 }, 11136 }, 11137 "status": { 11138 SchemaProps: spec.SchemaProps{ 11139 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", 11140 Default: map[string]interface{}{}, 11141 Ref: ref("k8s.io/api/core/v1.PersistentVolumeStatus"), 11142 }, 11143 }, 11144 }, 11145 }, 11146 }, 11147 Dependencies: []string{ 11148 "k8s.io/api/core/v1.PersistentVolumeSpec", "k8s.io/api/core/v1.PersistentVolumeStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 11149 } 11150 } 11151 11152 func schema_k8sio_api_core_v1_PersistentVolumeClaim(ref common.ReferenceCallback) common.OpenAPIDefinition { 11153 return common.OpenAPIDefinition{ 11154 Schema: spec.Schema{ 11155 SchemaProps: spec.SchemaProps{ 11156 Description: "PersistentVolumeClaim is a user's request for and claim to a persistent volume", 11157 Type: []string{"object"}, 11158 Properties: map[string]spec.Schema{ 11159 "kind": { 11160 SchemaProps: spec.SchemaProps{ 11161 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 11162 Type: []string{"string"}, 11163 Format: "", 11164 }, 11165 }, 11166 "apiVersion": { 11167 SchemaProps: spec.SchemaProps{ 11168 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 11169 Type: []string{"string"}, 11170 Format: "", 11171 }, 11172 }, 11173 "metadata": { 11174 SchemaProps: spec.SchemaProps{ 11175 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 11176 Default: map[string]interface{}{}, 11177 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 11178 }, 11179 }, 11180 "spec": { 11181 SchemaProps: spec.SchemaProps{ 11182 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", 11183 Default: map[string]interface{}{}, 11184 Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimSpec"), 11185 }, 11186 }, 11187 "status": { 11188 SchemaProps: spec.SchemaProps{ 11189 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", 11190 Default: map[string]interface{}{}, 11191 Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimStatus"), 11192 }, 11193 }, 11194 }, 11195 }, 11196 }, 11197 Dependencies: []string{ 11198 "k8s.io/api/core/v1.PersistentVolumeClaimSpec", "k8s.io/api/core/v1.PersistentVolumeClaimStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 11199 } 11200 } 11201 11202 func schema_k8sio_api_core_v1_PersistentVolumeClaimCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 11203 return common.OpenAPIDefinition{ 11204 Schema: spec.Schema{ 11205 SchemaProps: spec.SchemaProps{ 11206 Description: "PersistentVolumeClaimCondition contains details about state of pvc", 11207 Type: []string{"object"}, 11208 Properties: map[string]spec.Schema{ 11209 "type": { 11210 SchemaProps: spec.SchemaProps{ 11211 Default: "", 11212 Type: []string{"string"}, 11213 Format: "", 11214 }, 11215 }, 11216 "status": { 11217 SchemaProps: spec.SchemaProps{ 11218 Default: "", 11219 Type: []string{"string"}, 11220 Format: "", 11221 }, 11222 }, 11223 "lastProbeTime": { 11224 SchemaProps: spec.SchemaProps{ 11225 Description: "lastProbeTime is the time we probed the condition.", 11226 Default: map[string]interface{}{}, 11227 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 11228 }, 11229 }, 11230 "lastTransitionTime": { 11231 SchemaProps: spec.SchemaProps{ 11232 Description: "lastTransitionTime is the time the condition transitioned from one status to another.", 11233 Default: map[string]interface{}{}, 11234 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 11235 }, 11236 }, 11237 "reason": { 11238 SchemaProps: spec.SchemaProps{ 11239 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.", 11240 Type: []string{"string"}, 11241 Format: "", 11242 }, 11243 }, 11244 "message": { 11245 SchemaProps: spec.SchemaProps{ 11246 Description: "message is the human-readable message indicating details about last transition.", 11247 Type: []string{"string"}, 11248 Format: "", 11249 }, 11250 }, 11251 }, 11252 Required: []string{"type", "status"}, 11253 }, 11254 }, 11255 Dependencies: []string{ 11256 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 11257 } 11258 } 11259 11260 func schema_k8sio_api_core_v1_PersistentVolumeClaimList(ref common.ReferenceCallback) common.OpenAPIDefinition { 11261 return common.OpenAPIDefinition{ 11262 Schema: spec.Schema{ 11263 SchemaProps: spec.SchemaProps{ 11264 Description: "PersistentVolumeClaimList is a list of PersistentVolumeClaim items.", 11265 Type: []string{"object"}, 11266 Properties: map[string]spec.Schema{ 11267 "kind": { 11268 SchemaProps: spec.SchemaProps{ 11269 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 11270 Type: []string{"string"}, 11271 Format: "", 11272 }, 11273 }, 11274 "apiVersion": { 11275 SchemaProps: spec.SchemaProps{ 11276 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 11277 Type: []string{"string"}, 11278 Format: "", 11279 }, 11280 }, 11281 "metadata": { 11282 SchemaProps: spec.SchemaProps{ 11283 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 11284 Default: map[string]interface{}{}, 11285 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 11286 }, 11287 }, 11288 "items": { 11289 SchemaProps: spec.SchemaProps{ 11290 Description: "items is a list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", 11291 Type: []string{"array"}, 11292 Items: &spec.SchemaOrArray{ 11293 Schema: &spec.Schema{ 11294 SchemaProps: spec.SchemaProps{ 11295 Default: map[string]interface{}{}, 11296 Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaim"), 11297 }, 11298 }, 11299 }, 11300 }, 11301 }, 11302 }, 11303 Required: []string{"items"}, 11304 }, 11305 }, 11306 Dependencies: []string{ 11307 "k8s.io/api/core/v1.PersistentVolumeClaim", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 11308 } 11309 } 11310 11311 func schema_k8sio_api_core_v1_PersistentVolumeClaimSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 11312 return common.OpenAPIDefinition{ 11313 Schema: spec.Schema{ 11314 SchemaProps: spec.SchemaProps{ 11315 Description: "PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes", 11316 Type: []string{"object"}, 11317 Properties: map[string]spec.Schema{ 11318 "accessModes": { 11319 SchemaProps: spec.SchemaProps{ 11320 Description: "accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", 11321 Type: []string{"array"}, 11322 Items: &spec.SchemaOrArray{ 11323 Schema: &spec.Schema{ 11324 SchemaProps: spec.SchemaProps{ 11325 Default: "", 11326 Type: []string{"string"}, 11327 Format: "", 11328 }, 11329 }, 11330 }, 11331 }, 11332 }, 11333 "selector": { 11334 SchemaProps: spec.SchemaProps{ 11335 Description: "selector is a label query over volumes to consider for binding.", 11336 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), 11337 }, 11338 }, 11339 "resources": { 11340 SchemaProps: spec.SchemaProps{ 11341 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", 11342 Default: map[string]interface{}{}, 11343 Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), 11344 }, 11345 }, 11346 "volumeName": { 11347 SchemaProps: spec.SchemaProps{ 11348 Description: "volumeName is the binding reference to the PersistentVolume backing this claim.", 11349 Type: []string{"string"}, 11350 Format: "", 11351 }, 11352 }, 11353 "storageClassName": { 11354 SchemaProps: spec.SchemaProps{ 11355 Description: "storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1", 11356 Type: []string{"string"}, 11357 Format: "", 11358 }, 11359 }, 11360 "volumeMode": { 11361 SchemaProps: spec.SchemaProps{ 11362 Description: "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.\n\nPossible enum values:\n - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device.\n - `\"Filesystem\"` means the volume will be or is formatted with a filesystem.", 11363 Type: []string{"string"}, 11364 Format: "", 11365 Enum: []interface{}{"Block", "Filesystem"}, 11366 }, 11367 }, 11368 "dataSource": { 11369 SchemaProps: spec.SchemaProps{ 11370 Description: "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource.", 11371 Ref: ref("k8s.io/api/core/v1.TypedLocalObjectReference"), 11372 }, 11373 }, 11374 "dataSourceRef": { 11375 SchemaProps: spec.SchemaProps{ 11376 Description: "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", 11377 Ref: ref("k8s.io/api/core/v1.TypedObjectReference"), 11378 }, 11379 }, 11380 }, 11381 }, 11382 }, 11383 Dependencies: []string{ 11384 "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.TypedLocalObjectReference", "k8s.io/api/core/v1.TypedObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, 11385 } 11386 } 11387 11388 func schema_k8sio_api_core_v1_PersistentVolumeClaimStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 11389 return common.OpenAPIDefinition{ 11390 Schema: spec.Schema{ 11391 SchemaProps: spec.SchemaProps{ 11392 Description: "PersistentVolumeClaimStatus is the current status of a persistent volume claim.", 11393 Type: []string{"object"}, 11394 Properties: map[string]spec.Schema{ 11395 "phase": { 11396 SchemaProps: spec.SchemaProps{ 11397 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", 11398 Type: []string{"string"}, 11399 Format: "", 11400 Enum: []interface{}{"Bound", "Lost", "Pending"}, 11401 }, 11402 }, 11403 "accessModes": { 11404 SchemaProps: spec.SchemaProps{ 11405 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", 11406 Type: []string{"array"}, 11407 Items: &spec.SchemaOrArray{ 11408 Schema: &spec.Schema{ 11409 SchemaProps: spec.SchemaProps{ 11410 Default: "", 11411 Type: []string{"string"}, 11412 Format: "", 11413 }, 11414 }, 11415 }, 11416 }, 11417 }, 11418 "capacity": { 11419 SchemaProps: spec.SchemaProps{ 11420 Description: "capacity represents the actual resources of the underlying volume.", 11421 Type: []string{"object"}, 11422 AdditionalProperties: &spec.SchemaOrBool{ 11423 Allows: true, 11424 Schema: &spec.Schema{ 11425 SchemaProps: spec.SchemaProps{ 11426 Default: map[string]interface{}{}, 11427 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 11428 }, 11429 }, 11430 }, 11431 }, 11432 }, 11433 "conditions": { 11434 VendorExtensible: spec.VendorExtensible{ 11435 Extensions: spec.Extensions{ 11436 "x-kubernetes-patch-merge-key": "type", 11437 "x-kubernetes-patch-strategy": "merge", 11438 }, 11439 }, 11440 SchemaProps: spec.SchemaProps{ 11441 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'.", 11442 Type: []string{"array"}, 11443 Items: &spec.SchemaOrArray{ 11444 Schema: &spec.Schema{ 11445 SchemaProps: spec.SchemaProps{ 11446 Default: map[string]interface{}{}, 11447 Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimCondition"), 11448 }, 11449 }, 11450 }, 11451 }, 11452 }, 11453 "allocatedResources": { 11454 SchemaProps: spec.SchemaProps{ 11455 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.", 11456 Type: []string{"object"}, 11457 AdditionalProperties: &spec.SchemaOrBool{ 11458 Allows: true, 11459 Schema: &spec.Schema{ 11460 SchemaProps: spec.SchemaProps{ 11461 Default: map[string]interface{}{}, 11462 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 11463 }, 11464 }, 11465 }, 11466 }, 11467 }, 11468 "resizeStatus": { 11469 SchemaProps: spec.SchemaProps{ 11470 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.\n\nPossible enum values:\n - `\"\"` When expansion is complete, the empty string is set by resize controller or kubelet.\n - `\"ControllerExpansionFailed\"` State set when expansion has failed in resize controller with a terminal error. Transient errors such as timeout should not set this status and should leave ResizeStatus unmodified, so as resize controller can resume the volume expansion.\n - `\"ControllerExpansionInProgress\"` State set when resize controller starts expanding the volume in control-plane\n - `\"NodeExpansionFailed\"` State set when expansion has failed in kubelet with a terminal error. Transient errors don't set NodeExpansionFailed.\n - `\"NodeExpansionInProgress\"` State set when kubelet starts expanding the volume.\n - `\"NodeExpansionPending\"` State set when resize controller has finished expanding the volume but further expansion is needed on the node.", 11471 Type: []string{"string"}, 11472 Format: "", 11473 Enum: []interface{}{"", "ControllerExpansionFailed", "ControllerExpansionInProgress", "NodeExpansionFailed", "NodeExpansionInProgress", "NodeExpansionPending"}, 11474 }, 11475 }, 11476 }, 11477 }, 11478 }, 11479 Dependencies: []string{ 11480 "k8s.io/api/core/v1.PersistentVolumeClaimCondition", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, 11481 } 11482 } 11483 11484 func schema_k8sio_api_core_v1_PersistentVolumeClaimTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { 11485 return common.OpenAPIDefinition{ 11486 Schema: spec.Schema{ 11487 SchemaProps: spec.SchemaProps{ 11488 Description: "PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource.", 11489 Type: []string{"object"}, 11490 Properties: map[string]spec.Schema{ 11491 "metadata": { 11492 SchemaProps: spec.SchemaProps{ 11493 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.", 11494 Default: map[string]interface{}{}, 11495 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 11496 }, 11497 }, 11498 "spec": { 11499 SchemaProps: spec.SchemaProps{ 11500 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.", 11501 Default: map[string]interface{}{}, 11502 Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimSpec"), 11503 }, 11504 }, 11505 }, 11506 Required: []string{"spec"}, 11507 }, 11508 }, 11509 Dependencies: []string{ 11510 "k8s.io/api/core/v1.PersistentVolumeClaimSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 11511 } 11512 } 11513 11514 func schema_k8sio_api_core_v1_PersistentVolumeClaimVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 11515 return common.OpenAPIDefinition{ 11516 Schema: spec.Schema{ 11517 SchemaProps: spec.SchemaProps{ 11518 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).", 11519 Type: []string{"object"}, 11520 Properties: map[string]spec.Schema{ 11521 "claimName": { 11522 SchemaProps: spec.SchemaProps{ 11523 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", 11524 Default: "", 11525 Type: []string{"string"}, 11526 Format: "", 11527 }, 11528 }, 11529 "readOnly": { 11530 SchemaProps: spec.SchemaProps{ 11531 Description: "readOnly Will force the ReadOnly setting in VolumeMounts. Default false.", 11532 Type: []string{"boolean"}, 11533 Format: "", 11534 }, 11535 }, 11536 }, 11537 Required: []string{"claimName"}, 11538 }, 11539 }, 11540 } 11541 } 11542 11543 func schema_k8sio_api_core_v1_PersistentVolumeList(ref common.ReferenceCallback) common.OpenAPIDefinition { 11544 return common.OpenAPIDefinition{ 11545 Schema: spec.Schema{ 11546 SchemaProps: spec.SchemaProps{ 11547 Description: "PersistentVolumeList is a list of PersistentVolume items.", 11548 Type: []string{"object"}, 11549 Properties: map[string]spec.Schema{ 11550 "kind": { 11551 SchemaProps: spec.SchemaProps{ 11552 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 11553 Type: []string{"string"}, 11554 Format: "", 11555 }, 11556 }, 11557 "apiVersion": { 11558 SchemaProps: spec.SchemaProps{ 11559 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 11560 Type: []string{"string"}, 11561 Format: "", 11562 }, 11563 }, 11564 "metadata": { 11565 SchemaProps: spec.SchemaProps{ 11566 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 11567 Default: map[string]interface{}{}, 11568 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 11569 }, 11570 }, 11571 "items": { 11572 SchemaProps: spec.SchemaProps{ 11573 Description: "items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes", 11574 Type: []string{"array"}, 11575 Items: &spec.SchemaOrArray{ 11576 Schema: &spec.Schema{ 11577 SchemaProps: spec.SchemaProps{ 11578 Default: map[string]interface{}{}, 11579 Ref: ref("k8s.io/api/core/v1.PersistentVolume"), 11580 }, 11581 }, 11582 }, 11583 }, 11584 }, 11585 }, 11586 Required: []string{"items"}, 11587 }, 11588 }, 11589 Dependencies: []string{ 11590 "k8s.io/api/core/v1.PersistentVolume", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 11591 } 11592 } 11593 11594 func schema_k8sio_api_core_v1_PersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 11595 return common.OpenAPIDefinition{ 11596 Schema: spec.Schema{ 11597 SchemaProps: spec.SchemaProps{ 11598 Description: "PersistentVolumeSource is similar to VolumeSource but meant for the administrator who creates PVs. Exactly one of its members must be set.", 11599 Type: []string{"object"}, 11600 Properties: map[string]spec.Schema{ 11601 "gcePersistentDisk": { 11602 SchemaProps: spec.SchemaProps{ 11603 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", 11604 Ref: ref("k8s.io/api/core/v1.GCEPersistentDiskVolumeSource"), 11605 }, 11606 }, 11607 "awsElasticBlockStore": { 11608 SchemaProps: spec.SchemaProps{ 11609 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", 11610 Ref: ref("k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource"), 11611 }, 11612 }, 11613 "hostPath": { 11614 SchemaProps: spec.SchemaProps{ 11615 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", 11616 Ref: ref("k8s.io/api/core/v1.HostPathVolumeSource"), 11617 }, 11618 }, 11619 "glusterfs": { 11620 SchemaProps: spec.SchemaProps{ 11621 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", 11622 Ref: ref("k8s.io/api/core/v1.GlusterfsPersistentVolumeSource"), 11623 }, 11624 }, 11625 "nfs": { 11626 SchemaProps: spec.SchemaProps{ 11627 Description: "nfs represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", 11628 Ref: ref("k8s.io/api/core/v1.NFSVolumeSource"), 11629 }, 11630 }, 11631 "rbd": { 11632 SchemaProps: spec.SchemaProps{ 11633 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", 11634 Ref: ref("k8s.io/api/core/v1.RBDPersistentVolumeSource"), 11635 }, 11636 }, 11637 "iscsi": { 11638 SchemaProps: spec.SchemaProps{ 11639 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.", 11640 Ref: ref("k8s.io/api/core/v1.ISCSIPersistentVolumeSource"), 11641 }, 11642 }, 11643 "cinder": { 11644 SchemaProps: spec.SchemaProps{ 11645 Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", 11646 Ref: ref("k8s.io/api/core/v1.CinderPersistentVolumeSource"), 11647 }, 11648 }, 11649 "cephfs": { 11650 SchemaProps: spec.SchemaProps{ 11651 Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime", 11652 Ref: ref("k8s.io/api/core/v1.CephFSPersistentVolumeSource"), 11653 }, 11654 }, 11655 "fc": { 11656 SchemaProps: spec.SchemaProps{ 11657 Description: "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", 11658 Ref: ref("k8s.io/api/core/v1.FCVolumeSource"), 11659 }, 11660 }, 11661 "flocker": { 11662 SchemaProps: spec.SchemaProps{ 11663 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", 11664 Ref: ref("k8s.io/api/core/v1.FlockerVolumeSource"), 11665 }, 11666 }, 11667 "flexVolume": { 11668 SchemaProps: spec.SchemaProps{ 11669 Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", 11670 Ref: ref("k8s.io/api/core/v1.FlexPersistentVolumeSource"), 11671 }, 11672 }, 11673 "azureFile": { 11674 SchemaProps: spec.SchemaProps{ 11675 Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod.", 11676 Ref: ref("k8s.io/api/core/v1.AzureFilePersistentVolumeSource"), 11677 }, 11678 }, 11679 "vsphereVolume": { 11680 SchemaProps: spec.SchemaProps{ 11681 Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", 11682 Ref: ref("k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"), 11683 }, 11684 }, 11685 "quobyte": { 11686 SchemaProps: spec.SchemaProps{ 11687 Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime", 11688 Ref: ref("k8s.io/api/core/v1.QuobyteVolumeSource"), 11689 }, 11690 }, 11691 "azureDisk": { 11692 SchemaProps: spec.SchemaProps{ 11693 Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", 11694 Ref: ref("k8s.io/api/core/v1.AzureDiskVolumeSource"), 11695 }, 11696 }, 11697 "photonPersistentDisk": { 11698 SchemaProps: spec.SchemaProps{ 11699 Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", 11700 Ref: ref("k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource"), 11701 }, 11702 }, 11703 "portworxVolume": { 11704 SchemaProps: spec.SchemaProps{ 11705 Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine", 11706 Ref: ref("k8s.io/api/core/v1.PortworxVolumeSource"), 11707 }, 11708 }, 11709 "scaleIO": { 11710 SchemaProps: spec.SchemaProps{ 11711 Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", 11712 Ref: ref("k8s.io/api/core/v1.ScaleIOPersistentVolumeSource"), 11713 }, 11714 }, 11715 "local": { 11716 SchemaProps: spec.SchemaProps{ 11717 Description: "local represents directly-attached storage with node affinity", 11718 Ref: ref("k8s.io/api/core/v1.LocalVolumeSource"), 11719 }, 11720 }, 11721 "storageos": { 11722 SchemaProps: spec.SchemaProps{ 11723 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", 11724 Ref: ref("k8s.io/api/core/v1.StorageOSPersistentVolumeSource"), 11725 }, 11726 }, 11727 "csi": { 11728 SchemaProps: spec.SchemaProps{ 11729 Description: "csi represents storage that is handled by an external CSI driver (Beta feature).", 11730 Ref: ref("k8s.io/api/core/v1.CSIPersistentVolumeSource"), 11731 }, 11732 }, 11733 }, 11734 }, 11735 }, 11736 Dependencies: []string{ 11737 "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"}, 11738 } 11739 } 11740 11741 func schema_k8sio_api_core_v1_PersistentVolumeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 11742 return common.OpenAPIDefinition{ 11743 Schema: spec.Schema{ 11744 SchemaProps: spec.SchemaProps{ 11745 Description: "PersistentVolumeSpec is the specification of a persistent volume.", 11746 Type: []string{"object"}, 11747 Properties: map[string]spec.Schema{ 11748 "capacity": { 11749 SchemaProps: spec.SchemaProps{ 11750 Description: "capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity", 11751 Type: []string{"object"}, 11752 AdditionalProperties: &spec.SchemaOrBool{ 11753 Allows: true, 11754 Schema: &spec.Schema{ 11755 SchemaProps: spec.SchemaProps{ 11756 Default: map[string]interface{}{}, 11757 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 11758 }, 11759 }, 11760 }, 11761 }, 11762 }, 11763 "gcePersistentDisk": { 11764 SchemaProps: spec.SchemaProps{ 11765 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", 11766 Ref: ref("k8s.io/api/core/v1.GCEPersistentDiskVolumeSource"), 11767 }, 11768 }, 11769 "awsElasticBlockStore": { 11770 SchemaProps: spec.SchemaProps{ 11771 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", 11772 Ref: ref("k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource"), 11773 }, 11774 }, 11775 "hostPath": { 11776 SchemaProps: spec.SchemaProps{ 11777 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", 11778 Ref: ref("k8s.io/api/core/v1.HostPathVolumeSource"), 11779 }, 11780 }, 11781 "glusterfs": { 11782 SchemaProps: spec.SchemaProps{ 11783 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", 11784 Ref: ref("k8s.io/api/core/v1.GlusterfsPersistentVolumeSource"), 11785 }, 11786 }, 11787 "nfs": { 11788 SchemaProps: spec.SchemaProps{ 11789 Description: "nfs represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", 11790 Ref: ref("k8s.io/api/core/v1.NFSVolumeSource"), 11791 }, 11792 }, 11793 "rbd": { 11794 SchemaProps: spec.SchemaProps{ 11795 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", 11796 Ref: ref("k8s.io/api/core/v1.RBDPersistentVolumeSource"), 11797 }, 11798 }, 11799 "iscsi": { 11800 SchemaProps: spec.SchemaProps{ 11801 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.", 11802 Ref: ref("k8s.io/api/core/v1.ISCSIPersistentVolumeSource"), 11803 }, 11804 }, 11805 "cinder": { 11806 SchemaProps: spec.SchemaProps{ 11807 Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", 11808 Ref: ref("k8s.io/api/core/v1.CinderPersistentVolumeSource"), 11809 }, 11810 }, 11811 "cephfs": { 11812 SchemaProps: spec.SchemaProps{ 11813 Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime", 11814 Ref: ref("k8s.io/api/core/v1.CephFSPersistentVolumeSource"), 11815 }, 11816 }, 11817 "fc": { 11818 SchemaProps: spec.SchemaProps{ 11819 Description: "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", 11820 Ref: ref("k8s.io/api/core/v1.FCVolumeSource"), 11821 }, 11822 }, 11823 "flocker": { 11824 SchemaProps: spec.SchemaProps{ 11825 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", 11826 Ref: ref("k8s.io/api/core/v1.FlockerVolumeSource"), 11827 }, 11828 }, 11829 "flexVolume": { 11830 SchemaProps: spec.SchemaProps{ 11831 Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", 11832 Ref: ref("k8s.io/api/core/v1.FlexPersistentVolumeSource"), 11833 }, 11834 }, 11835 "azureFile": { 11836 SchemaProps: spec.SchemaProps{ 11837 Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod.", 11838 Ref: ref("k8s.io/api/core/v1.AzureFilePersistentVolumeSource"), 11839 }, 11840 }, 11841 "vsphereVolume": { 11842 SchemaProps: spec.SchemaProps{ 11843 Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", 11844 Ref: ref("k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"), 11845 }, 11846 }, 11847 "quobyte": { 11848 SchemaProps: spec.SchemaProps{ 11849 Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime", 11850 Ref: ref("k8s.io/api/core/v1.QuobyteVolumeSource"), 11851 }, 11852 }, 11853 "azureDisk": { 11854 SchemaProps: spec.SchemaProps{ 11855 Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", 11856 Ref: ref("k8s.io/api/core/v1.AzureDiskVolumeSource"), 11857 }, 11858 }, 11859 "photonPersistentDisk": { 11860 SchemaProps: spec.SchemaProps{ 11861 Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", 11862 Ref: ref("k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource"), 11863 }, 11864 }, 11865 "portworxVolume": { 11866 SchemaProps: spec.SchemaProps{ 11867 Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine", 11868 Ref: ref("k8s.io/api/core/v1.PortworxVolumeSource"), 11869 }, 11870 }, 11871 "scaleIO": { 11872 SchemaProps: spec.SchemaProps{ 11873 Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", 11874 Ref: ref("k8s.io/api/core/v1.ScaleIOPersistentVolumeSource"), 11875 }, 11876 }, 11877 "local": { 11878 SchemaProps: spec.SchemaProps{ 11879 Description: "local represents directly-attached storage with node affinity", 11880 Ref: ref("k8s.io/api/core/v1.LocalVolumeSource"), 11881 }, 11882 }, 11883 "storageos": { 11884 SchemaProps: spec.SchemaProps{ 11885 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", 11886 Ref: ref("k8s.io/api/core/v1.StorageOSPersistentVolumeSource"), 11887 }, 11888 }, 11889 "csi": { 11890 SchemaProps: spec.SchemaProps{ 11891 Description: "csi represents storage that is handled by an external CSI driver (Beta feature).", 11892 Ref: ref("k8s.io/api/core/v1.CSIPersistentVolumeSource"), 11893 }, 11894 }, 11895 "accessModes": { 11896 SchemaProps: spec.SchemaProps{ 11897 Description: "accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes", 11898 Type: []string{"array"}, 11899 Items: &spec.SchemaOrArray{ 11900 Schema: &spec.Schema{ 11901 SchemaProps: spec.SchemaProps{ 11902 Default: "", 11903 Type: []string{"string"}, 11904 Format: "", 11905 }, 11906 }, 11907 }, 11908 }, 11909 }, 11910 "claimRef": { 11911 VendorExtensible: spec.VendorExtensible{ 11912 Extensions: spec.Extensions{ 11913 "x-kubernetes-map-type": "granular", 11914 }, 11915 }, 11916 SchemaProps: spec.SchemaProps{ 11917 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", 11918 Ref: ref("k8s.io/api/core/v1.ObjectReference"), 11919 }, 11920 }, 11921 "persistentVolumeReclaimPolicy": { 11922 SchemaProps: spec.SchemaProps{ 11923 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.", 11924 Type: []string{"string"}, 11925 Format: "", 11926 Enum: []interface{}{"Delete", "Recycle", "Retain"}, 11927 }, 11928 }, 11929 "storageClassName": { 11930 SchemaProps: spec.SchemaProps{ 11931 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.", 11932 Type: []string{"string"}, 11933 Format: "", 11934 }, 11935 }, 11936 "mountOptions": { 11937 SchemaProps: spec.SchemaProps{ 11938 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", 11939 Type: []string{"array"}, 11940 Items: &spec.SchemaOrArray{ 11941 Schema: &spec.Schema{ 11942 SchemaProps: spec.SchemaProps{ 11943 Default: "", 11944 Type: []string{"string"}, 11945 Format: "", 11946 }, 11947 }, 11948 }, 11949 }, 11950 }, 11951 "volumeMode": { 11952 SchemaProps: spec.SchemaProps{ 11953 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.\n\nPossible enum values:\n - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device.\n - `\"Filesystem\"` means the volume will be or is formatted with a filesystem.", 11954 Type: []string{"string"}, 11955 Format: "", 11956 Enum: []interface{}{"Block", "Filesystem"}, 11957 }, 11958 }, 11959 "nodeAffinity": { 11960 SchemaProps: spec.SchemaProps{ 11961 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.", 11962 Ref: ref("k8s.io/api/core/v1.VolumeNodeAffinity"), 11963 }, 11964 }, 11965 }, 11966 }, 11967 }, 11968 Dependencies: []string{ 11969 "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"}, 11970 } 11971 } 11972 11973 func schema_k8sio_api_core_v1_PersistentVolumeStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 11974 return common.OpenAPIDefinition{ 11975 Schema: spec.Schema{ 11976 SchemaProps: spec.SchemaProps{ 11977 Description: "PersistentVolumeStatus is the current status of a persistent volume.", 11978 Type: []string{"object"}, 11979 Properties: map[string]spec.Schema{ 11980 "phase": { 11981 SchemaProps: spec.SchemaProps{ 11982 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", 11983 Type: []string{"string"}, 11984 Format: "", 11985 Enum: []interface{}{"Available", "Bound", "Failed", "Pending", "Released"}, 11986 }, 11987 }, 11988 "message": { 11989 SchemaProps: spec.SchemaProps{ 11990 Description: "message is a human-readable message indicating details about why the volume is in this state.", 11991 Type: []string{"string"}, 11992 Format: "", 11993 }, 11994 }, 11995 "reason": { 11996 SchemaProps: spec.SchemaProps{ 11997 Description: "reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.", 11998 Type: []string{"string"}, 11999 Format: "", 12000 }, 12001 }, 12002 }, 12003 }, 12004 }, 12005 } 12006 } 12007 12008 func schema_k8sio_api_core_v1_PhotonPersistentDiskVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 12009 return common.OpenAPIDefinition{ 12010 Schema: spec.Schema{ 12011 SchemaProps: spec.SchemaProps{ 12012 Description: "Represents a Photon Controller persistent disk resource.", 12013 Type: []string{"object"}, 12014 Properties: map[string]spec.Schema{ 12015 "pdID": { 12016 SchemaProps: spec.SchemaProps{ 12017 Description: "pdID is the ID that identifies Photon Controller persistent disk", 12018 Default: "", 12019 Type: []string{"string"}, 12020 Format: "", 12021 }, 12022 }, 12023 "fsType": { 12024 SchemaProps: spec.SchemaProps{ 12025 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.", 12026 Type: []string{"string"}, 12027 Format: "", 12028 }, 12029 }, 12030 }, 12031 Required: []string{"pdID"}, 12032 }, 12033 }, 12034 } 12035 } 12036 12037 func schema_k8sio_api_core_v1_Pod(ref common.ReferenceCallback) common.OpenAPIDefinition { 12038 return common.OpenAPIDefinition{ 12039 Schema: spec.Schema{ 12040 SchemaProps: spec.SchemaProps{ 12041 Description: "Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts.", 12042 Type: []string{"object"}, 12043 Properties: map[string]spec.Schema{ 12044 "kind": { 12045 SchemaProps: spec.SchemaProps{ 12046 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 12047 Type: []string{"string"}, 12048 Format: "", 12049 }, 12050 }, 12051 "apiVersion": { 12052 SchemaProps: spec.SchemaProps{ 12053 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 12054 Type: []string{"string"}, 12055 Format: "", 12056 }, 12057 }, 12058 "metadata": { 12059 SchemaProps: spec.SchemaProps{ 12060 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 12061 Default: map[string]interface{}{}, 12062 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 12063 }, 12064 }, 12065 "spec": { 12066 SchemaProps: spec.SchemaProps{ 12067 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", 12068 Default: map[string]interface{}{}, 12069 Ref: ref("k8s.io/api/core/v1.PodSpec"), 12070 }, 12071 }, 12072 "status": { 12073 SchemaProps: spec.SchemaProps{ 12074 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", 12075 Default: map[string]interface{}{}, 12076 Ref: ref("k8s.io/api/core/v1.PodStatus"), 12077 }, 12078 }, 12079 }, 12080 }, 12081 }, 12082 Dependencies: []string{ 12083 "k8s.io/api/core/v1.PodSpec", "k8s.io/api/core/v1.PodStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 12084 } 12085 } 12086 12087 func schema_k8sio_api_core_v1_PodAffinity(ref common.ReferenceCallback) common.OpenAPIDefinition { 12088 return common.OpenAPIDefinition{ 12089 Schema: spec.Schema{ 12090 SchemaProps: spec.SchemaProps{ 12091 Description: "Pod affinity is a group of inter pod affinity scheduling rules.", 12092 Type: []string{"object"}, 12093 Properties: map[string]spec.Schema{ 12094 "requiredDuringSchedulingIgnoredDuringExecution": { 12095 SchemaProps: spec.SchemaProps{ 12096 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.", 12097 Type: []string{"array"}, 12098 Items: &spec.SchemaOrArray{ 12099 Schema: &spec.Schema{ 12100 SchemaProps: spec.SchemaProps{ 12101 Default: map[string]interface{}{}, 12102 Ref: ref("k8s.io/api/core/v1.PodAffinityTerm"), 12103 }, 12104 }, 12105 }, 12106 }, 12107 }, 12108 "preferredDuringSchedulingIgnoredDuringExecution": { 12109 SchemaProps: spec.SchemaProps{ 12110 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.", 12111 Type: []string{"array"}, 12112 Items: &spec.SchemaOrArray{ 12113 Schema: &spec.Schema{ 12114 SchemaProps: spec.SchemaProps{ 12115 Default: map[string]interface{}{}, 12116 Ref: ref("k8s.io/api/core/v1.WeightedPodAffinityTerm"), 12117 }, 12118 }, 12119 }, 12120 }, 12121 }, 12122 }, 12123 }, 12124 }, 12125 Dependencies: []string{ 12126 "k8s.io/api/core/v1.PodAffinityTerm", "k8s.io/api/core/v1.WeightedPodAffinityTerm"}, 12127 } 12128 } 12129 12130 func schema_k8sio_api_core_v1_PodAffinityTerm(ref common.ReferenceCallback) common.OpenAPIDefinition { 12131 return common.OpenAPIDefinition{ 12132 Schema: spec.Schema{ 12133 SchemaProps: spec.SchemaProps{ 12134 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", 12135 Type: []string{"object"}, 12136 Properties: map[string]spec.Schema{ 12137 "labelSelector": { 12138 SchemaProps: spec.SchemaProps{ 12139 Description: "A label query over a set of resources, in this case pods.", 12140 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), 12141 }, 12142 }, 12143 "namespaces": { 12144 SchemaProps: spec.SchemaProps{ 12145 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\".", 12146 Type: []string{"array"}, 12147 Items: &spec.SchemaOrArray{ 12148 Schema: &spec.Schema{ 12149 SchemaProps: spec.SchemaProps{ 12150 Default: "", 12151 Type: []string{"string"}, 12152 Format: "", 12153 }, 12154 }, 12155 }, 12156 }, 12157 }, 12158 "topologyKey": { 12159 SchemaProps: spec.SchemaProps{ 12160 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.", 12161 Default: "", 12162 Type: []string{"string"}, 12163 Format: "", 12164 }, 12165 }, 12166 "namespaceSelector": { 12167 SchemaProps: spec.SchemaProps{ 12168 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.", 12169 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), 12170 }, 12171 }, 12172 }, 12173 Required: []string{"topologyKey"}, 12174 }, 12175 }, 12176 Dependencies: []string{ 12177 "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, 12178 } 12179 } 12180 12181 func schema_k8sio_api_core_v1_PodAntiAffinity(ref common.ReferenceCallback) common.OpenAPIDefinition { 12182 return common.OpenAPIDefinition{ 12183 Schema: spec.Schema{ 12184 SchemaProps: spec.SchemaProps{ 12185 Description: "Pod anti affinity is a group of inter pod anti affinity scheduling rules.", 12186 Type: []string{"object"}, 12187 Properties: map[string]spec.Schema{ 12188 "requiredDuringSchedulingIgnoredDuringExecution": { 12189 SchemaProps: spec.SchemaProps{ 12190 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.", 12191 Type: []string{"array"}, 12192 Items: &spec.SchemaOrArray{ 12193 Schema: &spec.Schema{ 12194 SchemaProps: spec.SchemaProps{ 12195 Default: map[string]interface{}{}, 12196 Ref: ref("k8s.io/api/core/v1.PodAffinityTerm"), 12197 }, 12198 }, 12199 }, 12200 }, 12201 }, 12202 "preferredDuringSchedulingIgnoredDuringExecution": { 12203 SchemaProps: spec.SchemaProps{ 12204 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.", 12205 Type: []string{"array"}, 12206 Items: &spec.SchemaOrArray{ 12207 Schema: &spec.Schema{ 12208 SchemaProps: spec.SchemaProps{ 12209 Default: map[string]interface{}{}, 12210 Ref: ref("k8s.io/api/core/v1.WeightedPodAffinityTerm"), 12211 }, 12212 }, 12213 }, 12214 }, 12215 }, 12216 }, 12217 }, 12218 }, 12219 Dependencies: []string{ 12220 "k8s.io/api/core/v1.PodAffinityTerm", "k8s.io/api/core/v1.WeightedPodAffinityTerm"}, 12221 } 12222 } 12223 12224 func schema_k8sio_api_core_v1_PodAttachOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 12225 return common.OpenAPIDefinition{ 12226 Schema: spec.Schema{ 12227 SchemaProps: spec.SchemaProps{ 12228 Description: "PodAttachOptions is the query options to a Pod's remote attach call.", 12229 Type: []string{"object"}, 12230 Properties: map[string]spec.Schema{ 12231 "kind": { 12232 SchemaProps: spec.SchemaProps{ 12233 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 12234 Type: []string{"string"}, 12235 Format: "", 12236 }, 12237 }, 12238 "apiVersion": { 12239 SchemaProps: spec.SchemaProps{ 12240 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 12241 Type: []string{"string"}, 12242 Format: "", 12243 }, 12244 }, 12245 "stdin": { 12246 SchemaProps: spec.SchemaProps{ 12247 Description: "Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false.", 12248 Type: []string{"boolean"}, 12249 Format: "", 12250 }, 12251 }, 12252 "stdout": { 12253 SchemaProps: spec.SchemaProps{ 12254 Description: "Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true.", 12255 Type: []string{"boolean"}, 12256 Format: "", 12257 }, 12258 }, 12259 "stderr": { 12260 SchemaProps: spec.SchemaProps{ 12261 Description: "Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true.", 12262 Type: []string{"boolean"}, 12263 Format: "", 12264 }, 12265 }, 12266 "tty": { 12267 SchemaProps: spec.SchemaProps{ 12268 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.", 12269 Type: []string{"boolean"}, 12270 Format: "", 12271 }, 12272 }, 12273 "container": { 12274 SchemaProps: spec.SchemaProps{ 12275 Description: "The container in which to execute the command. Defaults to only container if there is only one container in the pod.", 12276 Type: []string{"string"}, 12277 Format: "", 12278 }, 12279 }, 12280 }, 12281 }, 12282 }, 12283 } 12284 } 12285 12286 func schema_k8sio_api_core_v1_PodCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 12287 return common.OpenAPIDefinition{ 12288 Schema: spec.Schema{ 12289 SchemaProps: spec.SchemaProps{ 12290 Description: "PodCondition contains details for the current condition of this pod.", 12291 Type: []string{"object"}, 12292 Properties: map[string]spec.Schema{ 12293 "type": { 12294 SchemaProps: spec.SchemaProps{ 12295 Description: "Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", 12296 Default: "", 12297 Type: []string{"string"}, 12298 Format: "", 12299 }, 12300 }, 12301 "status": { 12302 SchemaProps: spec.SchemaProps{ 12303 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", 12304 Default: "", 12305 Type: []string{"string"}, 12306 Format: "", 12307 }, 12308 }, 12309 "lastProbeTime": { 12310 SchemaProps: spec.SchemaProps{ 12311 Description: "Last time we probed the condition.", 12312 Default: map[string]interface{}{}, 12313 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 12314 }, 12315 }, 12316 "lastTransitionTime": { 12317 SchemaProps: spec.SchemaProps{ 12318 Description: "Last time the condition transitioned from one status to another.", 12319 Default: map[string]interface{}{}, 12320 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 12321 }, 12322 }, 12323 "reason": { 12324 SchemaProps: spec.SchemaProps{ 12325 Description: "Unique, one-word, CamelCase reason for the condition's last transition.", 12326 Type: []string{"string"}, 12327 Format: "", 12328 }, 12329 }, 12330 "message": { 12331 SchemaProps: spec.SchemaProps{ 12332 Description: "Human-readable message indicating details about last transition.", 12333 Type: []string{"string"}, 12334 Format: "", 12335 }, 12336 }, 12337 }, 12338 Required: []string{"type", "status"}, 12339 }, 12340 }, 12341 Dependencies: []string{ 12342 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 12343 } 12344 } 12345 12346 func schema_k8sio_api_core_v1_PodDNSConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 12347 return common.OpenAPIDefinition{ 12348 Schema: spec.Schema{ 12349 SchemaProps: spec.SchemaProps{ 12350 Description: "PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.", 12351 Type: []string{"object"}, 12352 Properties: map[string]spec.Schema{ 12353 "nameservers": { 12354 SchemaProps: spec.SchemaProps{ 12355 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.", 12356 Type: []string{"array"}, 12357 Items: &spec.SchemaOrArray{ 12358 Schema: &spec.Schema{ 12359 SchemaProps: spec.SchemaProps{ 12360 Default: "", 12361 Type: []string{"string"}, 12362 Format: "", 12363 }, 12364 }, 12365 }, 12366 }, 12367 }, 12368 "searches": { 12369 SchemaProps: spec.SchemaProps{ 12370 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.", 12371 Type: []string{"array"}, 12372 Items: &spec.SchemaOrArray{ 12373 Schema: &spec.Schema{ 12374 SchemaProps: spec.SchemaProps{ 12375 Default: "", 12376 Type: []string{"string"}, 12377 Format: "", 12378 }, 12379 }, 12380 }, 12381 }, 12382 }, 12383 "options": { 12384 SchemaProps: spec.SchemaProps{ 12385 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.", 12386 Type: []string{"array"}, 12387 Items: &spec.SchemaOrArray{ 12388 Schema: &spec.Schema{ 12389 SchemaProps: spec.SchemaProps{ 12390 Default: map[string]interface{}{}, 12391 Ref: ref("k8s.io/api/core/v1.PodDNSConfigOption"), 12392 }, 12393 }, 12394 }, 12395 }, 12396 }, 12397 }, 12398 }, 12399 }, 12400 Dependencies: []string{ 12401 "k8s.io/api/core/v1.PodDNSConfigOption"}, 12402 } 12403 } 12404 12405 func schema_k8sio_api_core_v1_PodDNSConfigOption(ref common.ReferenceCallback) common.OpenAPIDefinition { 12406 return common.OpenAPIDefinition{ 12407 Schema: spec.Schema{ 12408 SchemaProps: spec.SchemaProps{ 12409 Description: "PodDNSConfigOption defines DNS resolver options of a pod.", 12410 Type: []string{"object"}, 12411 Properties: map[string]spec.Schema{ 12412 "name": { 12413 SchemaProps: spec.SchemaProps{ 12414 Description: "Required.", 12415 Type: []string{"string"}, 12416 Format: "", 12417 }, 12418 }, 12419 "value": { 12420 SchemaProps: spec.SchemaProps{ 12421 Type: []string{"string"}, 12422 Format: "", 12423 }, 12424 }, 12425 }, 12426 }, 12427 }, 12428 } 12429 } 12430 12431 func schema_k8sio_api_core_v1_PodExecOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 12432 return common.OpenAPIDefinition{ 12433 Schema: spec.Schema{ 12434 SchemaProps: spec.SchemaProps{ 12435 Description: "PodExecOptions is the query options to a Pod's remote exec call.", 12436 Type: []string{"object"}, 12437 Properties: map[string]spec.Schema{ 12438 "kind": { 12439 SchemaProps: spec.SchemaProps{ 12440 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 12441 Type: []string{"string"}, 12442 Format: "", 12443 }, 12444 }, 12445 "apiVersion": { 12446 SchemaProps: spec.SchemaProps{ 12447 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 12448 Type: []string{"string"}, 12449 Format: "", 12450 }, 12451 }, 12452 "stdin": { 12453 SchemaProps: spec.SchemaProps{ 12454 Description: "Redirect the standard input stream of the pod for this call. Defaults to false.", 12455 Type: []string{"boolean"}, 12456 Format: "", 12457 }, 12458 }, 12459 "stdout": { 12460 SchemaProps: spec.SchemaProps{ 12461 Description: "Redirect the standard output stream of the pod for this call.", 12462 Type: []string{"boolean"}, 12463 Format: "", 12464 }, 12465 }, 12466 "stderr": { 12467 SchemaProps: spec.SchemaProps{ 12468 Description: "Redirect the standard error stream of the pod for this call.", 12469 Type: []string{"boolean"}, 12470 Format: "", 12471 }, 12472 }, 12473 "tty": { 12474 SchemaProps: spec.SchemaProps{ 12475 Description: "TTY if true indicates that a tty will be allocated for the exec call. Defaults to false.", 12476 Type: []string{"boolean"}, 12477 Format: "", 12478 }, 12479 }, 12480 "container": { 12481 SchemaProps: spec.SchemaProps{ 12482 Description: "Container in which to execute the command. Defaults to only container if there is only one container in the pod.", 12483 Type: []string{"string"}, 12484 Format: "", 12485 }, 12486 }, 12487 "command": { 12488 SchemaProps: spec.SchemaProps{ 12489 Description: "Command is the remote command to execute. argv array. Not executed within a shell.", 12490 Type: []string{"array"}, 12491 Items: &spec.SchemaOrArray{ 12492 Schema: &spec.Schema{ 12493 SchemaProps: spec.SchemaProps{ 12494 Default: "", 12495 Type: []string{"string"}, 12496 Format: "", 12497 }, 12498 }, 12499 }, 12500 }, 12501 }, 12502 }, 12503 Required: []string{"command"}, 12504 }, 12505 }, 12506 } 12507 } 12508 12509 func schema_k8sio_api_core_v1_PodIP(ref common.ReferenceCallback) common.OpenAPIDefinition { 12510 return common.OpenAPIDefinition{ 12511 Schema: spec.Schema{ 12512 SchemaProps: spec.SchemaProps{ 12513 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.", 12514 Type: []string{"object"}, 12515 Properties: map[string]spec.Schema{ 12516 "ip": { 12517 SchemaProps: spec.SchemaProps{ 12518 Description: "ip is an IP address (IPv4 or IPv6) assigned to the pod", 12519 Type: []string{"string"}, 12520 Format: "", 12521 }, 12522 }, 12523 }, 12524 }, 12525 }, 12526 } 12527 } 12528 12529 func schema_k8sio_api_core_v1_PodList(ref common.ReferenceCallback) common.OpenAPIDefinition { 12530 return common.OpenAPIDefinition{ 12531 Schema: spec.Schema{ 12532 SchemaProps: spec.SchemaProps{ 12533 Description: "PodList is a list of Pods.", 12534 Type: []string{"object"}, 12535 Properties: map[string]spec.Schema{ 12536 "kind": { 12537 SchemaProps: spec.SchemaProps{ 12538 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 12539 Type: []string{"string"}, 12540 Format: "", 12541 }, 12542 }, 12543 "apiVersion": { 12544 SchemaProps: spec.SchemaProps{ 12545 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 12546 Type: []string{"string"}, 12547 Format: "", 12548 }, 12549 }, 12550 "metadata": { 12551 SchemaProps: spec.SchemaProps{ 12552 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 12553 Default: map[string]interface{}{}, 12554 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 12555 }, 12556 }, 12557 "items": { 12558 SchemaProps: spec.SchemaProps{ 12559 Description: "List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md", 12560 Type: []string{"array"}, 12561 Items: &spec.SchemaOrArray{ 12562 Schema: &spec.Schema{ 12563 SchemaProps: spec.SchemaProps{ 12564 Default: map[string]interface{}{}, 12565 Ref: ref("k8s.io/api/core/v1.Pod"), 12566 }, 12567 }, 12568 }, 12569 }, 12570 }, 12571 }, 12572 Required: []string{"items"}, 12573 }, 12574 }, 12575 Dependencies: []string{ 12576 "k8s.io/api/core/v1.Pod", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 12577 } 12578 } 12579 12580 func schema_k8sio_api_core_v1_PodLogOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 12581 return common.OpenAPIDefinition{ 12582 Schema: spec.Schema{ 12583 SchemaProps: spec.SchemaProps{ 12584 Description: "PodLogOptions is the query options for a Pod's logs REST call.", 12585 Type: []string{"object"}, 12586 Properties: map[string]spec.Schema{ 12587 "kind": { 12588 SchemaProps: spec.SchemaProps{ 12589 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 12590 Type: []string{"string"}, 12591 Format: "", 12592 }, 12593 }, 12594 "apiVersion": { 12595 SchemaProps: spec.SchemaProps{ 12596 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 12597 Type: []string{"string"}, 12598 Format: "", 12599 }, 12600 }, 12601 "container": { 12602 SchemaProps: spec.SchemaProps{ 12603 Description: "The container for which to stream logs. Defaults to only container if there is one container in the pod.", 12604 Type: []string{"string"}, 12605 Format: "", 12606 }, 12607 }, 12608 "follow": { 12609 SchemaProps: spec.SchemaProps{ 12610 Description: "Follow the log stream of the pod. Defaults to false.", 12611 Type: []string{"boolean"}, 12612 Format: "", 12613 }, 12614 }, 12615 "previous": { 12616 SchemaProps: spec.SchemaProps{ 12617 Description: "Return previous terminated container logs. Defaults to false.", 12618 Type: []string{"boolean"}, 12619 Format: "", 12620 }, 12621 }, 12622 "sinceSeconds": { 12623 SchemaProps: spec.SchemaProps{ 12624 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.", 12625 Type: []string{"integer"}, 12626 Format: "int64", 12627 }, 12628 }, 12629 "sinceTime": { 12630 SchemaProps: spec.SchemaProps{ 12631 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.", 12632 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 12633 }, 12634 }, 12635 "timestamps": { 12636 SchemaProps: spec.SchemaProps{ 12637 Description: "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.", 12638 Type: []string{"boolean"}, 12639 Format: "", 12640 }, 12641 }, 12642 "tailLines": { 12643 SchemaProps: spec.SchemaProps{ 12644 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", 12645 Type: []string{"integer"}, 12646 Format: "int64", 12647 }, 12648 }, 12649 "limitBytes": { 12650 SchemaProps: spec.SchemaProps{ 12651 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.", 12652 Type: []string{"integer"}, 12653 Format: "int64", 12654 }, 12655 }, 12656 "insecureSkipTLSVerifyBackend": { 12657 SchemaProps: spec.SchemaProps{ 12658 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).", 12659 Type: []string{"boolean"}, 12660 Format: "", 12661 }, 12662 }, 12663 }, 12664 }, 12665 }, 12666 Dependencies: []string{ 12667 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 12668 } 12669 } 12670 12671 func schema_k8sio_api_core_v1_PodOS(ref common.ReferenceCallback) common.OpenAPIDefinition { 12672 return common.OpenAPIDefinition{ 12673 Schema: spec.Schema{ 12674 SchemaProps: spec.SchemaProps{ 12675 Description: "PodOS defines the OS parameters of a pod.", 12676 Type: []string{"object"}, 12677 Properties: map[string]spec.Schema{ 12678 "name": { 12679 SchemaProps: spec.SchemaProps{ 12680 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", 12681 Default: "", 12682 Type: []string{"string"}, 12683 Format: "", 12684 }, 12685 }, 12686 }, 12687 Required: []string{"name"}, 12688 }, 12689 }, 12690 } 12691 } 12692 12693 func schema_k8sio_api_core_v1_PodPortForwardOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 12694 return common.OpenAPIDefinition{ 12695 Schema: spec.Schema{ 12696 SchemaProps: spec.SchemaProps{ 12697 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.", 12698 Type: []string{"object"}, 12699 Properties: map[string]spec.Schema{ 12700 "kind": { 12701 SchemaProps: spec.SchemaProps{ 12702 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 12703 Type: []string{"string"}, 12704 Format: "", 12705 }, 12706 }, 12707 "apiVersion": { 12708 SchemaProps: spec.SchemaProps{ 12709 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 12710 Type: []string{"string"}, 12711 Format: "", 12712 }, 12713 }, 12714 "ports": { 12715 SchemaProps: spec.SchemaProps{ 12716 Description: "List of ports to forward Required when using WebSockets", 12717 Type: []string{"array"}, 12718 Items: &spec.SchemaOrArray{ 12719 Schema: &spec.Schema{ 12720 SchemaProps: spec.SchemaProps{ 12721 Default: 0, 12722 Type: []string{"integer"}, 12723 Format: "int32", 12724 }, 12725 }, 12726 }, 12727 }, 12728 }, 12729 }, 12730 }, 12731 }, 12732 } 12733 } 12734 12735 func schema_k8sio_api_core_v1_PodProxyOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 12736 return common.OpenAPIDefinition{ 12737 Schema: spec.Schema{ 12738 SchemaProps: spec.SchemaProps{ 12739 Description: "PodProxyOptions is the query options to a Pod's proxy call.", 12740 Type: []string{"object"}, 12741 Properties: map[string]spec.Schema{ 12742 "kind": { 12743 SchemaProps: spec.SchemaProps{ 12744 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 12745 Type: []string{"string"}, 12746 Format: "", 12747 }, 12748 }, 12749 "apiVersion": { 12750 SchemaProps: spec.SchemaProps{ 12751 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 12752 Type: []string{"string"}, 12753 Format: "", 12754 }, 12755 }, 12756 "path": { 12757 SchemaProps: spec.SchemaProps{ 12758 Description: "Path is the URL path to use for the current proxy request to pod.", 12759 Type: []string{"string"}, 12760 Format: "", 12761 }, 12762 }, 12763 }, 12764 }, 12765 }, 12766 } 12767 } 12768 12769 func schema_k8sio_api_core_v1_PodReadinessGate(ref common.ReferenceCallback) common.OpenAPIDefinition { 12770 return common.OpenAPIDefinition{ 12771 Schema: spec.Schema{ 12772 SchemaProps: spec.SchemaProps{ 12773 Description: "PodReadinessGate contains the reference to a pod condition", 12774 Type: []string{"object"}, 12775 Properties: map[string]spec.Schema{ 12776 "conditionType": { 12777 SchemaProps: spec.SchemaProps{ 12778 Description: "ConditionType refers to a condition in the pod's condition list with matching type.", 12779 Default: "", 12780 Type: []string{"string"}, 12781 Format: "", 12782 }, 12783 }, 12784 }, 12785 Required: []string{"conditionType"}, 12786 }, 12787 }, 12788 } 12789 } 12790 12791 func schema_k8sio_api_core_v1_PodResourceClaim(ref common.ReferenceCallback) common.OpenAPIDefinition { 12792 return common.OpenAPIDefinition{ 12793 Schema: spec.Schema{ 12794 SchemaProps: spec.SchemaProps{ 12795 Description: "PodResourceClaim references exactly one ResourceClaim through a ClaimSource. It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name.", 12796 Type: []string{"object"}, 12797 Properties: map[string]spec.Schema{ 12798 "name": { 12799 SchemaProps: spec.SchemaProps{ 12800 Description: "Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL.", 12801 Default: "", 12802 Type: []string{"string"}, 12803 Format: "", 12804 }, 12805 }, 12806 "source": { 12807 SchemaProps: spec.SchemaProps{ 12808 Description: "Source describes where to find the ResourceClaim.", 12809 Default: map[string]interface{}{}, 12810 Ref: ref("k8s.io/api/core/v1.ClaimSource"), 12811 }, 12812 }, 12813 }, 12814 Required: []string{"name"}, 12815 }, 12816 }, 12817 Dependencies: []string{ 12818 "k8s.io/api/core/v1.ClaimSource"}, 12819 } 12820 } 12821 12822 func schema_k8sio_api_core_v1_PodSchedulingGate(ref common.ReferenceCallback) common.OpenAPIDefinition { 12823 return common.OpenAPIDefinition{ 12824 Schema: spec.Schema{ 12825 SchemaProps: spec.SchemaProps{ 12826 Description: "PodSchedulingGate is associated to a Pod to guard its scheduling.", 12827 Type: []string{"object"}, 12828 Properties: map[string]spec.Schema{ 12829 "name": { 12830 SchemaProps: spec.SchemaProps{ 12831 Description: "Name of the scheduling gate. Each scheduling gate must have a unique name field.", 12832 Default: "", 12833 Type: []string{"string"}, 12834 Format: "", 12835 }, 12836 }, 12837 }, 12838 Required: []string{"name"}, 12839 }, 12840 }, 12841 } 12842 } 12843 12844 func schema_k8sio_api_core_v1_PodSecurityContext(ref common.ReferenceCallback) common.OpenAPIDefinition { 12845 return common.OpenAPIDefinition{ 12846 Schema: spec.Schema{ 12847 SchemaProps: spec.SchemaProps{ 12848 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.", 12849 Type: []string{"object"}, 12850 Properties: map[string]spec.Schema{ 12851 "seLinuxOptions": { 12852 SchemaProps: spec.SchemaProps{ 12853 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.", 12854 Ref: ref("k8s.io/api/core/v1.SELinuxOptions"), 12855 }, 12856 }, 12857 "windowsOptions": { 12858 SchemaProps: spec.SchemaProps{ 12859 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.", 12860 Ref: ref("k8s.io/api/core/v1.WindowsSecurityContextOptions"), 12861 }, 12862 }, 12863 "runAsUser": { 12864 SchemaProps: spec.SchemaProps{ 12865 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.", 12866 Type: []string{"integer"}, 12867 Format: "int64", 12868 }, 12869 }, 12870 "runAsGroup": { 12871 SchemaProps: spec.SchemaProps{ 12872 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.", 12873 Type: []string{"integer"}, 12874 Format: "int64", 12875 }, 12876 }, 12877 "runAsNonRoot": { 12878 SchemaProps: spec.SchemaProps{ 12879 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.", 12880 Type: []string{"boolean"}, 12881 Format: "", 12882 }, 12883 }, 12884 "supplementalGroups": { 12885 SchemaProps: spec.SchemaProps{ 12886 Description: "A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.", 12887 Type: []string{"array"}, 12888 Items: &spec.SchemaOrArray{ 12889 Schema: &spec.Schema{ 12890 SchemaProps: spec.SchemaProps{ 12891 Default: 0, 12892 Type: []string{"integer"}, 12893 Format: "int64", 12894 }, 12895 }, 12896 }, 12897 }, 12898 }, 12899 "fsGroup": { 12900 SchemaProps: spec.SchemaProps{ 12901 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.", 12902 Type: []string{"integer"}, 12903 Format: "int64", 12904 }, 12905 }, 12906 "sysctls": { 12907 SchemaProps: spec.SchemaProps{ 12908 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.", 12909 Type: []string{"array"}, 12910 Items: &spec.SchemaOrArray{ 12911 Schema: &spec.Schema{ 12912 SchemaProps: spec.SchemaProps{ 12913 Default: map[string]interface{}{}, 12914 Ref: ref("k8s.io/api/core/v1.Sysctl"), 12915 }, 12916 }, 12917 }, 12918 }, 12919 }, 12920 "fsGroupChangePolicy": { 12921 SchemaProps: spec.SchemaProps{ 12922 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.\n\nPossible enum values:\n - `\"Always\"` indicates that volume's ownership and permissions should always be changed whenever volume is mounted inside a Pod. This the default behavior.\n - `\"OnRootMismatch\"` indicates that volume's ownership and permissions will be changed only when permission and ownership of root directory does not match with expected permissions on the volume. This can help shorten the time it takes to change ownership and permissions of a volume.", 12923 Type: []string{"string"}, 12924 Format: "", 12925 Enum: []interface{}{"Always", "OnRootMismatch"}, 12926 }, 12927 }, 12928 "seccompProfile": { 12929 SchemaProps: spec.SchemaProps{ 12930 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.", 12931 Ref: ref("k8s.io/api/core/v1.SeccompProfile"), 12932 }, 12933 }, 12934 }, 12935 }, 12936 }, 12937 Dependencies: []string{ 12938 "k8s.io/api/core/v1.SELinuxOptions", "k8s.io/api/core/v1.SeccompProfile", "k8s.io/api/core/v1.Sysctl", "k8s.io/api/core/v1.WindowsSecurityContextOptions"}, 12939 } 12940 } 12941 12942 func schema_k8sio_api_core_v1_PodSignature(ref common.ReferenceCallback) common.OpenAPIDefinition { 12943 return common.OpenAPIDefinition{ 12944 Schema: spec.Schema{ 12945 SchemaProps: spec.SchemaProps{ 12946 Description: "Describes the class of pods that should avoid this node. Exactly one field should be set.", 12947 Type: []string{"object"}, 12948 Properties: map[string]spec.Schema{ 12949 "podController": { 12950 SchemaProps: spec.SchemaProps{ 12951 Description: "Reference to controller whose pods should avoid this node.", 12952 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference"), 12953 }, 12954 }, 12955 }, 12956 }, 12957 }, 12958 Dependencies: []string{ 12959 "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference"}, 12960 } 12961 } 12962 12963 func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 12964 return common.OpenAPIDefinition{ 12965 Schema: spec.Schema{ 12966 SchemaProps: spec.SchemaProps{ 12967 Description: "PodSpec is a description of a pod.", 12968 Type: []string{"object"}, 12969 Properties: map[string]spec.Schema{ 12970 "volumes": { 12971 VendorExtensible: spec.VendorExtensible{ 12972 Extensions: spec.Extensions{ 12973 "x-kubernetes-patch-merge-key": "name", 12974 "x-kubernetes-patch-strategy": "merge,retainKeys", 12975 }, 12976 }, 12977 SchemaProps: spec.SchemaProps{ 12978 Description: "List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes", 12979 Type: []string{"array"}, 12980 Items: &spec.SchemaOrArray{ 12981 Schema: &spec.Schema{ 12982 SchemaProps: spec.SchemaProps{ 12983 Default: map[string]interface{}{}, 12984 Ref: ref("k8s.io/api/core/v1.Volume"), 12985 }, 12986 }, 12987 }, 12988 }, 12989 }, 12990 "initContainers": { 12991 VendorExtensible: spec.VendorExtensible{ 12992 Extensions: spec.Extensions{ 12993 "x-kubernetes-patch-merge-key": "name", 12994 "x-kubernetes-patch-strategy": "merge", 12995 }, 12996 }, 12997 SchemaProps: spec.SchemaProps{ 12998 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/", 12999 Type: []string{"array"}, 13000 Items: &spec.SchemaOrArray{ 13001 Schema: &spec.Schema{ 13002 SchemaProps: spec.SchemaProps{ 13003 Default: map[string]interface{}{}, 13004 Ref: ref("k8s.io/api/core/v1.Container"), 13005 }, 13006 }, 13007 }, 13008 }, 13009 }, 13010 "containers": { 13011 VendorExtensible: spec.VendorExtensible{ 13012 Extensions: spec.Extensions{ 13013 "x-kubernetes-patch-merge-key": "name", 13014 "x-kubernetes-patch-strategy": "merge", 13015 }, 13016 }, 13017 SchemaProps: spec.SchemaProps{ 13018 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.", 13019 Type: []string{"array"}, 13020 Items: &spec.SchemaOrArray{ 13021 Schema: &spec.Schema{ 13022 SchemaProps: spec.SchemaProps{ 13023 Default: map[string]interface{}{}, 13024 Ref: ref("k8s.io/api/core/v1.Container"), 13025 }, 13026 }, 13027 }, 13028 }, 13029 }, 13030 "ephemeralContainers": { 13031 VendorExtensible: spec.VendorExtensible{ 13032 Extensions: spec.Extensions{ 13033 "x-kubernetes-patch-merge-key": "name", 13034 "x-kubernetes-patch-strategy": "merge", 13035 }, 13036 }, 13037 SchemaProps: spec.SchemaProps{ 13038 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.", 13039 Type: []string{"array"}, 13040 Items: &spec.SchemaOrArray{ 13041 Schema: &spec.Schema{ 13042 SchemaProps: spec.SchemaProps{ 13043 Default: map[string]interface{}{}, 13044 Ref: ref("k8s.io/api/core/v1.EphemeralContainer"), 13045 }, 13046 }, 13047 }, 13048 }, 13049 }, 13050 "restartPolicy": { 13051 SchemaProps: spec.SchemaProps{ 13052 Description: "Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy\n\nPossible enum values:\n - `\"Always\"`\n - `\"Never\"`\n - `\"OnFailure\"`", 13053 Type: []string{"string"}, 13054 Format: "", 13055 Enum: []interface{}{"Always", "Never", "OnFailure"}, 13056 }, 13057 }, 13058 "terminationGracePeriodSeconds": { 13059 SchemaProps: spec.SchemaProps{ 13060 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.", 13061 Type: []string{"integer"}, 13062 Format: "int64", 13063 }, 13064 }, 13065 "activeDeadlineSeconds": { 13066 SchemaProps: spec.SchemaProps{ 13067 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.", 13068 Type: []string{"integer"}, 13069 Format: "int64", 13070 }, 13071 }, 13072 "dnsPolicy": { 13073 SchemaProps: spec.SchemaProps{ 13074 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.", 13075 Type: []string{"string"}, 13076 Format: "", 13077 Enum: []interface{}{"ClusterFirst", "ClusterFirstWithHostNet", "Default", "None"}, 13078 }, 13079 }, 13080 "nodeSelector": { 13081 VendorExtensible: spec.VendorExtensible{ 13082 Extensions: spec.Extensions{ 13083 "x-kubernetes-map-type": "atomic", 13084 }, 13085 }, 13086 SchemaProps: spec.SchemaProps{ 13087 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/", 13088 Type: []string{"object"}, 13089 AdditionalProperties: &spec.SchemaOrBool{ 13090 Allows: true, 13091 Schema: &spec.Schema{ 13092 SchemaProps: spec.SchemaProps{ 13093 Default: "", 13094 Type: []string{"string"}, 13095 Format: "", 13096 }, 13097 }, 13098 }, 13099 }, 13100 }, 13101 "serviceAccountName": { 13102 SchemaProps: spec.SchemaProps{ 13103 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/", 13104 Type: []string{"string"}, 13105 Format: "", 13106 }, 13107 }, 13108 "serviceAccount": { 13109 SchemaProps: spec.SchemaProps{ 13110 Description: "DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.", 13111 Type: []string{"string"}, 13112 Format: "", 13113 }, 13114 }, 13115 "automountServiceAccountToken": { 13116 SchemaProps: spec.SchemaProps{ 13117 Description: "AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.", 13118 Type: []string{"boolean"}, 13119 Format: "", 13120 }, 13121 }, 13122 "nodeName": { 13123 SchemaProps: spec.SchemaProps{ 13124 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.", 13125 Type: []string{"string"}, 13126 Format: "", 13127 }, 13128 }, 13129 "hostNetwork": { 13130 SchemaProps: spec.SchemaProps{ 13131 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.", 13132 Type: []string{"boolean"}, 13133 Format: "", 13134 }, 13135 }, 13136 "hostPID": { 13137 SchemaProps: spec.SchemaProps{ 13138 Description: "Use the host's pid namespace. Optional: Default to false.", 13139 Type: []string{"boolean"}, 13140 Format: "", 13141 }, 13142 }, 13143 "hostIPC": { 13144 SchemaProps: spec.SchemaProps{ 13145 Description: "Use the host's ipc namespace. Optional: Default to false.", 13146 Type: []string{"boolean"}, 13147 Format: "", 13148 }, 13149 }, 13150 "shareProcessNamespace": { 13151 SchemaProps: spec.SchemaProps{ 13152 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.", 13153 Type: []string{"boolean"}, 13154 Format: "", 13155 }, 13156 }, 13157 "securityContext": { 13158 SchemaProps: spec.SchemaProps{ 13159 Description: "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field.", 13160 Ref: ref("k8s.io/api/core/v1.PodSecurityContext"), 13161 }, 13162 }, 13163 "imagePullSecrets": { 13164 VendorExtensible: spec.VendorExtensible{ 13165 Extensions: spec.Extensions{ 13166 "x-kubernetes-patch-merge-key": "name", 13167 "x-kubernetes-patch-strategy": "merge", 13168 }, 13169 }, 13170 SchemaProps: spec.SchemaProps{ 13171 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", 13172 Type: []string{"array"}, 13173 Items: &spec.SchemaOrArray{ 13174 Schema: &spec.Schema{ 13175 SchemaProps: spec.SchemaProps{ 13176 Default: map[string]interface{}{}, 13177 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 13178 }, 13179 }, 13180 }, 13181 }, 13182 }, 13183 "hostname": { 13184 SchemaProps: spec.SchemaProps{ 13185 Description: "Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.", 13186 Type: []string{"string"}, 13187 Format: "", 13188 }, 13189 }, 13190 "subdomain": { 13191 SchemaProps: spec.SchemaProps{ 13192 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.", 13193 Type: []string{"string"}, 13194 Format: "", 13195 }, 13196 }, 13197 "affinity": { 13198 SchemaProps: spec.SchemaProps{ 13199 Description: "If specified, the pod's scheduling constraints", 13200 Ref: ref("k8s.io/api/core/v1.Affinity"), 13201 }, 13202 }, 13203 "schedulerName": { 13204 SchemaProps: spec.SchemaProps{ 13205 Description: "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.", 13206 Type: []string{"string"}, 13207 Format: "", 13208 }, 13209 }, 13210 "tolerations": { 13211 SchemaProps: spec.SchemaProps{ 13212 Description: "If specified, the pod's tolerations.", 13213 Type: []string{"array"}, 13214 Items: &spec.SchemaOrArray{ 13215 Schema: &spec.Schema{ 13216 SchemaProps: spec.SchemaProps{ 13217 Default: map[string]interface{}{}, 13218 Ref: ref("k8s.io/api/core/v1.Toleration"), 13219 }, 13220 }, 13221 }, 13222 }, 13223 }, 13224 "hostAliases": { 13225 VendorExtensible: spec.VendorExtensible{ 13226 Extensions: spec.Extensions{ 13227 "x-kubernetes-patch-merge-key": "ip", 13228 "x-kubernetes-patch-strategy": "merge", 13229 }, 13230 }, 13231 SchemaProps: spec.SchemaProps{ 13232 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.", 13233 Type: []string{"array"}, 13234 Items: &spec.SchemaOrArray{ 13235 Schema: &spec.Schema{ 13236 SchemaProps: spec.SchemaProps{ 13237 Default: map[string]interface{}{}, 13238 Ref: ref("k8s.io/api/core/v1.HostAlias"), 13239 }, 13240 }, 13241 }, 13242 }, 13243 }, 13244 "priorityClassName": { 13245 SchemaProps: spec.SchemaProps{ 13246 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.", 13247 Type: []string{"string"}, 13248 Format: "", 13249 }, 13250 }, 13251 "priority": { 13252 SchemaProps: spec.SchemaProps{ 13253 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.", 13254 Type: []string{"integer"}, 13255 Format: "int32", 13256 }, 13257 }, 13258 "dnsConfig": { 13259 SchemaProps: spec.SchemaProps{ 13260 Description: "Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy.", 13261 Ref: ref("k8s.io/api/core/v1.PodDNSConfig"), 13262 }, 13263 }, 13264 "readinessGates": { 13265 SchemaProps: spec.SchemaProps{ 13266 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", 13267 Type: []string{"array"}, 13268 Items: &spec.SchemaOrArray{ 13269 Schema: &spec.Schema{ 13270 SchemaProps: spec.SchemaProps{ 13271 Default: map[string]interface{}{}, 13272 Ref: ref("k8s.io/api/core/v1.PodReadinessGate"), 13273 }, 13274 }, 13275 }, 13276 }, 13277 }, 13278 "runtimeClassName": { 13279 SchemaProps: spec.SchemaProps{ 13280 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", 13281 Type: []string{"string"}, 13282 Format: "", 13283 }, 13284 }, 13285 "enableServiceLinks": { 13286 SchemaProps: spec.SchemaProps{ 13287 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.", 13288 Type: []string{"boolean"}, 13289 Format: "", 13290 }, 13291 }, 13292 "preemptionPolicy": { 13293 SchemaProps: spec.SchemaProps{ 13294 Description: "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.\n\nPossible enum values:\n - `\"Never\"` means that pod never preempts other pods with lower priority.\n - `\"PreemptLowerPriority\"` means that pod can preempt other pods with lower priority.", 13295 Type: []string{"string"}, 13296 Format: "", 13297 Enum: []interface{}{"Never", "PreemptLowerPriority"}, 13298 }, 13299 }, 13300 "overhead": { 13301 SchemaProps: spec.SchemaProps{ 13302 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", 13303 Type: []string{"object"}, 13304 AdditionalProperties: &spec.SchemaOrBool{ 13305 Allows: true, 13306 Schema: &spec.Schema{ 13307 SchemaProps: spec.SchemaProps{ 13308 Default: map[string]interface{}{}, 13309 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 13310 }, 13311 }, 13312 }, 13313 }, 13314 }, 13315 "topologySpreadConstraints": { 13316 VendorExtensible: spec.VendorExtensible{ 13317 Extensions: spec.Extensions{ 13318 "x-kubernetes-list-map-keys": []interface{}{ 13319 "topologyKey", 13320 "whenUnsatisfiable", 13321 }, 13322 "x-kubernetes-list-type": "map", 13323 "x-kubernetes-patch-merge-key": "topologyKey", 13324 "x-kubernetes-patch-strategy": "merge", 13325 }, 13326 }, 13327 SchemaProps: spec.SchemaProps{ 13328 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.", 13329 Type: []string{"array"}, 13330 Items: &spec.SchemaOrArray{ 13331 Schema: &spec.Schema{ 13332 SchemaProps: spec.SchemaProps{ 13333 Default: map[string]interface{}{}, 13334 Ref: ref("k8s.io/api/core/v1.TopologySpreadConstraint"), 13335 }, 13336 }, 13337 }, 13338 }, 13339 }, 13340 "setHostnameAsFQDN": { 13341 SchemaProps: spec.SchemaProps{ 13342 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.", 13343 Type: []string{"boolean"}, 13344 Format: "", 13345 }, 13346 }, 13347 "os": { 13348 SchemaProps: spec.SchemaProps{ 13349 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", 13350 Ref: ref("k8s.io/api/core/v1.PodOS"), 13351 }, 13352 }, 13353 "hostUsers": { 13354 SchemaProps: spec.SchemaProps{ 13355 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.", 13356 Type: []string{"boolean"}, 13357 Format: "", 13358 }, 13359 }, 13360 "schedulingGates": { 13361 VendorExtensible: spec.VendorExtensible{ 13362 Extensions: spec.Extensions{ 13363 "x-kubernetes-list-map-keys": []interface{}{ 13364 "name", 13365 }, 13366 "x-kubernetes-list-type": "map", 13367 "x-kubernetes-patch-merge-key": "name", 13368 "x-kubernetes-patch-strategy": "merge", 13369 }, 13370 }, 13371 SchemaProps: spec.SchemaProps{ 13372 Description: "SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\n\nSchedulingGates can only be set at pod creation time, and be removed only afterwards.\n\nThis is a beta feature enabled by the PodSchedulingReadiness feature gate.", 13373 Type: []string{"array"}, 13374 Items: &spec.SchemaOrArray{ 13375 Schema: &spec.Schema{ 13376 SchemaProps: spec.SchemaProps{ 13377 Default: map[string]interface{}{}, 13378 Ref: ref("k8s.io/api/core/v1.PodSchedulingGate"), 13379 }, 13380 }, 13381 }, 13382 }, 13383 }, 13384 "resourceClaims": { 13385 VendorExtensible: spec.VendorExtensible{ 13386 Extensions: spec.Extensions{ 13387 "x-kubernetes-list-map-keys": []interface{}{ 13388 "name", 13389 }, 13390 "x-kubernetes-list-type": "map", 13391 "x-kubernetes-patch-merge-key": "name", 13392 "x-kubernetes-patch-strategy": "merge,retainKeys", 13393 }, 13394 }, 13395 SchemaProps: spec.SchemaProps{ 13396 Description: "ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\n\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\n\nThis field is immutable.", 13397 Type: []string{"array"}, 13398 Items: &spec.SchemaOrArray{ 13399 Schema: &spec.Schema{ 13400 SchemaProps: spec.SchemaProps{ 13401 Default: map[string]interface{}{}, 13402 Ref: ref("k8s.io/api/core/v1.PodResourceClaim"), 13403 }, 13404 }, 13405 }, 13406 }, 13407 }, 13408 }, 13409 Required: []string{"containers"}, 13410 }, 13411 }, 13412 Dependencies: []string{ 13413 "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.PodResourceClaim", "k8s.io/api/core/v1.PodSchedulingGate", "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"}, 13414 } 13415 } 13416 13417 func schema_k8sio_api_core_v1_PodStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 13418 return common.OpenAPIDefinition{ 13419 Schema: spec.Schema{ 13420 SchemaProps: spec.SchemaProps{ 13421 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.", 13422 Type: []string{"object"}, 13423 Properties: map[string]spec.Schema{ 13424 "phase": { 13425 SchemaProps: spec.SchemaProps{ 13426 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)", 13427 Type: []string{"string"}, 13428 Format: "", 13429 Enum: []interface{}{"Failed", "Pending", "Running", "Succeeded", "Unknown"}, 13430 }, 13431 }, 13432 "conditions": { 13433 VendorExtensible: spec.VendorExtensible{ 13434 Extensions: spec.Extensions{ 13435 "x-kubernetes-patch-merge-key": "type", 13436 "x-kubernetes-patch-strategy": "merge", 13437 }, 13438 }, 13439 SchemaProps: spec.SchemaProps{ 13440 Description: "Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", 13441 Type: []string{"array"}, 13442 Items: &spec.SchemaOrArray{ 13443 Schema: &spec.Schema{ 13444 SchemaProps: spec.SchemaProps{ 13445 Default: map[string]interface{}{}, 13446 Ref: ref("k8s.io/api/core/v1.PodCondition"), 13447 }, 13448 }, 13449 }, 13450 }, 13451 }, 13452 "message": { 13453 SchemaProps: spec.SchemaProps{ 13454 Description: "A human readable message indicating details about why the pod is in this condition.", 13455 Type: []string{"string"}, 13456 Format: "", 13457 }, 13458 }, 13459 "reason": { 13460 SchemaProps: spec.SchemaProps{ 13461 Description: "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted'", 13462 Type: []string{"string"}, 13463 Format: "", 13464 }, 13465 }, 13466 "nominatedNodeName": { 13467 SchemaProps: spec.SchemaProps{ 13468 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.", 13469 Type: []string{"string"}, 13470 Format: "", 13471 }, 13472 }, 13473 "hostIP": { 13474 SchemaProps: spec.SchemaProps{ 13475 Description: "IP address of the host to which the pod is assigned. Empty if not yet scheduled.", 13476 Type: []string{"string"}, 13477 Format: "", 13478 }, 13479 }, 13480 "podIP": { 13481 SchemaProps: spec.SchemaProps{ 13482 Description: "IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.", 13483 Type: []string{"string"}, 13484 Format: "", 13485 }, 13486 }, 13487 "podIPs": { 13488 VendorExtensible: spec.VendorExtensible{ 13489 Extensions: spec.Extensions{ 13490 "x-kubernetes-patch-merge-key": "ip", 13491 "x-kubernetes-patch-strategy": "merge", 13492 }, 13493 }, 13494 SchemaProps: spec.SchemaProps{ 13495 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.", 13496 Type: []string{"array"}, 13497 Items: &spec.SchemaOrArray{ 13498 Schema: &spec.Schema{ 13499 SchemaProps: spec.SchemaProps{ 13500 Default: map[string]interface{}{}, 13501 Ref: ref("k8s.io/api/core/v1.PodIP"), 13502 }, 13503 }, 13504 }, 13505 }, 13506 }, 13507 "startTime": { 13508 SchemaProps: spec.SchemaProps{ 13509 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.", 13510 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 13511 }, 13512 }, 13513 "initContainerStatuses": { 13514 SchemaProps: spec.SchemaProps{ 13515 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", 13516 Type: []string{"array"}, 13517 Items: &spec.SchemaOrArray{ 13518 Schema: &spec.Schema{ 13519 SchemaProps: spec.SchemaProps{ 13520 Default: map[string]interface{}{}, 13521 Ref: ref("k8s.io/api/core/v1.ContainerStatus"), 13522 }, 13523 }, 13524 }, 13525 }, 13526 }, 13527 "containerStatuses": { 13528 SchemaProps: spec.SchemaProps{ 13529 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", 13530 Type: []string{"array"}, 13531 Items: &spec.SchemaOrArray{ 13532 Schema: &spec.Schema{ 13533 SchemaProps: spec.SchemaProps{ 13534 Default: map[string]interface{}{}, 13535 Ref: ref("k8s.io/api/core/v1.ContainerStatus"), 13536 }, 13537 }, 13538 }, 13539 }, 13540 }, 13541 "qosClass": { 13542 SchemaProps: spec.SchemaProps{ 13543 Description: "The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes\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.", 13544 Type: []string{"string"}, 13545 Format: "", 13546 Enum: []interface{}{"BestEffort", "Burstable", "Guaranteed"}, 13547 }, 13548 }, 13549 "ephemeralContainerStatuses": { 13550 SchemaProps: spec.SchemaProps{ 13551 Description: "Status for any ephemeral containers that have run in this pod.", 13552 Type: []string{"array"}, 13553 Items: &spec.SchemaOrArray{ 13554 Schema: &spec.Schema{ 13555 SchemaProps: spec.SchemaProps{ 13556 Default: map[string]interface{}{}, 13557 Ref: ref("k8s.io/api/core/v1.ContainerStatus"), 13558 }, 13559 }, 13560 }, 13561 }, 13562 }, 13563 "resize": { 13564 SchemaProps: spec.SchemaProps{ 13565 Description: "Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to \"Proposed\"", 13566 Type: []string{"string"}, 13567 Format: "", 13568 }, 13569 }, 13570 }, 13571 }, 13572 }, 13573 Dependencies: []string{ 13574 "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"}, 13575 } 13576 } 13577 13578 func schema_k8sio_api_core_v1_PodStatusResult(ref common.ReferenceCallback) common.OpenAPIDefinition { 13579 return common.OpenAPIDefinition{ 13580 Schema: spec.Schema{ 13581 SchemaProps: spec.SchemaProps{ 13582 Description: "PodStatusResult is a wrapper for PodStatus returned by kubelet that can be encode/decoded", 13583 Type: []string{"object"}, 13584 Properties: map[string]spec.Schema{ 13585 "kind": { 13586 SchemaProps: spec.SchemaProps{ 13587 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 13588 Type: []string{"string"}, 13589 Format: "", 13590 }, 13591 }, 13592 "apiVersion": { 13593 SchemaProps: spec.SchemaProps{ 13594 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 13595 Type: []string{"string"}, 13596 Format: "", 13597 }, 13598 }, 13599 "metadata": { 13600 SchemaProps: spec.SchemaProps{ 13601 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 13602 Default: map[string]interface{}{}, 13603 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 13604 }, 13605 }, 13606 "status": { 13607 SchemaProps: spec.SchemaProps{ 13608 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", 13609 Default: map[string]interface{}{}, 13610 Ref: ref("k8s.io/api/core/v1.PodStatus"), 13611 }, 13612 }, 13613 }, 13614 }, 13615 }, 13616 Dependencies: []string{ 13617 "k8s.io/api/core/v1.PodStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 13618 } 13619 } 13620 13621 func schema_k8sio_api_core_v1_PodTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { 13622 return common.OpenAPIDefinition{ 13623 Schema: spec.Schema{ 13624 SchemaProps: spec.SchemaProps{ 13625 Description: "PodTemplate describes a template for creating copies of a predefined pod.", 13626 Type: []string{"object"}, 13627 Properties: map[string]spec.Schema{ 13628 "kind": { 13629 SchemaProps: spec.SchemaProps{ 13630 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 13631 Type: []string{"string"}, 13632 Format: "", 13633 }, 13634 }, 13635 "apiVersion": { 13636 SchemaProps: spec.SchemaProps{ 13637 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 13638 Type: []string{"string"}, 13639 Format: "", 13640 }, 13641 }, 13642 "metadata": { 13643 SchemaProps: spec.SchemaProps{ 13644 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 13645 Default: map[string]interface{}{}, 13646 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 13647 }, 13648 }, 13649 "template": { 13650 SchemaProps: spec.SchemaProps{ 13651 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", 13652 Default: map[string]interface{}{}, 13653 Ref: ref("k8s.io/api/core/v1.PodTemplateSpec"), 13654 }, 13655 }, 13656 }, 13657 }, 13658 }, 13659 Dependencies: []string{ 13660 "k8s.io/api/core/v1.PodTemplateSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 13661 } 13662 } 13663 13664 func schema_k8sio_api_core_v1_PodTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { 13665 return common.OpenAPIDefinition{ 13666 Schema: spec.Schema{ 13667 SchemaProps: spec.SchemaProps{ 13668 Description: "PodTemplateList is a list of PodTemplates.", 13669 Type: []string{"object"}, 13670 Properties: map[string]spec.Schema{ 13671 "kind": { 13672 SchemaProps: spec.SchemaProps{ 13673 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 13674 Type: []string{"string"}, 13675 Format: "", 13676 }, 13677 }, 13678 "apiVersion": { 13679 SchemaProps: spec.SchemaProps{ 13680 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 13681 Type: []string{"string"}, 13682 Format: "", 13683 }, 13684 }, 13685 "metadata": { 13686 SchemaProps: spec.SchemaProps{ 13687 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 13688 Default: map[string]interface{}{}, 13689 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 13690 }, 13691 }, 13692 "items": { 13693 SchemaProps: spec.SchemaProps{ 13694 Description: "List of pod templates", 13695 Type: []string{"array"}, 13696 Items: &spec.SchemaOrArray{ 13697 Schema: &spec.Schema{ 13698 SchemaProps: spec.SchemaProps{ 13699 Default: map[string]interface{}{}, 13700 Ref: ref("k8s.io/api/core/v1.PodTemplate"), 13701 }, 13702 }, 13703 }, 13704 }, 13705 }, 13706 }, 13707 Required: []string{"items"}, 13708 }, 13709 }, 13710 Dependencies: []string{ 13711 "k8s.io/api/core/v1.PodTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 13712 } 13713 } 13714 13715 func schema_k8sio_api_core_v1_PodTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 13716 return common.OpenAPIDefinition{ 13717 Schema: spec.Schema{ 13718 SchemaProps: spec.SchemaProps{ 13719 Description: "PodTemplateSpec describes the data a pod should have when created from a template", 13720 Type: []string{"object"}, 13721 Properties: map[string]spec.Schema{ 13722 "metadata": { 13723 SchemaProps: spec.SchemaProps{ 13724 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 13725 Default: map[string]interface{}{}, 13726 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 13727 }, 13728 }, 13729 "spec": { 13730 SchemaProps: spec.SchemaProps{ 13731 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", 13732 Default: map[string]interface{}{}, 13733 Ref: ref("k8s.io/api/core/v1.PodSpec"), 13734 }, 13735 }, 13736 }, 13737 }, 13738 }, 13739 Dependencies: []string{ 13740 "k8s.io/api/core/v1.PodSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 13741 } 13742 } 13743 13744 func schema_k8sio_api_core_v1_PortStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 13745 return common.OpenAPIDefinition{ 13746 Schema: spec.Schema{ 13747 SchemaProps: spec.SchemaProps{ 13748 Type: []string{"object"}, 13749 Properties: map[string]spec.Schema{ 13750 "port": { 13751 SchemaProps: spec.SchemaProps{ 13752 Description: "Port is the port number of the service port of which status is recorded here", 13753 Default: 0, 13754 Type: []string{"integer"}, 13755 Format: "int32", 13756 }, 13757 }, 13758 "protocol": { 13759 SchemaProps: spec.SchemaProps{ 13760 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.", 13761 Default: "", 13762 Type: []string{"string"}, 13763 Format: "", 13764 Enum: []interface{}{"SCTP", "TCP", "UDP"}, 13765 }, 13766 }, 13767 "error": { 13768 SchemaProps: spec.SchemaProps{ 13769 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.", 13770 Type: []string{"string"}, 13771 Format: "", 13772 }, 13773 }, 13774 }, 13775 Required: []string{"port", "protocol"}, 13776 }, 13777 }, 13778 } 13779 } 13780 13781 func schema_k8sio_api_core_v1_PortworxVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 13782 return common.OpenAPIDefinition{ 13783 Schema: spec.Schema{ 13784 SchemaProps: spec.SchemaProps{ 13785 Description: "PortworxVolumeSource represents a Portworx volume resource.", 13786 Type: []string{"object"}, 13787 Properties: map[string]spec.Schema{ 13788 "volumeID": { 13789 SchemaProps: spec.SchemaProps{ 13790 Description: "volumeID uniquely identifies a Portworx volume", 13791 Default: "", 13792 Type: []string{"string"}, 13793 Format: "", 13794 }, 13795 }, 13796 "fsType": { 13797 SchemaProps: spec.SchemaProps{ 13798 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.", 13799 Type: []string{"string"}, 13800 Format: "", 13801 }, 13802 }, 13803 "readOnly": { 13804 SchemaProps: spec.SchemaProps{ 13805 Description: "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 13806 Type: []string{"boolean"}, 13807 Format: "", 13808 }, 13809 }, 13810 }, 13811 Required: []string{"volumeID"}, 13812 }, 13813 }, 13814 } 13815 } 13816 13817 func schema_k8sio_api_core_v1_PreferAvoidPodsEntry(ref common.ReferenceCallback) common.OpenAPIDefinition { 13818 return common.OpenAPIDefinition{ 13819 Schema: spec.Schema{ 13820 SchemaProps: spec.SchemaProps{ 13821 Description: "Describes a class of pods that should avoid this node.", 13822 Type: []string{"object"}, 13823 Properties: map[string]spec.Schema{ 13824 "podSignature": { 13825 SchemaProps: spec.SchemaProps{ 13826 Description: "The class of pods.", 13827 Default: map[string]interface{}{}, 13828 Ref: ref("k8s.io/api/core/v1.PodSignature"), 13829 }, 13830 }, 13831 "evictionTime": { 13832 SchemaProps: spec.SchemaProps{ 13833 Description: "Time at which this entry was added to the list.", 13834 Default: map[string]interface{}{}, 13835 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 13836 }, 13837 }, 13838 "reason": { 13839 SchemaProps: spec.SchemaProps{ 13840 Description: "(brief) reason why this entry was added to the list.", 13841 Type: []string{"string"}, 13842 Format: "", 13843 }, 13844 }, 13845 "message": { 13846 SchemaProps: spec.SchemaProps{ 13847 Description: "Human readable message indicating why this entry was added to the list.", 13848 Type: []string{"string"}, 13849 Format: "", 13850 }, 13851 }, 13852 }, 13853 Required: []string{"podSignature"}, 13854 }, 13855 }, 13856 Dependencies: []string{ 13857 "k8s.io/api/core/v1.PodSignature", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 13858 } 13859 } 13860 13861 func schema_k8sio_api_core_v1_PreferredSchedulingTerm(ref common.ReferenceCallback) common.OpenAPIDefinition { 13862 return common.OpenAPIDefinition{ 13863 Schema: spec.Schema{ 13864 SchemaProps: spec.SchemaProps{ 13865 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).", 13866 Type: []string{"object"}, 13867 Properties: map[string]spec.Schema{ 13868 "weight": { 13869 SchemaProps: spec.SchemaProps{ 13870 Description: "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.", 13871 Default: 0, 13872 Type: []string{"integer"}, 13873 Format: "int32", 13874 }, 13875 }, 13876 "preference": { 13877 SchemaProps: spec.SchemaProps{ 13878 Description: "A node selector term, associated with the corresponding weight.", 13879 Default: map[string]interface{}{}, 13880 Ref: ref("k8s.io/api/core/v1.NodeSelectorTerm"), 13881 }, 13882 }, 13883 }, 13884 Required: []string{"weight", "preference"}, 13885 }, 13886 }, 13887 Dependencies: []string{ 13888 "k8s.io/api/core/v1.NodeSelectorTerm"}, 13889 } 13890 } 13891 13892 func schema_k8sio_api_core_v1_Probe(ref common.ReferenceCallback) common.OpenAPIDefinition { 13893 return common.OpenAPIDefinition{ 13894 Schema: spec.Schema{ 13895 SchemaProps: spec.SchemaProps{ 13896 Description: "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.", 13897 Type: []string{"object"}, 13898 Properties: map[string]spec.Schema{ 13899 "exec": { 13900 SchemaProps: spec.SchemaProps{ 13901 Description: "Exec specifies the action to take.", 13902 Ref: ref("k8s.io/api/core/v1.ExecAction"), 13903 }, 13904 }, 13905 "httpGet": { 13906 SchemaProps: spec.SchemaProps{ 13907 Description: "HTTPGet specifies the http request to perform.", 13908 Ref: ref("k8s.io/api/core/v1.HTTPGetAction"), 13909 }, 13910 }, 13911 "tcpSocket": { 13912 SchemaProps: spec.SchemaProps{ 13913 Description: "TCPSocket specifies an action involving a TCP port.", 13914 Ref: ref("k8s.io/api/core/v1.TCPSocketAction"), 13915 }, 13916 }, 13917 "grpc": { 13918 SchemaProps: spec.SchemaProps{ 13919 Description: "GRPC specifies an action involving a GRPC port.", 13920 Ref: ref("k8s.io/api/core/v1.GRPCAction"), 13921 }, 13922 }, 13923 "initialDelaySeconds": { 13924 SchemaProps: spec.SchemaProps{ 13925 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", 13926 Type: []string{"integer"}, 13927 Format: "int32", 13928 }, 13929 }, 13930 "timeoutSeconds": { 13931 SchemaProps: spec.SchemaProps{ 13932 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", 13933 Type: []string{"integer"}, 13934 Format: "int32", 13935 }, 13936 }, 13937 "periodSeconds": { 13938 SchemaProps: spec.SchemaProps{ 13939 Description: "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", 13940 Type: []string{"integer"}, 13941 Format: "int32", 13942 }, 13943 }, 13944 "successThreshold": { 13945 SchemaProps: spec.SchemaProps{ 13946 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.", 13947 Type: []string{"integer"}, 13948 Format: "int32", 13949 }, 13950 }, 13951 "failureThreshold": { 13952 SchemaProps: spec.SchemaProps{ 13953 Description: "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", 13954 Type: []string{"integer"}, 13955 Format: "int32", 13956 }, 13957 }, 13958 "terminationGracePeriodSeconds": { 13959 SchemaProps: spec.SchemaProps{ 13960 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.", 13961 Type: []string{"integer"}, 13962 Format: "int64", 13963 }, 13964 }, 13965 }, 13966 }, 13967 }, 13968 Dependencies: []string{ 13969 "k8s.io/api/core/v1.ExecAction", "k8s.io/api/core/v1.GRPCAction", "k8s.io/api/core/v1.HTTPGetAction", "k8s.io/api/core/v1.TCPSocketAction"}, 13970 } 13971 } 13972 13973 func schema_k8sio_api_core_v1_ProbeHandler(ref common.ReferenceCallback) common.OpenAPIDefinition { 13974 return common.OpenAPIDefinition{ 13975 Schema: spec.Schema{ 13976 SchemaProps: spec.SchemaProps{ 13977 Description: "ProbeHandler defines a specific action that should be taken in a probe. One and only one of the fields must be specified.", 13978 Type: []string{"object"}, 13979 Properties: map[string]spec.Schema{ 13980 "exec": { 13981 SchemaProps: spec.SchemaProps{ 13982 Description: "Exec specifies the action to take.", 13983 Ref: ref("k8s.io/api/core/v1.ExecAction"), 13984 }, 13985 }, 13986 "httpGet": { 13987 SchemaProps: spec.SchemaProps{ 13988 Description: "HTTPGet specifies the http request to perform.", 13989 Ref: ref("k8s.io/api/core/v1.HTTPGetAction"), 13990 }, 13991 }, 13992 "tcpSocket": { 13993 SchemaProps: spec.SchemaProps{ 13994 Description: "TCPSocket specifies an action involving a TCP port.", 13995 Ref: ref("k8s.io/api/core/v1.TCPSocketAction"), 13996 }, 13997 }, 13998 "grpc": { 13999 SchemaProps: spec.SchemaProps{ 14000 Description: "GRPC specifies an action involving a GRPC port.", 14001 Ref: ref("k8s.io/api/core/v1.GRPCAction"), 14002 }, 14003 }, 14004 }, 14005 }, 14006 }, 14007 Dependencies: []string{ 14008 "k8s.io/api/core/v1.ExecAction", "k8s.io/api/core/v1.GRPCAction", "k8s.io/api/core/v1.HTTPGetAction", "k8s.io/api/core/v1.TCPSocketAction"}, 14009 } 14010 } 14011 14012 func schema_k8sio_api_core_v1_ProjectedVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 14013 return common.OpenAPIDefinition{ 14014 Schema: spec.Schema{ 14015 SchemaProps: spec.SchemaProps{ 14016 Description: "Represents a projected volume source", 14017 Type: []string{"object"}, 14018 Properties: map[string]spec.Schema{ 14019 "sources": { 14020 SchemaProps: spec.SchemaProps{ 14021 Description: "sources is the list of volume projections", 14022 Type: []string{"array"}, 14023 Items: &spec.SchemaOrArray{ 14024 Schema: &spec.Schema{ 14025 SchemaProps: spec.SchemaProps{ 14026 Default: map[string]interface{}{}, 14027 Ref: ref("k8s.io/api/core/v1.VolumeProjection"), 14028 }, 14029 }, 14030 }, 14031 }, 14032 }, 14033 "defaultMode": { 14034 SchemaProps: spec.SchemaProps{ 14035 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.", 14036 Type: []string{"integer"}, 14037 Format: "int32", 14038 }, 14039 }, 14040 }, 14041 }, 14042 }, 14043 Dependencies: []string{ 14044 "k8s.io/api/core/v1.VolumeProjection"}, 14045 } 14046 } 14047 14048 func schema_k8sio_api_core_v1_QuobyteVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 14049 return common.OpenAPIDefinition{ 14050 Schema: spec.Schema{ 14051 SchemaProps: spec.SchemaProps{ 14052 Description: "Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.", 14053 Type: []string{"object"}, 14054 Properties: map[string]spec.Schema{ 14055 "registry": { 14056 SchemaProps: spec.SchemaProps{ 14057 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", 14058 Default: "", 14059 Type: []string{"string"}, 14060 Format: "", 14061 }, 14062 }, 14063 "volume": { 14064 SchemaProps: spec.SchemaProps{ 14065 Description: "volume is a string that references an already created Quobyte volume by name.", 14066 Default: "", 14067 Type: []string{"string"}, 14068 Format: "", 14069 }, 14070 }, 14071 "readOnly": { 14072 SchemaProps: spec.SchemaProps{ 14073 Description: "readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false.", 14074 Type: []string{"boolean"}, 14075 Format: "", 14076 }, 14077 }, 14078 "user": { 14079 SchemaProps: spec.SchemaProps{ 14080 Description: "user to map volume access to Defaults to serivceaccount user", 14081 Type: []string{"string"}, 14082 Format: "", 14083 }, 14084 }, 14085 "group": { 14086 SchemaProps: spec.SchemaProps{ 14087 Description: "group to map volume access to Default is no group", 14088 Type: []string{"string"}, 14089 Format: "", 14090 }, 14091 }, 14092 "tenant": { 14093 SchemaProps: spec.SchemaProps{ 14094 Description: "tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin", 14095 Type: []string{"string"}, 14096 Format: "", 14097 }, 14098 }, 14099 }, 14100 Required: []string{"registry", "volume"}, 14101 }, 14102 }, 14103 } 14104 } 14105 14106 func schema_k8sio_api_core_v1_RBDPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 14107 return common.OpenAPIDefinition{ 14108 Schema: spec.Schema{ 14109 SchemaProps: spec.SchemaProps{ 14110 Description: "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.", 14111 Type: []string{"object"}, 14112 Properties: map[string]spec.Schema{ 14113 "monitors": { 14114 SchemaProps: spec.SchemaProps{ 14115 Description: "monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", 14116 Type: []string{"array"}, 14117 Items: &spec.SchemaOrArray{ 14118 Schema: &spec.Schema{ 14119 SchemaProps: spec.SchemaProps{ 14120 Default: "", 14121 Type: []string{"string"}, 14122 Format: "", 14123 }, 14124 }, 14125 }, 14126 }, 14127 }, 14128 "image": { 14129 SchemaProps: spec.SchemaProps{ 14130 Description: "image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", 14131 Default: "", 14132 Type: []string{"string"}, 14133 Format: "", 14134 }, 14135 }, 14136 "fsType": { 14137 SchemaProps: spec.SchemaProps{ 14138 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", 14139 Type: []string{"string"}, 14140 Format: "", 14141 }, 14142 }, 14143 "pool": { 14144 SchemaProps: spec.SchemaProps{ 14145 Description: "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", 14146 Type: []string{"string"}, 14147 Format: "", 14148 }, 14149 }, 14150 "user": { 14151 SchemaProps: spec.SchemaProps{ 14152 Description: "user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", 14153 Type: []string{"string"}, 14154 Format: "", 14155 }, 14156 }, 14157 "keyring": { 14158 SchemaProps: spec.SchemaProps{ 14159 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", 14160 Type: []string{"string"}, 14161 Format: "", 14162 }, 14163 }, 14164 "secretRef": { 14165 SchemaProps: spec.SchemaProps{ 14166 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", 14167 Ref: ref("k8s.io/api/core/v1.SecretReference"), 14168 }, 14169 }, 14170 "readOnly": { 14171 SchemaProps: spec.SchemaProps{ 14172 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", 14173 Type: []string{"boolean"}, 14174 Format: "", 14175 }, 14176 }, 14177 }, 14178 Required: []string{"monitors", "image"}, 14179 }, 14180 }, 14181 Dependencies: []string{ 14182 "k8s.io/api/core/v1.SecretReference"}, 14183 } 14184 } 14185 14186 func schema_k8sio_api_core_v1_RBDVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 14187 return common.OpenAPIDefinition{ 14188 Schema: spec.Schema{ 14189 SchemaProps: spec.SchemaProps{ 14190 Description: "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.", 14191 Type: []string{"object"}, 14192 Properties: map[string]spec.Schema{ 14193 "monitors": { 14194 SchemaProps: spec.SchemaProps{ 14195 Description: "monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", 14196 Type: []string{"array"}, 14197 Items: &spec.SchemaOrArray{ 14198 Schema: &spec.Schema{ 14199 SchemaProps: spec.SchemaProps{ 14200 Default: "", 14201 Type: []string{"string"}, 14202 Format: "", 14203 }, 14204 }, 14205 }, 14206 }, 14207 }, 14208 "image": { 14209 SchemaProps: spec.SchemaProps{ 14210 Description: "image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", 14211 Default: "", 14212 Type: []string{"string"}, 14213 Format: "", 14214 }, 14215 }, 14216 "fsType": { 14217 SchemaProps: spec.SchemaProps{ 14218 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", 14219 Type: []string{"string"}, 14220 Format: "", 14221 }, 14222 }, 14223 "pool": { 14224 SchemaProps: spec.SchemaProps{ 14225 Description: "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", 14226 Type: []string{"string"}, 14227 Format: "", 14228 }, 14229 }, 14230 "user": { 14231 SchemaProps: spec.SchemaProps{ 14232 Description: "user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", 14233 Type: []string{"string"}, 14234 Format: "", 14235 }, 14236 }, 14237 "keyring": { 14238 SchemaProps: spec.SchemaProps{ 14239 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", 14240 Type: []string{"string"}, 14241 Format: "", 14242 }, 14243 }, 14244 "secretRef": { 14245 SchemaProps: spec.SchemaProps{ 14246 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", 14247 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 14248 }, 14249 }, 14250 "readOnly": { 14251 SchemaProps: spec.SchemaProps{ 14252 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", 14253 Type: []string{"boolean"}, 14254 Format: "", 14255 }, 14256 }, 14257 }, 14258 Required: []string{"monitors", "image"}, 14259 }, 14260 }, 14261 Dependencies: []string{ 14262 "k8s.io/api/core/v1.LocalObjectReference"}, 14263 } 14264 } 14265 14266 func schema_k8sio_api_core_v1_RangeAllocation(ref common.ReferenceCallback) common.OpenAPIDefinition { 14267 return common.OpenAPIDefinition{ 14268 Schema: spec.Schema{ 14269 SchemaProps: spec.SchemaProps{ 14270 Description: "RangeAllocation is not a public type.", 14271 Type: []string{"object"}, 14272 Properties: map[string]spec.Schema{ 14273 "kind": { 14274 SchemaProps: spec.SchemaProps{ 14275 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 14276 Type: []string{"string"}, 14277 Format: "", 14278 }, 14279 }, 14280 "apiVersion": { 14281 SchemaProps: spec.SchemaProps{ 14282 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 14283 Type: []string{"string"}, 14284 Format: "", 14285 }, 14286 }, 14287 "metadata": { 14288 SchemaProps: spec.SchemaProps{ 14289 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 14290 Default: map[string]interface{}{}, 14291 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 14292 }, 14293 }, 14294 "range": { 14295 SchemaProps: spec.SchemaProps{ 14296 Description: "Range is string that identifies the range represented by 'data'.", 14297 Default: "", 14298 Type: []string{"string"}, 14299 Format: "", 14300 }, 14301 }, 14302 "data": { 14303 SchemaProps: spec.SchemaProps{ 14304 Description: "Data is a bit array containing all allocated addresses in the previous segment.", 14305 Type: []string{"string"}, 14306 Format: "byte", 14307 }, 14308 }, 14309 }, 14310 Required: []string{"range", "data"}, 14311 }, 14312 }, 14313 Dependencies: []string{ 14314 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 14315 } 14316 } 14317 14318 func schema_k8sio_api_core_v1_ReplicationController(ref common.ReferenceCallback) common.OpenAPIDefinition { 14319 return common.OpenAPIDefinition{ 14320 Schema: spec.Schema{ 14321 SchemaProps: spec.SchemaProps{ 14322 Description: "ReplicationController represents the configuration of a replication controller.", 14323 Type: []string{"object"}, 14324 Properties: map[string]spec.Schema{ 14325 "kind": { 14326 SchemaProps: spec.SchemaProps{ 14327 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 14328 Type: []string{"string"}, 14329 Format: "", 14330 }, 14331 }, 14332 "apiVersion": { 14333 SchemaProps: spec.SchemaProps{ 14334 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 14335 Type: []string{"string"}, 14336 Format: "", 14337 }, 14338 }, 14339 "metadata": { 14340 SchemaProps: spec.SchemaProps{ 14341 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", 14342 Default: map[string]interface{}{}, 14343 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 14344 }, 14345 }, 14346 "spec": { 14347 SchemaProps: spec.SchemaProps{ 14348 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", 14349 Default: map[string]interface{}{}, 14350 Ref: ref("k8s.io/api/core/v1.ReplicationControllerSpec"), 14351 }, 14352 }, 14353 "status": { 14354 SchemaProps: spec.SchemaProps{ 14355 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", 14356 Default: map[string]interface{}{}, 14357 Ref: ref("k8s.io/api/core/v1.ReplicationControllerStatus"), 14358 }, 14359 }, 14360 }, 14361 }, 14362 }, 14363 Dependencies: []string{ 14364 "k8s.io/api/core/v1.ReplicationControllerSpec", "k8s.io/api/core/v1.ReplicationControllerStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 14365 } 14366 } 14367 14368 func schema_k8sio_api_core_v1_ReplicationControllerCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 14369 return common.OpenAPIDefinition{ 14370 Schema: spec.Schema{ 14371 SchemaProps: spec.SchemaProps{ 14372 Description: "ReplicationControllerCondition describes the state of a replication controller at a certain point.", 14373 Type: []string{"object"}, 14374 Properties: map[string]spec.Schema{ 14375 "type": { 14376 SchemaProps: spec.SchemaProps{ 14377 Description: "Type of replication controller condition.", 14378 Default: "", 14379 Type: []string{"string"}, 14380 Format: "", 14381 }, 14382 }, 14383 "status": { 14384 SchemaProps: spec.SchemaProps{ 14385 Description: "Status of the condition, one of True, False, Unknown.", 14386 Default: "", 14387 Type: []string{"string"}, 14388 Format: "", 14389 }, 14390 }, 14391 "lastTransitionTime": { 14392 SchemaProps: spec.SchemaProps{ 14393 Description: "The last time the condition transitioned from one status to another.", 14394 Default: map[string]interface{}{}, 14395 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 14396 }, 14397 }, 14398 "reason": { 14399 SchemaProps: spec.SchemaProps{ 14400 Description: "The reason for the condition's last transition.", 14401 Type: []string{"string"}, 14402 Format: "", 14403 }, 14404 }, 14405 "message": { 14406 SchemaProps: spec.SchemaProps{ 14407 Description: "A human readable message indicating details about the transition.", 14408 Type: []string{"string"}, 14409 Format: "", 14410 }, 14411 }, 14412 }, 14413 Required: []string{"type", "status"}, 14414 }, 14415 }, 14416 Dependencies: []string{ 14417 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 14418 } 14419 } 14420 14421 func schema_k8sio_api_core_v1_ReplicationControllerList(ref common.ReferenceCallback) common.OpenAPIDefinition { 14422 return common.OpenAPIDefinition{ 14423 Schema: spec.Schema{ 14424 SchemaProps: spec.SchemaProps{ 14425 Description: "ReplicationControllerList is a collection of replication controllers.", 14426 Type: []string{"object"}, 14427 Properties: map[string]spec.Schema{ 14428 "kind": { 14429 SchemaProps: spec.SchemaProps{ 14430 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 14431 Type: []string{"string"}, 14432 Format: "", 14433 }, 14434 }, 14435 "apiVersion": { 14436 SchemaProps: spec.SchemaProps{ 14437 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 14438 Type: []string{"string"}, 14439 Format: "", 14440 }, 14441 }, 14442 "metadata": { 14443 SchemaProps: spec.SchemaProps{ 14444 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 14445 Default: map[string]interface{}{}, 14446 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 14447 }, 14448 }, 14449 "items": { 14450 SchemaProps: spec.SchemaProps{ 14451 Description: "List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller", 14452 Type: []string{"array"}, 14453 Items: &spec.SchemaOrArray{ 14454 Schema: &spec.Schema{ 14455 SchemaProps: spec.SchemaProps{ 14456 Default: map[string]interface{}{}, 14457 Ref: ref("k8s.io/api/core/v1.ReplicationController"), 14458 }, 14459 }, 14460 }, 14461 }, 14462 }, 14463 }, 14464 Required: []string{"items"}, 14465 }, 14466 }, 14467 Dependencies: []string{ 14468 "k8s.io/api/core/v1.ReplicationController", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 14469 } 14470 } 14471 14472 func schema_k8sio_api_core_v1_ReplicationControllerSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 14473 return common.OpenAPIDefinition{ 14474 Schema: spec.Schema{ 14475 SchemaProps: spec.SchemaProps{ 14476 Description: "ReplicationControllerSpec is the specification of a replication controller.", 14477 Type: []string{"object"}, 14478 Properties: map[string]spec.Schema{ 14479 "replicas": { 14480 SchemaProps: spec.SchemaProps{ 14481 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", 14482 Type: []string{"integer"}, 14483 Format: "int32", 14484 }, 14485 }, 14486 "minReadySeconds": { 14487 SchemaProps: spec.SchemaProps{ 14488 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)", 14489 Type: []string{"integer"}, 14490 Format: "int32", 14491 }, 14492 }, 14493 "selector": { 14494 VendorExtensible: spec.VendorExtensible{ 14495 Extensions: spec.Extensions{ 14496 "x-kubernetes-map-type": "atomic", 14497 }, 14498 }, 14499 SchemaProps: spec.SchemaProps{ 14500 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", 14501 Type: []string{"object"}, 14502 AdditionalProperties: &spec.SchemaOrBool{ 14503 Allows: true, 14504 Schema: &spec.Schema{ 14505 SchemaProps: spec.SchemaProps{ 14506 Default: "", 14507 Type: []string{"string"}, 14508 Format: "", 14509 }, 14510 }, 14511 }, 14512 }, 14513 }, 14514 "template": { 14515 SchemaProps: spec.SchemaProps{ 14516 Description: "Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. The only allowed template.spec.restartPolicy value is \"Always\". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template", 14517 Ref: ref("k8s.io/api/core/v1.PodTemplateSpec"), 14518 }, 14519 }, 14520 }, 14521 }, 14522 }, 14523 Dependencies: []string{ 14524 "k8s.io/api/core/v1.PodTemplateSpec"}, 14525 } 14526 } 14527 14528 func schema_k8sio_api_core_v1_ReplicationControllerStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 14529 return common.OpenAPIDefinition{ 14530 Schema: spec.Schema{ 14531 SchemaProps: spec.SchemaProps{ 14532 Description: "ReplicationControllerStatus represents the current status of a replication controller.", 14533 Type: []string{"object"}, 14534 Properties: map[string]spec.Schema{ 14535 "replicas": { 14536 SchemaProps: spec.SchemaProps{ 14537 Description: "Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller", 14538 Default: 0, 14539 Type: []string{"integer"}, 14540 Format: "int32", 14541 }, 14542 }, 14543 "fullyLabeledReplicas": { 14544 SchemaProps: spec.SchemaProps{ 14545 Description: "The number of pods that have labels matching the labels of the pod template of the replication controller.", 14546 Type: []string{"integer"}, 14547 Format: "int32", 14548 }, 14549 }, 14550 "readyReplicas": { 14551 SchemaProps: spec.SchemaProps{ 14552 Description: "The number of ready replicas for this replication controller.", 14553 Type: []string{"integer"}, 14554 Format: "int32", 14555 }, 14556 }, 14557 "availableReplicas": { 14558 SchemaProps: spec.SchemaProps{ 14559 Description: "The number of available replicas (ready for at least minReadySeconds) for this replication controller.", 14560 Type: []string{"integer"}, 14561 Format: "int32", 14562 }, 14563 }, 14564 "observedGeneration": { 14565 SchemaProps: spec.SchemaProps{ 14566 Description: "ObservedGeneration reflects the generation of the most recently observed replication controller.", 14567 Type: []string{"integer"}, 14568 Format: "int64", 14569 }, 14570 }, 14571 "conditions": { 14572 VendorExtensible: spec.VendorExtensible{ 14573 Extensions: spec.Extensions{ 14574 "x-kubernetes-patch-merge-key": "type", 14575 "x-kubernetes-patch-strategy": "merge", 14576 }, 14577 }, 14578 SchemaProps: spec.SchemaProps{ 14579 Description: "Represents the latest available observations of a replication controller's current state.", 14580 Type: []string{"array"}, 14581 Items: &spec.SchemaOrArray{ 14582 Schema: &spec.Schema{ 14583 SchemaProps: spec.SchemaProps{ 14584 Default: map[string]interface{}{}, 14585 Ref: ref("k8s.io/api/core/v1.ReplicationControllerCondition"), 14586 }, 14587 }, 14588 }, 14589 }, 14590 }, 14591 }, 14592 Required: []string{"replicas"}, 14593 }, 14594 }, 14595 Dependencies: []string{ 14596 "k8s.io/api/core/v1.ReplicationControllerCondition"}, 14597 } 14598 } 14599 14600 func schema_k8sio_api_core_v1_ResourceClaim(ref common.ReferenceCallback) common.OpenAPIDefinition { 14601 return common.OpenAPIDefinition{ 14602 Schema: spec.Schema{ 14603 SchemaProps: spec.SchemaProps{ 14604 Description: "ResourceClaim references one entry in PodSpec.ResourceClaims.", 14605 Type: []string{"object"}, 14606 Properties: map[string]spec.Schema{ 14607 "name": { 14608 SchemaProps: spec.SchemaProps{ 14609 Description: "Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container.", 14610 Default: "", 14611 Type: []string{"string"}, 14612 Format: "", 14613 }, 14614 }, 14615 }, 14616 Required: []string{"name"}, 14617 }, 14618 }, 14619 } 14620 } 14621 14622 func schema_k8sio_api_core_v1_ResourceFieldSelector(ref common.ReferenceCallback) common.OpenAPIDefinition { 14623 return common.OpenAPIDefinition{ 14624 Schema: spec.Schema{ 14625 SchemaProps: spec.SchemaProps{ 14626 Description: "ResourceFieldSelector represents container resources (cpu, memory) and their output format", 14627 Type: []string{"object"}, 14628 Properties: map[string]spec.Schema{ 14629 "containerName": { 14630 SchemaProps: spec.SchemaProps{ 14631 Description: "Container name: required for volumes, optional for env vars", 14632 Type: []string{"string"}, 14633 Format: "", 14634 }, 14635 }, 14636 "resource": { 14637 SchemaProps: spec.SchemaProps{ 14638 Description: "Required: resource to select", 14639 Default: "", 14640 Type: []string{"string"}, 14641 Format: "", 14642 }, 14643 }, 14644 "divisor": { 14645 SchemaProps: spec.SchemaProps{ 14646 Description: "Specifies the output format of the exposed resources, defaults to \"1\"", 14647 Default: map[string]interface{}{}, 14648 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 14649 }, 14650 }, 14651 }, 14652 Required: []string{"resource"}, 14653 }, 14654 VendorExtensible: spec.VendorExtensible{ 14655 Extensions: spec.Extensions{ 14656 "x-kubernetes-map-type": "atomic", 14657 }, 14658 }, 14659 }, 14660 Dependencies: []string{ 14661 "k8s.io/apimachinery/pkg/api/resource.Quantity"}, 14662 } 14663 } 14664 14665 func schema_k8sio_api_core_v1_ResourceQuota(ref common.ReferenceCallback) common.OpenAPIDefinition { 14666 return common.OpenAPIDefinition{ 14667 Schema: spec.Schema{ 14668 SchemaProps: spec.SchemaProps{ 14669 Description: "ResourceQuota sets aggregate quota restrictions enforced per namespace", 14670 Type: []string{"object"}, 14671 Properties: map[string]spec.Schema{ 14672 "kind": { 14673 SchemaProps: spec.SchemaProps{ 14674 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 14675 Type: []string{"string"}, 14676 Format: "", 14677 }, 14678 }, 14679 "apiVersion": { 14680 SchemaProps: spec.SchemaProps{ 14681 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 14682 Type: []string{"string"}, 14683 Format: "", 14684 }, 14685 }, 14686 "metadata": { 14687 SchemaProps: spec.SchemaProps{ 14688 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 14689 Default: map[string]interface{}{}, 14690 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 14691 }, 14692 }, 14693 "spec": { 14694 SchemaProps: spec.SchemaProps{ 14695 Description: "Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", 14696 Default: map[string]interface{}{}, 14697 Ref: ref("k8s.io/api/core/v1.ResourceQuotaSpec"), 14698 }, 14699 }, 14700 "status": { 14701 SchemaProps: spec.SchemaProps{ 14702 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", 14703 Default: map[string]interface{}{}, 14704 Ref: ref("k8s.io/api/core/v1.ResourceQuotaStatus"), 14705 }, 14706 }, 14707 }, 14708 }, 14709 }, 14710 Dependencies: []string{ 14711 "k8s.io/api/core/v1.ResourceQuotaSpec", "k8s.io/api/core/v1.ResourceQuotaStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 14712 } 14713 } 14714 14715 func schema_k8sio_api_core_v1_ResourceQuotaList(ref common.ReferenceCallback) common.OpenAPIDefinition { 14716 return common.OpenAPIDefinition{ 14717 Schema: spec.Schema{ 14718 SchemaProps: spec.SchemaProps{ 14719 Description: "ResourceQuotaList is a list of ResourceQuota items.", 14720 Type: []string{"object"}, 14721 Properties: map[string]spec.Schema{ 14722 "kind": { 14723 SchemaProps: spec.SchemaProps{ 14724 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 14725 Type: []string{"string"}, 14726 Format: "", 14727 }, 14728 }, 14729 "apiVersion": { 14730 SchemaProps: spec.SchemaProps{ 14731 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 14732 Type: []string{"string"}, 14733 Format: "", 14734 }, 14735 }, 14736 "metadata": { 14737 SchemaProps: spec.SchemaProps{ 14738 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 14739 Default: map[string]interface{}{}, 14740 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 14741 }, 14742 }, 14743 "items": { 14744 SchemaProps: spec.SchemaProps{ 14745 Description: "Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", 14746 Type: []string{"array"}, 14747 Items: &spec.SchemaOrArray{ 14748 Schema: &spec.Schema{ 14749 SchemaProps: spec.SchemaProps{ 14750 Default: map[string]interface{}{}, 14751 Ref: ref("k8s.io/api/core/v1.ResourceQuota"), 14752 }, 14753 }, 14754 }, 14755 }, 14756 }, 14757 }, 14758 Required: []string{"items"}, 14759 }, 14760 }, 14761 Dependencies: []string{ 14762 "k8s.io/api/core/v1.ResourceQuota", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 14763 } 14764 } 14765 14766 func schema_k8sio_api_core_v1_ResourceQuotaSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 14767 return common.OpenAPIDefinition{ 14768 Schema: spec.Schema{ 14769 SchemaProps: spec.SchemaProps{ 14770 Description: "ResourceQuotaSpec defines the desired hard limits to enforce for Quota.", 14771 Type: []string{"object"}, 14772 Properties: map[string]spec.Schema{ 14773 "hard": { 14774 SchemaProps: spec.SchemaProps{ 14775 Description: "hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", 14776 Type: []string{"object"}, 14777 AdditionalProperties: &spec.SchemaOrBool{ 14778 Allows: true, 14779 Schema: &spec.Schema{ 14780 SchemaProps: spec.SchemaProps{ 14781 Default: map[string]interface{}{}, 14782 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 14783 }, 14784 }, 14785 }, 14786 }, 14787 }, 14788 "scopes": { 14789 SchemaProps: spec.SchemaProps{ 14790 Description: "A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.", 14791 Type: []string{"array"}, 14792 Items: &spec.SchemaOrArray{ 14793 Schema: &spec.Schema{ 14794 SchemaProps: spec.SchemaProps{ 14795 Default: "", 14796 Type: []string{"string"}, 14797 Format: "", 14798 }, 14799 }, 14800 }, 14801 }, 14802 }, 14803 "scopeSelector": { 14804 SchemaProps: spec.SchemaProps{ 14805 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.", 14806 Ref: ref("k8s.io/api/core/v1.ScopeSelector"), 14807 }, 14808 }, 14809 }, 14810 }, 14811 }, 14812 Dependencies: []string{ 14813 "k8s.io/api/core/v1.ScopeSelector", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, 14814 } 14815 } 14816 14817 func schema_k8sio_api_core_v1_ResourceQuotaStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 14818 return common.OpenAPIDefinition{ 14819 Schema: spec.Schema{ 14820 SchemaProps: spec.SchemaProps{ 14821 Description: "ResourceQuotaStatus defines the enforced hard limits and observed use.", 14822 Type: []string{"object"}, 14823 Properties: map[string]spec.Schema{ 14824 "hard": { 14825 SchemaProps: spec.SchemaProps{ 14826 Description: "Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", 14827 Type: []string{"object"}, 14828 AdditionalProperties: &spec.SchemaOrBool{ 14829 Allows: true, 14830 Schema: &spec.Schema{ 14831 SchemaProps: spec.SchemaProps{ 14832 Default: map[string]interface{}{}, 14833 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 14834 }, 14835 }, 14836 }, 14837 }, 14838 }, 14839 "used": { 14840 SchemaProps: spec.SchemaProps{ 14841 Description: "Used is the current observed total usage of the resource in the namespace.", 14842 Type: []string{"object"}, 14843 AdditionalProperties: &spec.SchemaOrBool{ 14844 Allows: true, 14845 Schema: &spec.Schema{ 14846 SchemaProps: spec.SchemaProps{ 14847 Default: map[string]interface{}{}, 14848 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 14849 }, 14850 }, 14851 }, 14852 }, 14853 }, 14854 }, 14855 }, 14856 }, 14857 Dependencies: []string{ 14858 "k8s.io/apimachinery/pkg/api/resource.Quantity"}, 14859 } 14860 } 14861 14862 func schema_k8sio_api_core_v1_ResourceRequirements(ref common.ReferenceCallback) common.OpenAPIDefinition { 14863 return common.OpenAPIDefinition{ 14864 Schema: spec.Schema{ 14865 SchemaProps: spec.SchemaProps{ 14866 Description: "ResourceRequirements describes the compute resource requirements.", 14867 Type: []string{"object"}, 14868 Properties: map[string]spec.Schema{ 14869 "limits": { 14870 SchemaProps: spec.SchemaProps{ 14871 Description: "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", 14872 Type: []string{"object"}, 14873 AdditionalProperties: &spec.SchemaOrBool{ 14874 Allows: true, 14875 Schema: &spec.Schema{ 14876 SchemaProps: spec.SchemaProps{ 14877 Default: map[string]interface{}{}, 14878 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 14879 }, 14880 }, 14881 }, 14882 }, 14883 }, 14884 "requests": { 14885 SchemaProps: spec.SchemaProps{ 14886 Description: "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", 14887 Type: []string{"object"}, 14888 AdditionalProperties: &spec.SchemaOrBool{ 14889 Allows: true, 14890 Schema: &spec.Schema{ 14891 SchemaProps: spec.SchemaProps{ 14892 Default: map[string]interface{}{}, 14893 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 14894 }, 14895 }, 14896 }, 14897 }, 14898 }, 14899 "claims": { 14900 VendorExtensible: spec.VendorExtensible{ 14901 Extensions: spec.Extensions{ 14902 "x-kubernetes-list-map-keys": []interface{}{ 14903 "name", 14904 }, 14905 "x-kubernetes-list-type": "map", 14906 }, 14907 }, 14908 SchemaProps: spec.SchemaProps{ 14909 Description: "Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.\n\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\n\nThis field is immutable. It can only be set for containers.", 14910 Type: []string{"array"}, 14911 Items: &spec.SchemaOrArray{ 14912 Schema: &spec.Schema{ 14913 SchemaProps: spec.SchemaProps{ 14914 Default: map[string]interface{}{}, 14915 Ref: ref("k8s.io/api/core/v1.ResourceClaim"), 14916 }, 14917 }, 14918 }, 14919 }, 14920 }, 14921 }, 14922 }, 14923 }, 14924 Dependencies: []string{ 14925 "k8s.io/api/core/v1.ResourceClaim", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, 14926 } 14927 } 14928 14929 func schema_k8sio_api_core_v1_SELinuxOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 14930 return common.OpenAPIDefinition{ 14931 Schema: spec.Schema{ 14932 SchemaProps: spec.SchemaProps{ 14933 Description: "SELinuxOptions are the labels to be applied to the container", 14934 Type: []string{"object"}, 14935 Properties: map[string]spec.Schema{ 14936 "user": { 14937 SchemaProps: spec.SchemaProps{ 14938 Description: "User is a SELinux user label that applies to the container.", 14939 Type: []string{"string"}, 14940 Format: "", 14941 }, 14942 }, 14943 "role": { 14944 SchemaProps: spec.SchemaProps{ 14945 Description: "Role is a SELinux role label that applies to the container.", 14946 Type: []string{"string"}, 14947 Format: "", 14948 }, 14949 }, 14950 "type": { 14951 SchemaProps: spec.SchemaProps{ 14952 Description: "Type is a SELinux type label that applies to the container.", 14953 Type: []string{"string"}, 14954 Format: "", 14955 }, 14956 }, 14957 "level": { 14958 SchemaProps: spec.SchemaProps{ 14959 Description: "Level is SELinux level label that applies to the container.", 14960 Type: []string{"string"}, 14961 Format: "", 14962 }, 14963 }, 14964 }, 14965 }, 14966 }, 14967 } 14968 } 14969 14970 func schema_k8sio_api_core_v1_ScaleIOPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 14971 return common.OpenAPIDefinition{ 14972 Schema: spec.Schema{ 14973 SchemaProps: spec.SchemaProps{ 14974 Description: "ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume", 14975 Type: []string{"object"}, 14976 Properties: map[string]spec.Schema{ 14977 "gateway": { 14978 SchemaProps: spec.SchemaProps{ 14979 Description: "gateway is the host address of the ScaleIO API Gateway.", 14980 Default: "", 14981 Type: []string{"string"}, 14982 Format: "", 14983 }, 14984 }, 14985 "system": { 14986 SchemaProps: spec.SchemaProps{ 14987 Description: "system is the name of the storage system as configured in ScaleIO.", 14988 Default: "", 14989 Type: []string{"string"}, 14990 Format: "", 14991 }, 14992 }, 14993 "secretRef": { 14994 SchemaProps: spec.SchemaProps{ 14995 Description: "secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail.", 14996 Ref: ref("k8s.io/api/core/v1.SecretReference"), 14997 }, 14998 }, 14999 "sslEnabled": { 15000 SchemaProps: spec.SchemaProps{ 15001 Description: "sslEnabled is the flag to enable/disable SSL communication with Gateway, default false", 15002 Type: []string{"boolean"}, 15003 Format: "", 15004 }, 15005 }, 15006 "protectionDomain": { 15007 SchemaProps: spec.SchemaProps{ 15008 Description: "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.", 15009 Type: []string{"string"}, 15010 Format: "", 15011 }, 15012 }, 15013 "storagePool": { 15014 SchemaProps: spec.SchemaProps{ 15015 Description: "storagePool is the ScaleIO Storage Pool associated with the protection domain.", 15016 Type: []string{"string"}, 15017 Format: "", 15018 }, 15019 }, 15020 "storageMode": { 15021 SchemaProps: spec.SchemaProps{ 15022 Description: "storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.", 15023 Type: []string{"string"}, 15024 Format: "", 15025 }, 15026 }, 15027 "volumeName": { 15028 SchemaProps: spec.SchemaProps{ 15029 Description: "volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.", 15030 Type: []string{"string"}, 15031 Format: "", 15032 }, 15033 }, 15034 "fsType": { 15035 SchemaProps: spec.SchemaProps{ 15036 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\"", 15037 Type: []string{"string"}, 15038 Format: "", 15039 }, 15040 }, 15041 "readOnly": { 15042 SchemaProps: spec.SchemaProps{ 15043 Description: "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 15044 Type: []string{"boolean"}, 15045 Format: "", 15046 }, 15047 }, 15048 }, 15049 Required: []string{"gateway", "system", "secretRef"}, 15050 }, 15051 }, 15052 Dependencies: []string{ 15053 "k8s.io/api/core/v1.SecretReference"}, 15054 } 15055 } 15056 15057 func schema_k8sio_api_core_v1_ScaleIOVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 15058 return common.OpenAPIDefinition{ 15059 Schema: spec.Schema{ 15060 SchemaProps: spec.SchemaProps{ 15061 Description: "ScaleIOVolumeSource represents a persistent ScaleIO volume", 15062 Type: []string{"object"}, 15063 Properties: map[string]spec.Schema{ 15064 "gateway": { 15065 SchemaProps: spec.SchemaProps{ 15066 Description: "gateway is the host address of the ScaleIO API Gateway.", 15067 Default: "", 15068 Type: []string{"string"}, 15069 Format: "", 15070 }, 15071 }, 15072 "system": { 15073 SchemaProps: spec.SchemaProps{ 15074 Description: "system is the name of the storage system as configured in ScaleIO.", 15075 Default: "", 15076 Type: []string{"string"}, 15077 Format: "", 15078 }, 15079 }, 15080 "secretRef": { 15081 SchemaProps: spec.SchemaProps{ 15082 Description: "secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail.", 15083 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 15084 }, 15085 }, 15086 "sslEnabled": { 15087 SchemaProps: spec.SchemaProps{ 15088 Description: "sslEnabled Flag enable/disable SSL communication with Gateway, default false", 15089 Type: []string{"boolean"}, 15090 Format: "", 15091 }, 15092 }, 15093 "protectionDomain": { 15094 SchemaProps: spec.SchemaProps{ 15095 Description: "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.", 15096 Type: []string{"string"}, 15097 Format: "", 15098 }, 15099 }, 15100 "storagePool": { 15101 SchemaProps: spec.SchemaProps{ 15102 Description: "storagePool is the ScaleIO Storage Pool associated with the protection domain.", 15103 Type: []string{"string"}, 15104 Format: "", 15105 }, 15106 }, 15107 "storageMode": { 15108 SchemaProps: spec.SchemaProps{ 15109 Description: "storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.", 15110 Type: []string{"string"}, 15111 Format: "", 15112 }, 15113 }, 15114 "volumeName": { 15115 SchemaProps: spec.SchemaProps{ 15116 Description: "volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.", 15117 Type: []string{"string"}, 15118 Format: "", 15119 }, 15120 }, 15121 "fsType": { 15122 SchemaProps: spec.SchemaProps{ 15123 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\".", 15124 Type: []string{"string"}, 15125 Format: "", 15126 }, 15127 }, 15128 "readOnly": { 15129 SchemaProps: spec.SchemaProps{ 15130 Description: "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 15131 Type: []string{"boolean"}, 15132 Format: "", 15133 }, 15134 }, 15135 }, 15136 Required: []string{"gateway", "system", "secretRef"}, 15137 }, 15138 }, 15139 Dependencies: []string{ 15140 "k8s.io/api/core/v1.LocalObjectReference"}, 15141 } 15142 } 15143 15144 func schema_k8sio_api_core_v1_ScopeSelector(ref common.ReferenceCallback) common.OpenAPIDefinition { 15145 return common.OpenAPIDefinition{ 15146 Schema: spec.Schema{ 15147 SchemaProps: spec.SchemaProps{ 15148 Description: "A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements.", 15149 Type: []string{"object"}, 15150 Properties: map[string]spec.Schema{ 15151 "matchExpressions": { 15152 SchemaProps: spec.SchemaProps{ 15153 Description: "A list of scope selector requirements by scope of the resources.", 15154 Type: []string{"array"}, 15155 Items: &spec.SchemaOrArray{ 15156 Schema: &spec.Schema{ 15157 SchemaProps: spec.SchemaProps{ 15158 Default: map[string]interface{}{}, 15159 Ref: ref("k8s.io/api/core/v1.ScopedResourceSelectorRequirement"), 15160 }, 15161 }, 15162 }, 15163 }, 15164 }, 15165 }, 15166 }, 15167 VendorExtensible: spec.VendorExtensible{ 15168 Extensions: spec.Extensions{ 15169 "x-kubernetes-map-type": "atomic", 15170 }, 15171 }, 15172 }, 15173 Dependencies: []string{ 15174 "k8s.io/api/core/v1.ScopedResourceSelectorRequirement"}, 15175 } 15176 } 15177 15178 func schema_k8sio_api_core_v1_ScopedResourceSelectorRequirement(ref common.ReferenceCallback) common.OpenAPIDefinition { 15179 return common.OpenAPIDefinition{ 15180 Schema: spec.Schema{ 15181 SchemaProps: spec.SchemaProps{ 15182 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.", 15183 Type: []string{"object"}, 15184 Properties: map[string]spec.Schema{ 15185 "scopeName": { 15186 SchemaProps: spec.SchemaProps{ 15187 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", 15188 Default: "", 15189 Type: []string{"string"}, 15190 Format: "", 15191 Enum: []interface{}{"BestEffort", "CrossNamespacePodAffinity", "NotBestEffort", "NotTerminating", "PriorityClass", "Terminating"}, 15192 }, 15193 }, 15194 "operator": { 15195 SchemaProps: spec.SchemaProps{ 15196 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\"`", 15197 Default: "", 15198 Type: []string{"string"}, 15199 Format: "", 15200 Enum: []interface{}{"DoesNotExist", "Exists", "In", "NotIn"}, 15201 }, 15202 }, 15203 "values": { 15204 SchemaProps: spec.SchemaProps{ 15205 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.", 15206 Type: []string{"array"}, 15207 Items: &spec.SchemaOrArray{ 15208 Schema: &spec.Schema{ 15209 SchemaProps: spec.SchemaProps{ 15210 Default: "", 15211 Type: []string{"string"}, 15212 Format: "", 15213 }, 15214 }, 15215 }, 15216 }, 15217 }, 15218 }, 15219 Required: []string{"scopeName", "operator"}, 15220 }, 15221 }, 15222 } 15223 } 15224 15225 func schema_k8sio_api_core_v1_SeccompProfile(ref common.ReferenceCallback) common.OpenAPIDefinition { 15226 return common.OpenAPIDefinition{ 15227 Schema: spec.Schema{ 15228 SchemaProps: spec.SchemaProps{ 15229 Description: "SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.", 15230 Type: []string{"object"}, 15231 Properties: map[string]spec.Schema{ 15232 "type": { 15233 SchemaProps: spec.SchemaProps{ 15234 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).", 15235 Default: "", 15236 Type: []string{"string"}, 15237 Format: "", 15238 Enum: []interface{}{"Localhost", "RuntimeDefault", "Unconfined"}, 15239 }, 15240 }, 15241 "localhostProfile": { 15242 SchemaProps: spec.SchemaProps{ 15243 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\".", 15244 Type: []string{"string"}, 15245 Format: "", 15246 }, 15247 }, 15248 }, 15249 Required: []string{"type"}, 15250 }, 15251 VendorExtensible: spec.VendorExtensible{ 15252 Extensions: spec.Extensions{ 15253 "x-kubernetes-unions": []interface{}{ 15254 map[string]interface{}{ 15255 "discriminator": "type", 15256 "fields-to-discriminateBy": map[string]interface{}{ 15257 "localhostProfile": "LocalhostProfile", 15258 }, 15259 }, 15260 }, 15261 }, 15262 }, 15263 }, 15264 } 15265 } 15266 15267 func schema_k8sio_api_core_v1_Secret(ref common.ReferenceCallback) common.OpenAPIDefinition { 15268 return common.OpenAPIDefinition{ 15269 Schema: spec.Schema{ 15270 SchemaProps: spec.SchemaProps{ 15271 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.", 15272 Type: []string{"object"}, 15273 Properties: map[string]spec.Schema{ 15274 "kind": { 15275 SchemaProps: spec.SchemaProps{ 15276 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 15277 Type: []string{"string"}, 15278 Format: "", 15279 }, 15280 }, 15281 "apiVersion": { 15282 SchemaProps: spec.SchemaProps{ 15283 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 15284 Type: []string{"string"}, 15285 Format: "", 15286 }, 15287 }, 15288 "metadata": { 15289 SchemaProps: spec.SchemaProps{ 15290 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 15291 Default: map[string]interface{}{}, 15292 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 15293 }, 15294 }, 15295 "immutable": { 15296 SchemaProps: spec.SchemaProps{ 15297 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.", 15298 Type: []string{"boolean"}, 15299 Format: "", 15300 }, 15301 }, 15302 "data": { 15303 SchemaProps: spec.SchemaProps{ 15304 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", 15305 Type: []string{"object"}, 15306 AdditionalProperties: &spec.SchemaOrBool{ 15307 Allows: true, 15308 Schema: &spec.Schema{ 15309 SchemaProps: spec.SchemaProps{ 15310 Type: []string{"string"}, 15311 Format: "byte", 15312 }, 15313 }, 15314 }, 15315 }, 15316 }, 15317 "stringData": { 15318 SchemaProps: spec.SchemaProps{ 15319 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.", 15320 Type: []string{"object"}, 15321 AdditionalProperties: &spec.SchemaOrBool{ 15322 Allows: true, 15323 Schema: &spec.Schema{ 15324 SchemaProps: spec.SchemaProps{ 15325 Default: "", 15326 Type: []string{"string"}, 15327 Format: "", 15328 }, 15329 }, 15330 }, 15331 }, 15332 }, 15333 "type": { 15334 SchemaProps: spec.SchemaProps{ 15335 Description: "Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types", 15336 Type: []string{"string"}, 15337 Format: "", 15338 }, 15339 }, 15340 }, 15341 }, 15342 }, 15343 Dependencies: []string{ 15344 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 15345 } 15346 } 15347 15348 func schema_k8sio_api_core_v1_SecretEnvSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 15349 return common.OpenAPIDefinition{ 15350 Schema: spec.Schema{ 15351 SchemaProps: spec.SchemaProps{ 15352 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.", 15353 Type: []string{"object"}, 15354 Properties: map[string]spec.Schema{ 15355 "name": { 15356 SchemaProps: spec.SchemaProps{ 15357 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", 15358 Type: []string{"string"}, 15359 Format: "", 15360 }, 15361 }, 15362 "optional": { 15363 SchemaProps: spec.SchemaProps{ 15364 Description: "Specify whether the Secret must be defined", 15365 Type: []string{"boolean"}, 15366 Format: "", 15367 }, 15368 }, 15369 }, 15370 }, 15371 }, 15372 } 15373 } 15374 15375 func schema_k8sio_api_core_v1_SecretKeySelector(ref common.ReferenceCallback) common.OpenAPIDefinition { 15376 return common.OpenAPIDefinition{ 15377 Schema: spec.Schema{ 15378 SchemaProps: spec.SchemaProps{ 15379 Description: "SecretKeySelector selects a key of a Secret.", 15380 Type: []string{"object"}, 15381 Properties: map[string]spec.Schema{ 15382 "name": { 15383 SchemaProps: spec.SchemaProps{ 15384 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", 15385 Type: []string{"string"}, 15386 Format: "", 15387 }, 15388 }, 15389 "key": { 15390 SchemaProps: spec.SchemaProps{ 15391 Description: "The key of the secret to select from. Must be a valid secret key.", 15392 Default: "", 15393 Type: []string{"string"}, 15394 Format: "", 15395 }, 15396 }, 15397 "optional": { 15398 SchemaProps: spec.SchemaProps{ 15399 Description: "Specify whether the Secret or its key must be defined", 15400 Type: []string{"boolean"}, 15401 Format: "", 15402 }, 15403 }, 15404 }, 15405 Required: []string{"key"}, 15406 }, 15407 VendorExtensible: spec.VendorExtensible{ 15408 Extensions: spec.Extensions{ 15409 "x-kubernetes-map-type": "atomic", 15410 }, 15411 }, 15412 }, 15413 } 15414 } 15415 15416 func schema_k8sio_api_core_v1_SecretList(ref common.ReferenceCallback) common.OpenAPIDefinition { 15417 return common.OpenAPIDefinition{ 15418 Schema: spec.Schema{ 15419 SchemaProps: spec.SchemaProps{ 15420 Description: "SecretList is a list of Secret.", 15421 Type: []string{"object"}, 15422 Properties: map[string]spec.Schema{ 15423 "kind": { 15424 SchemaProps: spec.SchemaProps{ 15425 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 15426 Type: []string{"string"}, 15427 Format: "", 15428 }, 15429 }, 15430 "apiVersion": { 15431 SchemaProps: spec.SchemaProps{ 15432 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 15433 Type: []string{"string"}, 15434 Format: "", 15435 }, 15436 }, 15437 "metadata": { 15438 SchemaProps: spec.SchemaProps{ 15439 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 15440 Default: map[string]interface{}{}, 15441 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 15442 }, 15443 }, 15444 "items": { 15445 SchemaProps: spec.SchemaProps{ 15446 Description: "Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret", 15447 Type: []string{"array"}, 15448 Items: &spec.SchemaOrArray{ 15449 Schema: &spec.Schema{ 15450 SchemaProps: spec.SchemaProps{ 15451 Default: map[string]interface{}{}, 15452 Ref: ref("k8s.io/api/core/v1.Secret"), 15453 }, 15454 }, 15455 }, 15456 }, 15457 }, 15458 }, 15459 Required: []string{"items"}, 15460 }, 15461 }, 15462 Dependencies: []string{ 15463 "k8s.io/api/core/v1.Secret", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 15464 } 15465 } 15466 15467 func schema_k8sio_api_core_v1_SecretProjection(ref common.ReferenceCallback) common.OpenAPIDefinition { 15468 return common.OpenAPIDefinition{ 15469 Schema: spec.Schema{ 15470 SchemaProps: spec.SchemaProps{ 15471 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.", 15472 Type: []string{"object"}, 15473 Properties: map[string]spec.Schema{ 15474 "name": { 15475 SchemaProps: spec.SchemaProps{ 15476 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", 15477 Type: []string{"string"}, 15478 Format: "", 15479 }, 15480 }, 15481 "items": { 15482 SchemaProps: spec.SchemaProps{ 15483 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 '..'.", 15484 Type: []string{"array"}, 15485 Items: &spec.SchemaOrArray{ 15486 Schema: &spec.Schema{ 15487 SchemaProps: spec.SchemaProps{ 15488 Default: map[string]interface{}{}, 15489 Ref: ref("k8s.io/api/core/v1.KeyToPath"), 15490 }, 15491 }, 15492 }, 15493 }, 15494 }, 15495 "optional": { 15496 SchemaProps: spec.SchemaProps{ 15497 Description: "optional field specify whether the Secret or its key must be defined", 15498 Type: []string{"boolean"}, 15499 Format: "", 15500 }, 15501 }, 15502 }, 15503 }, 15504 }, 15505 Dependencies: []string{ 15506 "k8s.io/api/core/v1.KeyToPath"}, 15507 } 15508 } 15509 15510 func schema_k8sio_api_core_v1_SecretReference(ref common.ReferenceCallback) common.OpenAPIDefinition { 15511 return common.OpenAPIDefinition{ 15512 Schema: spec.Schema{ 15513 SchemaProps: spec.SchemaProps{ 15514 Description: "SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace", 15515 Type: []string{"object"}, 15516 Properties: map[string]spec.Schema{ 15517 "name": { 15518 SchemaProps: spec.SchemaProps{ 15519 Description: "name is unique within a namespace to reference a secret resource.", 15520 Type: []string{"string"}, 15521 Format: "", 15522 }, 15523 }, 15524 "namespace": { 15525 SchemaProps: spec.SchemaProps{ 15526 Description: "namespace defines the space within which the secret name must be unique.", 15527 Type: []string{"string"}, 15528 Format: "", 15529 }, 15530 }, 15531 }, 15532 }, 15533 VendorExtensible: spec.VendorExtensible{ 15534 Extensions: spec.Extensions{ 15535 "x-kubernetes-map-type": "atomic", 15536 }, 15537 }, 15538 }, 15539 } 15540 } 15541 15542 func schema_k8sio_api_core_v1_SecretVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 15543 return common.OpenAPIDefinition{ 15544 Schema: spec.Schema{ 15545 SchemaProps: spec.SchemaProps{ 15546 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.", 15547 Type: []string{"object"}, 15548 Properties: map[string]spec.Schema{ 15549 "secretName": { 15550 SchemaProps: spec.SchemaProps{ 15551 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", 15552 Type: []string{"string"}, 15553 Format: "", 15554 }, 15555 }, 15556 "items": { 15557 SchemaProps: spec.SchemaProps{ 15558 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 '..'.", 15559 Type: []string{"array"}, 15560 Items: &spec.SchemaOrArray{ 15561 Schema: &spec.Schema{ 15562 SchemaProps: spec.SchemaProps{ 15563 Default: map[string]interface{}{}, 15564 Ref: ref("k8s.io/api/core/v1.KeyToPath"), 15565 }, 15566 }, 15567 }, 15568 }, 15569 }, 15570 "defaultMode": { 15571 SchemaProps: spec.SchemaProps{ 15572 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.", 15573 Type: []string{"integer"}, 15574 Format: "int32", 15575 }, 15576 }, 15577 "optional": { 15578 SchemaProps: spec.SchemaProps{ 15579 Description: "optional field specify whether the Secret or its keys must be defined", 15580 Type: []string{"boolean"}, 15581 Format: "", 15582 }, 15583 }, 15584 }, 15585 }, 15586 }, 15587 Dependencies: []string{ 15588 "k8s.io/api/core/v1.KeyToPath"}, 15589 } 15590 } 15591 15592 func schema_k8sio_api_core_v1_SecurityContext(ref common.ReferenceCallback) common.OpenAPIDefinition { 15593 return common.OpenAPIDefinition{ 15594 Schema: spec.Schema{ 15595 SchemaProps: spec.SchemaProps{ 15596 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.", 15597 Type: []string{"object"}, 15598 Properties: map[string]spec.Schema{ 15599 "capabilities": { 15600 SchemaProps: spec.SchemaProps{ 15601 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.", 15602 Ref: ref("k8s.io/api/core/v1.Capabilities"), 15603 }, 15604 }, 15605 "privileged": { 15606 SchemaProps: spec.SchemaProps{ 15607 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.", 15608 Type: []string{"boolean"}, 15609 Format: "", 15610 }, 15611 }, 15612 "seLinuxOptions": { 15613 SchemaProps: spec.SchemaProps{ 15614 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.", 15615 Ref: ref("k8s.io/api/core/v1.SELinuxOptions"), 15616 }, 15617 }, 15618 "windowsOptions": { 15619 SchemaProps: spec.SchemaProps{ 15620 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.", 15621 Ref: ref("k8s.io/api/core/v1.WindowsSecurityContextOptions"), 15622 }, 15623 }, 15624 "runAsUser": { 15625 SchemaProps: spec.SchemaProps{ 15626 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.", 15627 Type: []string{"integer"}, 15628 Format: "int64", 15629 }, 15630 }, 15631 "runAsGroup": { 15632 SchemaProps: spec.SchemaProps{ 15633 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.", 15634 Type: []string{"integer"}, 15635 Format: "int64", 15636 }, 15637 }, 15638 "runAsNonRoot": { 15639 SchemaProps: spec.SchemaProps{ 15640 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.", 15641 Type: []string{"boolean"}, 15642 Format: "", 15643 }, 15644 }, 15645 "readOnlyRootFilesystem": { 15646 SchemaProps: spec.SchemaProps{ 15647 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.", 15648 Type: []string{"boolean"}, 15649 Format: "", 15650 }, 15651 }, 15652 "allowPrivilegeEscalation": { 15653 SchemaProps: spec.SchemaProps{ 15654 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.", 15655 Type: []string{"boolean"}, 15656 Format: "", 15657 }, 15658 }, 15659 "procMount": { 15660 SchemaProps: spec.SchemaProps{ 15661 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.\n\nPossible enum values:\n - `\"Default\"` uses the container runtime defaults for readonly and masked paths for /proc. Most container runtimes mask certain paths in /proc to avoid accidental security exposure of special devices or information.\n - `\"Unmasked\"` bypasses the default masking behavior of the container runtime and ensures the newly created /proc the container stays in tact with no modifications.", 15662 Type: []string{"string"}, 15663 Format: "", 15664 Enum: []interface{}{"Default", "Unmasked"}, 15665 }, 15666 }, 15667 "seccompProfile": { 15668 SchemaProps: spec.SchemaProps{ 15669 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.", 15670 Ref: ref("k8s.io/api/core/v1.SeccompProfile"), 15671 }, 15672 }, 15673 }, 15674 }, 15675 }, 15676 Dependencies: []string{ 15677 "k8s.io/api/core/v1.Capabilities", "k8s.io/api/core/v1.SELinuxOptions", "k8s.io/api/core/v1.SeccompProfile", "k8s.io/api/core/v1.WindowsSecurityContextOptions"}, 15678 } 15679 } 15680 15681 func schema_k8sio_api_core_v1_SerializedReference(ref common.ReferenceCallback) common.OpenAPIDefinition { 15682 return common.OpenAPIDefinition{ 15683 Schema: spec.Schema{ 15684 SchemaProps: spec.SchemaProps{ 15685 Description: "SerializedReference is a reference to serialized object.", 15686 Type: []string{"object"}, 15687 Properties: map[string]spec.Schema{ 15688 "kind": { 15689 SchemaProps: spec.SchemaProps{ 15690 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 15691 Type: []string{"string"}, 15692 Format: "", 15693 }, 15694 }, 15695 "apiVersion": { 15696 SchemaProps: spec.SchemaProps{ 15697 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 15698 Type: []string{"string"}, 15699 Format: "", 15700 }, 15701 }, 15702 "reference": { 15703 SchemaProps: spec.SchemaProps{ 15704 Description: "The reference to an object in the system.", 15705 Default: map[string]interface{}{}, 15706 Ref: ref("k8s.io/api/core/v1.ObjectReference"), 15707 }, 15708 }, 15709 }, 15710 }, 15711 }, 15712 Dependencies: []string{ 15713 "k8s.io/api/core/v1.ObjectReference"}, 15714 } 15715 } 15716 15717 func schema_k8sio_api_core_v1_Service(ref common.ReferenceCallback) common.OpenAPIDefinition { 15718 return common.OpenAPIDefinition{ 15719 Schema: spec.Schema{ 15720 SchemaProps: spec.SchemaProps{ 15721 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.", 15722 Type: []string{"object"}, 15723 Properties: map[string]spec.Schema{ 15724 "kind": { 15725 SchemaProps: spec.SchemaProps{ 15726 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 15727 Type: []string{"string"}, 15728 Format: "", 15729 }, 15730 }, 15731 "apiVersion": { 15732 SchemaProps: spec.SchemaProps{ 15733 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 15734 Type: []string{"string"}, 15735 Format: "", 15736 }, 15737 }, 15738 "metadata": { 15739 SchemaProps: spec.SchemaProps{ 15740 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 15741 Default: map[string]interface{}{}, 15742 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 15743 }, 15744 }, 15745 "spec": { 15746 SchemaProps: spec.SchemaProps{ 15747 Description: "Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", 15748 Default: map[string]interface{}{}, 15749 Ref: ref("k8s.io/api/core/v1.ServiceSpec"), 15750 }, 15751 }, 15752 "status": { 15753 SchemaProps: spec.SchemaProps{ 15754 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", 15755 Default: map[string]interface{}{}, 15756 Ref: ref("k8s.io/api/core/v1.ServiceStatus"), 15757 }, 15758 }, 15759 }, 15760 }, 15761 }, 15762 Dependencies: []string{ 15763 "k8s.io/api/core/v1.ServiceSpec", "k8s.io/api/core/v1.ServiceStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 15764 } 15765 } 15766 15767 func schema_k8sio_api_core_v1_ServiceAccount(ref common.ReferenceCallback) common.OpenAPIDefinition { 15768 return common.OpenAPIDefinition{ 15769 Schema: spec.Schema{ 15770 SchemaProps: spec.SchemaProps{ 15771 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", 15772 Type: []string{"object"}, 15773 Properties: map[string]spec.Schema{ 15774 "kind": { 15775 SchemaProps: spec.SchemaProps{ 15776 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 15777 Type: []string{"string"}, 15778 Format: "", 15779 }, 15780 }, 15781 "apiVersion": { 15782 SchemaProps: spec.SchemaProps{ 15783 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 15784 Type: []string{"string"}, 15785 Format: "", 15786 }, 15787 }, 15788 "metadata": { 15789 SchemaProps: spec.SchemaProps{ 15790 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 15791 Default: map[string]interface{}{}, 15792 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 15793 }, 15794 }, 15795 "secrets": { 15796 VendorExtensible: spec.VendorExtensible{ 15797 Extensions: spec.Extensions{ 15798 "x-kubernetes-patch-merge-key": "name", 15799 "x-kubernetes-patch-strategy": "merge", 15800 }, 15801 }, 15802 SchemaProps: spec.SchemaProps{ 15803 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", 15804 Type: []string{"array"}, 15805 Items: &spec.SchemaOrArray{ 15806 Schema: &spec.Schema{ 15807 SchemaProps: spec.SchemaProps{ 15808 Default: map[string]interface{}{}, 15809 Ref: ref("k8s.io/api/core/v1.ObjectReference"), 15810 }, 15811 }, 15812 }, 15813 }, 15814 }, 15815 "imagePullSecrets": { 15816 SchemaProps: spec.SchemaProps{ 15817 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", 15818 Type: []string{"array"}, 15819 Items: &spec.SchemaOrArray{ 15820 Schema: &spec.Schema{ 15821 SchemaProps: spec.SchemaProps{ 15822 Default: map[string]interface{}{}, 15823 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 15824 }, 15825 }, 15826 }, 15827 }, 15828 }, 15829 "automountServiceAccountToken": { 15830 SchemaProps: spec.SchemaProps{ 15831 Description: "AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level.", 15832 Type: []string{"boolean"}, 15833 Format: "", 15834 }, 15835 }, 15836 }, 15837 }, 15838 }, 15839 Dependencies: []string{ 15840 "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/api/core/v1.ObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 15841 } 15842 } 15843 15844 func schema_k8sio_api_core_v1_ServiceAccountList(ref common.ReferenceCallback) common.OpenAPIDefinition { 15845 return common.OpenAPIDefinition{ 15846 Schema: spec.Schema{ 15847 SchemaProps: spec.SchemaProps{ 15848 Description: "ServiceAccountList is a list of ServiceAccount objects", 15849 Type: []string{"object"}, 15850 Properties: map[string]spec.Schema{ 15851 "kind": { 15852 SchemaProps: spec.SchemaProps{ 15853 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 15854 Type: []string{"string"}, 15855 Format: "", 15856 }, 15857 }, 15858 "apiVersion": { 15859 SchemaProps: spec.SchemaProps{ 15860 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 15861 Type: []string{"string"}, 15862 Format: "", 15863 }, 15864 }, 15865 "metadata": { 15866 SchemaProps: spec.SchemaProps{ 15867 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 15868 Default: map[string]interface{}{}, 15869 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 15870 }, 15871 }, 15872 "items": { 15873 SchemaProps: spec.SchemaProps{ 15874 Description: "List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/", 15875 Type: []string{"array"}, 15876 Items: &spec.SchemaOrArray{ 15877 Schema: &spec.Schema{ 15878 SchemaProps: spec.SchemaProps{ 15879 Default: map[string]interface{}{}, 15880 Ref: ref("k8s.io/api/core/v1.ServiceAccount"), 15881 }, 15882 }, 15883 }, 15884 }, 15885 }, 15886 }, 15887 Required: []string{"items"}, 15888 }, 15889 }, 15890 Dependencies: []string{ 15891 "k8s.io/api/core/v1.ServiceAccount", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 15892 } 15893 } 15894 15895 func schema_k8sio_api_core_v1_ServiceAccountTokenProjection(ref common.ReferenceCallback) common.OpenAPIDefinition { 15896 return common.OpenAPIDefinition{ 15897 Schema: spec.Schema{ 15898 SchemaProps: spec.SchemaProps{ 15899 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).", 15900 Type: []string{"object"}, 15901 Properties: map[string]spec.Schema{ 15902 "audience": { 15903 SchemaProps: spec.SchemaProps{ 15904 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.", 15905 Type: []string{"string"}, 15906 Format: "", 15907 }, 15908 }, 15909 "expirationSeconds": { 15910 SchemaProps: spec.SchemaProps{ 15911 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.", 15912 Type: []string{"integer"}, 15913 Format: "int64", 15914 }, 15915 }, 15916 "path": { 15917 SchemaProps: spec.SchemaProps{ 15918 Description: "path is the path relative to the mount point of the file to project the token into.", 15919 Default: "", 15920 Type: []string{"string"}, 15921 Format: "", 15922 }, 15923 }, 15924 }, 15925 Required: []string{"path"}, 15926 }, 15927 }, 15928 } 15929 } 15930 15931 func schema_k8sio_api_core_v1_ServiceList(ref common.ReferenceCallback) common.OpenAPIDefinition { 15932 return common.OpenAPIDefinition{ 15933 Schema: spec.Schema{ 15934 SchemaProps: spec.SchemaProps{ 15935 Description: "ServiceList holds a list of services.", 15936 Type: []string{"object"}, 15937 Properties: map[string]spec.Schema{ 15938 "kind": { 15939 SchemaProps: spec.SchemaProps{ 15940 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 15941 Type: []string{"string"}, 15942 Format: "", 15943 }, 15944 }, 15945 "apiVersion": { 15946 SchemaProps: spec.SchemaProps{ 15947 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 15948 Type: []string{"string"}, 15949 Format: "", 15950 }, 15951 }, 15952 "metadata": { 15953 SchemaProps: spec.SchemaProps{ 15954 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 15955 Default: map[string]interface{}{}, 15956 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 15957 }, 15958 }, 15959 "items": { 15960 SchemaProps: spec.SchemaProps{ 15961 Description: "List of services", 15962 Type: []string{"array"}, 15963 Items: &spec.SchemaOrArray{ 15964 Schema: &spec.Schema{ 15965 SchemaProps: spec.SchemaProps{ 15966 Default: map[string]interface{}{}, 15967 Ref: ref("k8s.io/api/core/v1.Service"), 15968 }, 15969 }, 15970 }, 15971 }, 15972 }, 15973 }, 15974 Required: []string{"items"}, 15975 }, 15976 }, 15977 Dependencies: []string{ 15978 "k8s.io/api/core/v1.Service", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 15979 } 15980 } 15981 15982 func schema_k8sio_api_core_v1_ServicePort(ref common.ReferenceCallback) common.OpenAPIDefinition { 15983 return common.OpenAPIDefinition{ 15984 Schema: spec.Schema{ 15985 SchemaProps: spec.SchemaProps{ 15986 Description: "ServicePort contains information on service's port.", 15987 Type: []string{"object"}, 15988 Properties: map[string]spec.Schema{ 15989 "name": { 15990 SchemaProps: spec.SchemaProps{ 15991 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.", 15992 Type: []string{"string"}, 15993 Format: "", 15994 }, 15995 }, 15996 "protocol": { 15997 SchemaProps: spec.SchemaProps{ 15998 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.", 15999 Default: "TCP", 16000 Type: []string{"string"}, 16001 Format: "", 16002 Enum: []interface{}{"SCTP", "TCP", "UDP"}, 16003 }, 16004 }, 16005 "appProtocol": { 16006 SchemaProps: spec.SchemaProps{ 16007 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.", 16008 Type: []string{"string"}, 16009 Format: "", 16010 }, 16011 }, 16012 "port": { 16013 SchemaProps: spec.SchemaProps{ 16014 Description: "The port that will be exposed by this service.", 16015 Default: 0, 16016 Type: []string{"integer"}, 16017 Format: "int32", 16018 }, 16019 }, 16020 "targetPort": { 16021 SchemaProps: spec.SchemaProps{ 16022 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", 16023 Default: map[string]interface{}{}, 16024 Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), 16025 }, 16026 }, 16027 "nodePort": { 16028 SchemaProps: spec.SchemaProps{ 16029 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", 16030 Type: []string{"integer"}, 16031 Format: "int32", 16032 }, 16033 }, 16034 }, 16035 Required: []string{"port"}, 16036 }, 16037 }, 16038 Dependencies: []string{ 16039 "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, 16040 } 16041 } 16042 16043 func schema_k8sio_api_core_v1_ServiceProxyOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 16044 return common.OpenAPIDefinition{ 16045 Schema: spec.Schema{ 16046 SchemaProps: spec.SchemaProps{ 16047 Description: "ServiceProxyOptions is the query options to a Service's proxy call.", 16048 Type: []string{"object"}, 16049 Properties: map[string]spec.Schema{ 16050 "kind": { 16051 SchemaProps: spec.SchemaProps{ 16052 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 16053 Type: []string{"string"}, 16054 Format: "", 16055 }, 16056 }, 16057 "apiVersion": { 16058 SchemaProps: spec.SchemaProps{ 16059 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 16060 Type: []string{"string"}, 16061 Format: "", 16062 }, 16063 }, 16064 "path": { 16065 SchemaProps: spec.SchemaProps{ 16066 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.", 16067 Type: []string{"string"}, 16068 Format: "", 16069 }, 16070 }, 16071 }, 16072 }, 16073 }, 16074 } 16075 } 16076 16077 func schema_k8sio_api_core_v1_ServiceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 16078 return common.OpenAPIDefinition{ 16079 Schema: spec.Schema{ 16080 SchemaProps: spec.SchemaProps{ 16081 Description: "ServiceSpec describes the attributes that a user creates on a service.", 16082 Type: []string{"object"}, 16083 Properties: map[string]spec.Schema{ 16084 "ports": { 16085 VendorExtensible: spec.VendorExtensible{ 16086 Extensions: spec.Extensions{ 16087 "x-kubernetes-list-map-keys": []interface{}{ 16088 "port", 16089 "protocol", 16090 }, 16091 "x-kubernetes-list-type": "map", 16092 "x-kubernetes-patch-merge-key": "port", 16093 "x-kubernetes-patch-strategy": "merge", 16094 }, 16095 }, 16096 SchemaProps: spec.SchemaProps{ 16097 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", 16098 Type: []string{"array"}, 16099 Items: &spec.SchemaOrArray{ 16100 Schema: &spec.Schema{ 16101 SchemaProps: spec.SchemaProps{ 16102 Default: map[string]interface{}{}, 16103 Ref: ref("k8s.io/api/core/v1.ServicePort"), 16104 }, 16105 }, 16106 }, 16107 }, 16108 }, 16109 "selector": { 16110 VendorExtensible: spec.VendorExtensible{ 16111 Extensions: spec.Extensions{ 16112 "x-kubernetes-map-type": "atomic", 16113 }, 16114 }, 16115 SchemaProps: spec.SchemaProps{ 16116 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/", 16117 Type: []string{"object"}, 16118 AdditionalProperties: &spec.SchemaOrBool{ 16119 Allows: true, 16120 Schema: &spec.Schema{ 16121 SchemaProps: spec.SchemaProps{ 16122 Default: "", 16123 Type: []string{"string"}, 16124 Format: "", 16125 }, 16126 }, 16127 }, 16128 }, 16129 }, 16130 "clusterIP": { 16131 SchemaProps: spec.SchemaProps{ 16132 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", 16133 Type: []string{"string"}, 16134 Format: "", 16135 }, 16136 }, 16137 "clusterIPs": { 16138 VendorExtensible: spec.VendorExtensible{ 16139 Extensions: spec.Extensions{ 16140 "x-kubernetes-list-type": "atomic", 16141 }, 16142 }, 16143 SchemaProps: spec.SchemaProps{ 16144 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", 16145 Type: []string{"array"}, 16146 Items: &spec.SchemaOrArray{ 16147 Schema: &spec.Schema{ 16148 SchemaProps: spec.SchemaProps{ 16149 Default: "", 16150 Type: []string{"string"}, 16151 Format: "", 16152 }, 16153 }, 16154 }, 16155 }, 16156 }, 16157 "type": { 16158 SchemaProps: spec.SchemaProps{ 16159 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.", 16160 Type: []string{"string"}, 16161 Format: "", 16162 Enum: []interface{}{"ClusterIP", "ExternalName", "LoadBalancer", "NodePort"}, 16163 }, 16164 }, 16165 "externalIPs": { 16166 SchemaProps: spec.SchemaProps{ 16167 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.", 16168 Type: []string{"array"}, 16169 Items: &spec.SchemaOrArray{ 16170 Schema: &spec.Schema{ 16171 SchemaProps: spec.SchemaProps{ 16172 Default: "", 16173 Type: []string{"string"}, 16174 Format: "", 16175 }, 16176 }, 16177 }, 16178 }, 16179 }, 16180 "sessionAffinity": { 16181 SchemaProps: spec.SchemaProps{ 16182 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.", 16183 Type: []string{"string"}, 16184 Format: "", 16185 Enum: []interface{}{"ClientIP", "None"}, 16186 }, 16187 }, 16188 "loadBalancerIP": { 16189 SchemaProps: spec.SchemaProps{ 16190 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.", 16191 Type: []string{"string"}, 16192 Format: "", 16193 }, 16194 }, 16195 "loadBalancerSourceRanges": { 16196 SchemaProps: spec.SchemaProps{ 16197 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/", 16198 Type: []string{"array"}, 16199 Items: &spec.SchemaOrArray{ 16200 Schema: &spec.Schema{ 16201 SchemaProps: spec.SchemaProps{ 16202 Default: "", 16203 Type: []string{"string"}, 16204 Format: "", 16205 }, 16206 }, 16207 }, 16208 }, 16209 }, 16210 "externalName": { 16211 SchemaProps: spec.SchemaProps{ 16212 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\".", 16213 Type: []string{"string"}, 16214 Format: "", 16215 }, 16216 }, 16217 "externalTrafficPolicy": { 16218 SchemaProps: spec.SchemaProps{ 16219 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\"`\n - `\"Cluster\"` routes traffic to all endpoints.\n - `\"Local\"`\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).", 16220 Type: []string{"string"}, 16221 Format: "", 16222 Enum: []interface{}{"Cluster", "Cluster", "Local", "Local"}, 16223 }, 16224 }, 16225 "healthCheckNodePort": { 16226 SchemaProps: spec.SchemaProps{ 16227 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.", 16228 Type: []string{"integer"}, 16229 Format: "int32", 16230 }, 16231 }, 16232 "publishNotReadyAddresses": { 16233 SchemaProps: spec.SchemaProps{ 16234 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.", 16235 Type: []string{"boolean"}, 16236 Format: "", 16237 }, 16238 }, 16239 "sessionAffinityConfig": { 16240 SchemaProps: spec.SchemaProps{ 16241 Description: "sessionAffinityConfig contains the configurations of session affinity.", 16242 Ref: ref("k8s.io/api/core/v1.SessionAffinityConfig"), 16243 }, 16244 }, 16245 "ipFamilies": { 16246 VendorExtensible: spec.VendorExtensible{ 16247 Extensions: spec.Extensions{ 16248 "x-kubernetes-list-type": "atomic", 16249 }, 16250 }, 16251 SchemaProps: spec.SchemaProps{ 16252 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.", 16253 Type: []string{"array"}, 16254 Items: &spec.SchemaOrArray{ 16255 Schema: &spec.Schema{ 16256 SchemaProps: spec.SchemaProps{ 16257 Default: "", 16258 Type: []string{"string"}, 16259 Format: "", 16260 }, 16261 }, 16262 }, 16263 }, 16264 }, 16265 "ipFamilyPolicy": { 16266 SchemaProps: spec.SchemaProps{ 16267 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.\n\nPossible enum values:\n - `\"PreferDualStack\"` indicates that this service prefers dual-stack when the cluster is configured for dual-stack. If the cluster is not configured for dual-stack the service will be assigned a single IPFamily. If the IPFamily is not set in service.spec.ipFamilies then the service will be assigned the default IPFamily configured on the cluster\n - `\"RequireDualStack\"` indicates that this service requires dual-stack. Using IPFamilyPolicyRequireDualStack on a single stack cluster will result in validation errors. The IPFamilies (and their order) assigned to this service is based on service.spec.ipFamilies. If service.spec.ipFamilies was not provided then it will be assigned according to how they are configured on the cluster. If service.spec.ipFamilies has only one entry then the alternative IPFamily will be added by apiserver\n - `\"SingleStack\"` indicates that this service is required to have a single IPFamily. The IPFamily assigned is based on the default IPFamily used by the cluster or as identified by service.spec.ipFamilies field", 16268 Type: []string{"string"}, 16269 Format: "", 16270 Enum: []interface{}{"PreferDualStack", "RequireDualStack", "SingleStack"}, 16271 }, 16272 }, 16273 "allocateLoadBalancerNodePorts": { 16274 SchemaProps: spec.SchemaProps{ 16275 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.", 16276 Type: []string{"boolean"}, 16277 Format: "", 16278 }, 16279 }, 16280 "loadBalancerClass": { 16281 SchemaProps: spec.SchemaProps{ 16282 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.", 16283 Type: []string{"string"}, 16284 Format: "", 16285 }, 16286 }, 16287 "internalTrafficPolicy": { 16288 SchemaProps: spec.SchemaProps{ 16289 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).\n\nPossible enum values:\n - `\"Cluster\"` routes traffic to all endpoints.\n - `\"Local\"` routes traffic only to endpoints on the same node as the client pod (dropping the traffic if there are no local endpoints).", 16290 Type: []string{"string"}, 16291 Format: "", 16292 Enum: []interface{}{"Cluster", "Local"}, 16293 }, 16294 }, 16295 }, 16296 }, 16297 }, 16298 Dependencies: []string{ 16299 "k8s.io/api/core/v1.ServicePort", "k8s.io/api/core/v1.SessionAffinityConfig"}, 16300 } 16301 } 16302 16303 func schema_k8sio_api_core_v1_ServiceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 16304 return common.OpenAPIDefinition{ 16305 Schema: spec.Schema{ 16306 SchemaProps: spec.SchemaProps{ 16307 Description: "ServiceStatus represents the current status of a service.", 16308 Type: []string{"object"}, 16309 Properties: map[string]spec.Schema{ 16310 "loadBalancer": { 16311 SchemaProps: spec.SchemaProps{ 16312 Description: "LoadBalancer contains the current status of the load-balancer, if one is present.", 16313 Default: map[string]interface{}{}, 16314 Ref: ref("k8s.io/api/core/v1.LoadBalancerStatus"), 16315 }, 16316 }, 16317 "conditions": { 16318 VendorExtensible: spec.VendorExtensible{ 16319 Extensions: spec.Extensions{ 16320 "x-kubernetes-list-map-keys": []interface{}{ 16321 "type", 16322 }, 16323 "x-kubernetes-list-type": "map", 16324 "x-kubernetes-patch-merge-key": "type", 16325 "x-kubernetes-patch-strategy": "merge", 16326 }, 16327 }, 16328 SchemaProps: spec.SchemaProps{ 16329 Description: "Current service state", 16330 Type: []string{"array"}, 16331 Items: &spec.SchemaOrArray{ 16332 Schema: &spec.Schema{ 16333 SchemaProps: spec.SchemaProps{ 16334 Default: map[string]interface{}{}, 16335 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Condition"), 16336 }, 16337 }, 16338 }, 16339 }, 16340 }, 16341 }, 16342 }, 16343 }, 16344 Dependencies: []string{ 16345 "k8s.io/api/core/v1.LoadBalancerStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.Condition"}, 16346 } 16347 } 16348 16349 func schema_k8sio_api_core_v1_SessionAffinityConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 16350 return common.OpenAPIDefinition{ 16351 Schema: spec.Schema{ 16352 SchemaProps: spec.SchemaProps{ 16353 Description: "SessionAffinityConfig represents the configurations of session affinity.", 16354 Type: []string{"object"}, 16355 Properties: map[string]spec.Schema{ 16356 "clientIP": { 16357 SchemaProps: spec.SchemaProps{ 16358 Description: "clientIP contains the configurations of Client IP based session affinity.", 16359 Ref: ref("k8s.io/api/core/v1.ClientIPConfig"), 16360 }, 16361 }, 16362 }, 16363 }, 16364 }, 16365 Dependencies: []string{ 16366 "k8s.io/api/core/v1.ClientIPConfig"}, 16367 } 16368 } 16369 16370 func schema_k8sio_api_core_v1_StorageOSPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 16371 return common.OpenAPIDefinition{ 16372 Schema: spec.Schema{ 16373 SchemaProps: spec.SchemaProps{ 16374 Description: "Represents a StorageOS persistent volume resource.", 16375 Type: []string{"object"}, 16376 Properties: map[string]spec.Schema{ 16377 "volumeName": { 16378 SchemaProps: spec.SchemaProps{ 16379 Description: "volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.", 16380 Type: []string{"string"}, 16381 Format: "", 16382 }, 16383 }, 16384 "volumeNamespace": { 16385 SchemaProps: spec.SchemaProps{ 16386 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.", 16387 Type: []string{"string"}, 16388 Format: "", 16389 }, 16390 }, 16391 "fsType": { 16392 SchemaProps: spec.SchemaProps{ 16393 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.", 16394 Type: []string{"string"}, 16395 Format: "", 16396 }, 16397 }, 16398 "readOnly": { 16399 SchemaProps: spec.SchemaProps{ 16400 Description: "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 16401 Type: []string{"boolean"}, 16402 Format: "", 16403 }, 16404 }, 16405 "secretRef": { 16406 SchemaProps: spec.SchemaProps{ 16407 Description: "secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.", 16408 Ref: ref("k8s.io/api/core/v1.ObjectReference"), 16409 }, 16410 }, 16411 }, 16412 }, 16413 }, 16414 Dependencies: []string{ 16415 "k8s.io/api/core/v1.ObjectReference"}, 16416 } 16417 } 16418 16419 func schema_k8sio_api_core_v1_StorageOSVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 16420 return common.OpenAPIDefinition{ 16421 Schema: spec.Schema{ 16422 SchemaProps: spec.SchemaProps{ 16423 Description: "Represents a StorageOS persistent volume resource.", 16424 Type: []string{"object"}, 16425 Properties: map[string]spec.Schema{ 16426 "volumeName": { 16427 SchemaProps: spec.SchemaProps{ 16428 Description: "volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.", 16429 Type: []string{"string"}, 16430 Format: "", 16431 }, 16432 }, 16433 "volumeNamespace": { 16434 SchemaProps: spec.SchemaProps{ 16435 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.", 16436 Type: []string{"string"}, 16437 Format: "", 16438 }, 16439 }, 16440 "fsType": { 16441 SchemaProps: spec.SchemaProps{ 16442 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.", 16443 Type: []string{"string"}, 16444 Format: "", 16445 }, 16446 }, 16447 "readOnly": { 16448 SchemaProps: spec.SchemaProps{ 16449 Description: "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 16450 Type: []string{"boolean"}, 16451 Format: "", 16452 }, 16453 }, 16454 "secretRef": { 16455 SchemaProps: spec.SchemaProps{ 16456 Description: "secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.", 16457 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 16458 }, 16459 }, 16460 }, 16461 }, 16462 }, 16463 Dependencies: []string{ 16464 "k8s.io/api/core/v1.LocalObjectReference"}, 16465 } 16466 } 16467 16468 func schema_k8sio_api_core_v1_Sysctl(ref common.ReferenceCallback) common.OpenAPIDefinition { 16469 return common.OpenAPIDefinition{ 16470 Schema: spec.Schema{ 16471 SchemaProps: spec.SchemaProps{ 16472 Description: "Sysctl defines a kernel parameter to be set", 16473 Type: []string{"object"}, 16474 Properties: map[string]spec.Schema{ 16475 "name": { 16476 SchemaProps: spec.SchemaProps{ 16477 Description: "Name of a property to set", 16478 Default: "", 16479 Type: []string{"string"}, 16480 Format: "", 16481 }, 16482 }, 16483 "value": { 16484 SchemaProps: spec.SchemaProps{ 16485 Description: "Value of a property to set", 16486 Default: "", 16487 Type: []string{"string"}, 16488 Format: "", 16489 }, 16490 }, 16491 }, 16492 Required: []string{"name", "value"}, 16493 }, 16494 }, 16495 } 16496 } 16497 16498 func schema_k8sio_api_core_v1_TCPSocketAction(ref common.ReferenceCallback) common.OpenAPIDefinition { 16499 return common.OpenAPIDefinition{ 16500 Schema: spec.Schema{ 16501 SchemaProps: spec.SchemaProps{ 16502 Description: "TCPSocketAction describes an action based on opening a socket", 16503 Type: []string{"object"}, 16504 Properties: map[string]spec.Schema{ 16505 "port": { 16506 SchemaProps: spec.SchemaProps{ 16507 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.", 16508 Default: map[string]interface{}{}, 16509 Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), 16510 }, 16511 }, 16512 "host": { 16513 SchemaProps: spec.SchemaProps{ 16514 Description: "Optional: Host name to connect to, defaults to the pod IP.", 16515 Type: []string{"string"}, 16516 Format: "", 16517 }, 16518 }, 16519 }, 16520 Required: []string{"port"}, 16521 }, 16522 }, 16523 Dependencies: []string{ 16524 "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, 16525 } 16526 } 16527 16528 func schema_k8sio_api_core_v1_Taint(ref common.ReferenceCallback) common.OpenAPIDefinition { 16529 return common.OpenAPIDefinition{ 16530 Schema: spec.Schema{ 16531 SchemaProps: spec.SchemaProps{ 16532 Description: "The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint.", 16533 Type: []string{"object"}, 16534 Properties: map[string]spec.Schema{ 16535 "key": { 16536 SchemaProps: spec.SchemaProps{ 16537 Description: "Required. The taint key to be applied to a node.", 16538 Default: "", 16539 Type: []string{"string"}, 16540 Format: "", 16541 }, 16542 }, 16543 "value": { 16544 SchemaProps: spec.SchemaProps{ 16545 Description: "The taint value corresponding to the taint key.", 16546 Type: []string{"string"}, 16547 Format: "", 16548 }, 16549 }, 16550 "effect": { 16551 SchemaProps: spec.SchemaProps{ 16552 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.", 16553 Default: "", 16554 Type: []string{"string"}, 16555 Format: "", 16556 Enum: []interface{}{"NoExecute", "NoSchedule", "PreferNoSchedule"}, 16557 }, 16558 }, 16559 "timeAdded": { 16560 SchemaProps: spec.SchemaProps{ 16561 Description: "TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.", 16562 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 16563 }, 16564 }, 16565 }, 16566 Required: []string{"key", "effect"}, 16567 }, 16568 }, 16569 Dependencies: []string{ 16570 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 16571 } 16572 } 16573 16574 func schema_k8sio_api_core_v1_Toleration(ref common.ReferenceCallback) common.OpenAPIDefinition { 16575 return common.OpenAPIDefinition{ 16576 Schema: spec.Schema{ 16577 SchemaProps: spec.SchemaProps{ 16578 Description: "The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>.", 16579 Type: []string{"object"}, 16580 Properties: map[string]spec.Schema{ 16581 "key": { 16582 SchemaProps: spec.SchemaProps{ 16583 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.", 16584 Type: []string{"string"}, 16585 Format: "", 16586 }, 16587 }, 16588 "operator": { 16589 SchemaProps: spec.SchemaProps{ 16590 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\"`", 16591 Type: []string{"string"}, 16592 Format: "", 16593 Enum: []interface{}{"Equal", "Exists"}, 16594 }, 16595 }, 16596 "value": { 16597 SchemaProps: spec.SchemaProps{ 16598 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.", 16599 Type: []string{"string"}, 16600 Format: "", 16601 }, 16602 }, 16603 "effect": { 16604 SchemaProps: spec.SchemaProps{ 16605 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.", 16606 Type: []string{"string"}, 16607 Format: "", 16608 Enum: []interface{}{"NoExecute", "NoSchedule", "PreferNoSchedule"}, 16609 }, 16610 }, 16611 "tolerationSeconds": { 16612 SchemaProps: spec.SchemaProps{ 16613 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.", 16614 Type: []string{"integer"}, 16615 Format: "int64", 16616 }, 16617 }, 16618 }, 16619 }, 16620 }, 16621 } 16622 } 16623 16624 func schema_k8sio_api_core_v1_TopologySelectorLabelRequirement(ref common.ReferenceCallback) common.OpenAPIDefinition { 16625 return common.OpenAPIDefinition{ 16626 Schema: spec.Schema{ 16627 SchemaProps: spec.SchemaProps{ 16628 Description: "A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future.", 16629 Type: []string{"object"}, 16630 Properties: map[string]spec.Schema{ 16631 "key": { 16632 SchemaProps: spec.SchemaProps{ 16633 Description: "The label key that the selector applies to.", 16634 Default: "", 16635 Type: []string{"string"}, 16636 Format: "", 16637 }, 16638 }, 16639 "values": { 16640 SchemaProps: spec.SchemaProps{ 16641 Description: "An array of string values. One value must match the label to be selected. Each entry in Values is ORed.", 16642 Type: []string{"array"}, 16643 Items: &spec.SchemaOrArray{ 16644 Schema: &spec.Schema{ 16645 SchemaProps: spec.SchemaProps{ 16646 Default: "", 16647 Type: []string{"string"}, 16648 Format: "", 16649 }, 16650 }, 16651 }, 16652 }, 16653 }, 16654 }, 16655 Required: []string{"key", "values"}, 16656 }, 16657 }, 16658 } 16659 } 16660 16661 func schema_k8sio_api_core_v1_TopologySelectorTerm(ref common.ReferenceCallback) common.OpenAPIDefinition { 16662 return common.OpenAPIDefinition{ 16663 Schema: spec.Schema{ 16664 SchemaProps: spec.SchemaProps{ 16665 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.", 16666 Type: []string{"object"}, 16667 Properties: map[string]spec.Schema{ 16668 "matchLabelExpressions": { 16669 SchemaProps: spec.SchemaProps{ 16670 Description: "A list of topology selector requirements by labels.", 16671 Type: []string{"array"}, 16672 Items: &spec.SchemaOrArray{ 16673 Schema: &spec.Schema{ 16674 SchemaProps: spec.SchemaProps{ 16675 Default: map[string]interface{}{}, 16676 Ref: ref("k8s.io/api/core/v1.TopologySelectorLabelRequirement"), 16677 }, 16678 }, 16679 }, 16680 }, 16681 }, 16682 }, 16683 }, 16684 VendorExtensible: spec.VendorExtensible{ 16685 Extensions: spec.Extensions{ 16686 "x-kubernetes-map-type": "atomic", 16687 }, 16688 }, 16689 }, 16690 Dependencies: []string{ 16691 "k8s.io/api/core/v1.TopologySelectorLabelRequirement"}, 16692 } 16693 } 16694 16695 func schema_k8sio_api_core_v1_TopologySpreadConstraint(ref common.ReferenceCallback) common.OpenAPIDefinition { 16696 return common.OpenAPIDefinition{ 16697 Schema: spec.Schema{ 16698 SchemaProps: spec.SchemaProps{ 16699 Description: "TopologySpreadConstraint specifies how to spread matching pods among the given topology.", 16700 Type: []string{"object"}, 16701 Properties: map[string]spec.Schema{ 16702 "maxSkew": { 16703 SchemaProps: spec.SchemaProps{ 16704 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.", 16705 Default: 0, 16706 Type: []string{"integer"}, 16707 Format: "int32", 16708 }, 16709 }, 16710 "topologyKey": { 16711 SchemaProps: spec.SchemaProps{ 16712 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.", 16713 Default: "", 16714 Type: []string{"string"}, 16715 Format: "", 16716 }, 16717 }, 16718 "whenUnsatisfiable": { 16719 SchemaProps: spec.SchemaProps{ 16720 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.", 16721 Default: "", 16722 Type: []string{"string"}, 16723 Format: "", 16724 Enum: []interface{}{"DoNotSchedule", "ScheduleAnyway"}, 16725 }, 16726 }, 16727 "labelSelector": { 16728 SchemaProps: spec.SchemaProps{ 16729 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.", 16730 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), 16731 }, 16732 }, 16733 "minDomains": { 16734 SchemaProps: spec.SchemaProps{ 16735 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).", 16736 Type: []string{"integer"}, 16737 Format: "int32", 16738 }, 16739 }, 16740 "nodeAffinityPolicy": { 16741 SchemaProps: spec.SchemaProps{ 16742 Description: "NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.\n\nIf this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.\n\nPossible enum values:\n - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew.\n - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew.", 16743 Type: []string{"string"}, 16744 Format: "", 16745 Enum: []interface{}{"Honor", "Ignore"}, 16746 }, 16747 }, 16748 "nodeTaintsPolicy": { 16749 SchemaProps: spec.SchemaProps{ 16750 Description: "NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included.\n\nIf this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.\n\nPossible enum values:\n - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew.\n - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew.", 16751 Type: []string{"string"}, 16752 Format: "", 16753 Enum: []interface{}{"Honor", "Ignore"}, 16754 }, 16755 }, 16756 "matchLabelKeys": { 16757 VendorExtensible: spec.VendorExtensible{ 16758 Extensions: spec.Extensions{ 16759 "x-kubernetes-list-type": "atomic", 16760 }, 16761 }, 16762 SchemaProps: spec.SchemaProps{ 16763 Description: "MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector.\n\nThis is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).", 16764 Type: []string{"array"}, 16765 Items: &spec.SchemaOrArray{ 16766 Schema: &spec.Schema{ 16767 SchemaProps: spec.SchemaProps{ 16768 Default: "", 16769 Type: []string{"string"}, 16770 Format: "", 16771 }, 16772 }, 16773 }, 16774 }, 16775 }, 16776 }, 16777 Required: []string{"maxSkew", "topologyKey", "whenUnsatisfiable"}, 16778 }, 16779 }, 16780 Dependencies: []string{ 16781 "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, 16782 } 16783 } 16784 16785 func schema_k8sio_api_core_v1_TypedLocalObjectReference(ref common.ReferenceCallback) common.OpenAPIDefinition { 16786 return common.OpenAPIDefinition{ 16787 Schema: spec.Schema{ 16788 SchemaProps: spec.SchemaProps{ 16789 Description: "TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.", 16790 Type: []string{"object"}, 16791 Properties: map[string]spec.Schema{ 16792 "apiGroup": { 16793 SchemaProps: spec.SchemaProps{ 16794 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.", 16795 Type: []string{"string"}, 16796 Format: "", 16797 }, 16798 }, 16799 "kind": { 16800 SchemaProps: spec.SchemaProps{ 16801 Description: "Kind is the type of resource being referenced", 16802 Default: "", 16803 Type: []string{"string"}, 16804 Format: "", 16805 }, 16806 }, 16807 "name": { 16808 SchemaProps: spec.SchemaProps{ 16809 Description: "Name is the name of resource being referenced", 16810 Default: "", 16811 Type: []string{"string"}, 16812 Format: "", 16813 }, 16814 }, 16815 }, 16816 Required: []string{"kind", "name"}, 16817 }, 16818 VendorExtensible: spec.VendorExtensible{ 16819 Extensions: spec.Extensions{ 16820 "x-kubernetes-map-type": "atomic", 16821 }, 16822 }, 16823 }, 16824 } 16825 } 16826 16827 func schema_k8sio_api_core_v1_TypedObjectReference(ref common.ReferenceCallback) common.OpenAPIDefinition { 16828 return common.OpenAPIDefinition{ 16829 Schema: spec.Schema{ 16830 SchemaProps: spec.SchemaProps{ 16831 Type: []string{"object"}, 16832 Properties: map[string]spec.Schema{ 16833 "apiGroup": { 16834 SchemaProps: spec.SchemaProps{ 16835 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.", 16836 Type: []string{"string"}, 16837 Format: "", 16838 }, 16839 }, 16840 "kind": { 16841 SchemaProps: spec.SchemaProps{ 16842 Description: "Kind is the type of resource being referenced", 16843 Default: "", 16844 Type: []string{"string"}, 16845 Format: "", 16846 }, 16847 }, 16848 "name": { 16849 SchemaProps: spec.SchemaProps{ 16850 Description: "Name is the name of resource being referenced", 16851 Default: "", 16852 Type: []string{"string"}, 16853 Format: "", 16854 }, 16855 }, 16856 "namespace": { 16857 SchemaProps: spec.SchemaProps{ 16858 Description: "Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", 16859 Type: []string{"string"}, 16860 Format: "", 16861 }, 16862 }, 16863 }, 16864 Required: []string{"kind", "name"}, 16865 }, 16866 }, 16867 } 16868 } 16869 16870 func schema_k8sio_api_core_v1_Volume(ref common.ReferenceCallback) common.OpenAPIDefinition { 16871 return common.OpenAPIDefinition{ 16872 Schema: spec.Schema{ 16873 SchemaProps: spec.SchemaProps{ 16874 Description: "Volume represents a named volume in a pod that may be accessed by any container in the pod.", 16875 Type: []string{"object"}, 16876 Properties: map[string]spec.Schema{ 16877 "name": { 16878 SchemaProps: spec.SchemaProps{ 16879 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", 16880 Default: "", 16881 Type: []string{"string"}, 16882 Format: "", 16883 }, 16884 }, 16885 "hostPath": { 16886 SchemaProps: spec.SchemaProps{ 16887 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", 16888 Ref: ref("k8s.io/api/core/v1.HostPathVolumeSource"), 16889 }, 16890 }, 16891 "emptyDir": { 16892 SchemaProps: spec.SchemaProps{ 16893 Description: "emptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", 16894 Ref: ref("k8s.io/api/core/v1.EmptyDirVolumeSource"), 16895 }, 16896 }, 16897 "gcePersistentDisk": { 16898 SchemaProps: spec.SchemaProps{ 16899 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", 16900 Ref: ref("k8s.io/api/core/v1.GCEPersistentDiskVolumeSource"), 16901 }, 16902 }, 16903 "awsElasticBlockStore": { 16904 SchemaProps: spec.SchemaProps{ 16905 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", 16906 Ref: ref("k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource"), 16907 }, 16908 }, 16909 "gitRepo": { 16910 SchemaProps: spec.SchemaProps{ 16911 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.", 16912 Ref: ref("k8s.io/api/core/v1.GitRepoVolumeSource"), 16913 }, 16914 }, 16915 "secret": { 16916 SchemaProps: spec.SchemaProps{ 16917 Description: "secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret", 16918 Ref: ref("k8s.io/api/core/v1.SecretVolumeSource"), 16919 }, 16920 }, 16921 "nfs": { 16922 SchemaProps: spec.SchemaProps{ 16923 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", 16924 Ref: ref("k8s.io/api/core/v1.NFSVolumeSource"), 16925 }, 16926 }, 16927 "iscsi": { 16928 SchemaProps: spec.SchemaProps{ 16929 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", 16930 Ref: ref("k8s.io/api/core/v1.ISCSIVolumeSource"), 16931 }, 16932 }, 16933 "glusterfs": { 16934 SchemaProps: spec.SchemaProps{ 16935 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", 16936 Ref: ref("k8s.io/api/core/v1.GlusterfsVolumeSource"), 16937 }, 16938 }, 16939 "persistentVolumeClaim": { 16940 SchemaProps: spec.SchemaProps{ 16941 Description: "persistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", 16942 Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimVolumeSource"), 16943 }, 16944 }, 16945 "rbd": { 16946 SchemaProps: spec.SchemaProps{ 16947 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", 16948 Ref: ref("k8s.io/api/core/v1.RBDVolumeSource"), 16949 }, 16950 }, 16951 "flexVolume": { 16952 SchemaProps: spec.SchemaProps{ 16953 Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", 16954 Ref: ref("k8s.io/api/core/v1.FlexVolumeSource"), 16955 }, 16956 }, 16957 "cinder": { 16958 SchemaProps: spec.SchemaProps{ 16959 Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", 16960 Ref: ref("k8s.io/api/core/v1.CinderVolumeSource"), 16961 }, 16962 }, 16963 "cephfs": { 16964 SchemaProps: spec.SchemaProps{ 16965 Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime", 16966 Ref: ref("k8s.io/api/core/v1.CephFSVolumeSource"), 16967 }, 16968 }, 16969 "flocker": { 16970 SchemaProps: spec.SchemaProps{ 16971 Description: "flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running", 16972 Ref: ref("k8s.io/api/core/v1.FlockerVolumeSource"), 16973 }, 16974 }, 16975 "downwardAPI": { 16976 SchemaProps: spec.SchemaProps{ 16977 Description: "downwardAPI represents downward API about the pod that should populate this volume", 16978 Ref: ref("k8s.io/api/core/v1.DownwardAPIVolumeSource"), 16979 }, 16980 }, 16981 "fc": { 16982 SchemaProps: spec.SchemaProps{ 16983 Description: "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", 16984 Ref: ref("k8s.io/api/core/v1.FCVolumeSource"), 16985 }, 16986 }, 16987 "azureFile": { 16988 SchemaProps: spec.SchemaProps{ 16989 Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod.", 16990 Ref: ref("k8s.io/api/core/v1.AzureFileVolumeSource"), 16991 }, 16992 }, 16993 "configMap": { 16994 SchemaProps: spec.SchemaProps{ 16995 Description: "configMap represents a configMap that should populate this volume", 16996 Ref: ref("k8s.io/api/core/v1.ConfigMapVolumeSource"), 16997 }, 16998 }, 16999 "vsphereVolume": { 17000 SchemaProps: spec.SchemaProps{ 17001 Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", 17002 Ref: ref("k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"), 17003 }, 17004 }, 17005 "quobyte": { 17006 SchemaProps: spec.SchemaProps{ 17007 Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime", 17008 Ref: ref("k8s.io/api/core/v1.QuobyteVolumeSource"), 17009 }, 17010 }, 17011 "azureDisk": { 17012 SchemaProps: spec.SchemaProps{ 17013 Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", 17014 Ref: ref("k8s.io/api/core/v1.AzureDiskVolumeSource"), 17015 }, 17016 }, 17017 "photonPersistentDisk": { 17018 SchemaProps: spec.SchemaProps{ 17019 Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", 17020 Ref: ref("k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource"), 17021 }, 17022 }, 17023 "projected": { 17024 SchemaProps: spec.SchemaProps{ 17025 Description: "projected items for all in one resources secrets, configmaps, and downward API", 17026 Ref: ref("k8s.io/api/core/v1.ProjectedVolumeSource"), 17027 }, 17028 }, 17029 "portworxVolume": { 17030 SchemaProps: spec.SchemaProps{ 17031 Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine", 17032 Ref: ref("k8s.io/api/core/v1.PortworxVolumeSource"), 17033 }, 17034 }, 17035 "scaleIO": { 17036 SchemaProps: spec.SchemaProps{ 17037 Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", 17038 Ref: ref("k8s.io/api/core/v1.ScaleIOVolumeSource"), 17039 }, 17040 }, 17041 "storageos": { 17042 SchemaProps: spec.SchemaProps{ 17043 Description: "storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.", 17044 Ref: ref("k8s.io/api/core/v1.StorageOSVolumeSource"), 17045 }, 17046 }, 17047 "csi": { 17048 SchemaProps: spec.SchemaProps{ 17049 Description: "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).", 17050 Ref: ref("k8s.io/api/core/v1.CSIVolumeSource"), 17051 }, 17052 }, 17053 "ephemeral": { 17054 SchemaProps: spec.SchemaProps{ 17055 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.", 17056 Ref: ref("k8s.io/api/core/v1.EphemeralVolumeSource"), 17057 }, 17058 }, 17059 }, 17060 Required: []string{"name"}, 17061 }, 17062 }, 17063 Dependencies: []string{ 17064 "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"}, 17065 } 17066 } 17067 17068 func schema_k8sio_api_core_v1_VolumeDevice(ref common.ReferenceCallback) common.OpenAPIDefinition { 17069 return common.OpenAPIDefinition{ 17070 Schema: spec.Schema{ 17071 SchemaProps: spec.SchemaProps{ 17072 Description: "volumeDevice describes a mapping of a raw block device within a container.", 17073 Type: []string{"object"}, 17074 Properties: map[string]spec.Schema{ 17075 "name": { 17076 SchemaProps: spec.SchemaProps{ 17077 Description: "name must match the name of a persistentVolumeClaim in the pod", 17078 Default: "", 17079 Type: []string{"string"}, 17080 Format: "", 17081 }, 17082 }, 17083 "devicePath": { 17084 SchemaProps: spec.SchemaProps{ 17085 Description: "devicePath is the path inside of the container that the device will be mapped to.", 17086 Default: "", 17087 Type: []string{"string"}, 17088 Format: "", 17089 }, 17090 }, 17091 }, 17092 Required: []string{"name", "devicePath"}, 17093 }, 17094 }, 17095 } 17096 } 17097 17098 func schema_k8sio_api_core_v1_VolumeMount(ref common.ReferenceCallback) common.OpenAPIDefinition { 17099 return common.OpenAPIDefinition{ 17100 Schema: spec.Schema{ 17101 SchemaProps: spec.SchemaProps{ 17102 Description: "VolumeMount describes a mounting of a Volume within a container.", 17103 Type: []string{"object"}, 17104 Properties: map[string]spec.Schema{ 17105 "name": { 17106 SchemaProps: spec.SchemaProps{ 17107 Description: "This must match the Name of a Volume.", 17108 Default: "", 17109 Type: []string{"string"}, 17110 Format: "", 17111 }, 17112 }, 17113 "readOnly": { 17114 SchemaProps: spec.SchemaProps{ 17115 Description: "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.", 17116 Type: []string{"boolean"}, 17117 Format: "", 17118 }, 17119 }, 17120 "mountPath": { 17121 SchemaProps: spec.SchemaProps{ 17122 Description: "Path within the container at which the volume should be mounted. Must not contain ':'.", 17123 Default: "", 17124 Type: []string{"string"}, 17125 Format: "", 17126 }, 17127 }, 17128 "subPath": { 17129 SchemaProps: spec.SchemaProps{ 17130 Description: "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).", 17131 Type: []string{"string"}, 17132 Format: "", 17133 }, 17134 }, 17135 "mountPropagation": { 17136 SchemaProps: spec.SchemaProps{ 17137 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.\n\nPossible enum values:\n - `\"Bidirectional\"` means that the volume in a container will receive new mounts from the host or other containers, and its own mounts will be propagated from the container to the host or other containers. Note that this mode is recursively applied to all mounts in the volume (\"rshared\" in Linux terminology).\n - `\"HostToContainer\"` means that the volume in a container will receive new mounts from the host or other containers, but filesystems mounted inside the container won't be propagated to the host or other containers. Note that this mode is recursively applied to all mounts in the volume (\"rslave\" in Linux terminology).\n - `\"None\"` means that the volume in a container will not receive new mounts from the host or other containers, and filesystems mounted inside the container won't be propagated to the host or other containers. Note that this mode corresponds to \"private\" in Linux terminology.", 17138 Type: []string{"string"}, 17139 Format: "", 17140 Enum: []interface{}{"Bidirectional", "HostToContainer", "None"}, 17141 }, 17142 }, 17143 "subPathExpr": { 17144 SchemaProps: spec.SchemaProps{ 17145 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.", 17146 Type: []string{"string"}, 17147 Format: "", 17148 }, 17149 }, 17150 }, 17151 Required: []string{"name", "mountPath"}, 17152 }, 17153 }, 17154 } 17155 } 17156 17157 func schema_k8sio_api_core_v1_VolumeNodeAffinity(ref common.ReferenceCallback) common.OpenAPIDefinition { 17158 return common.OpenAPIDefinition{ 17159 Schema: spec.Schema{ 17160 SchemaProps: spec.SchemaProps{ 17161 Description: "VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from.", 17162 Type: []string{"object"}, 17163 Properties: map[string]spec.Schema{ 17164 "required": { 17165 SchemaProps: spec.SchemaProps{ 17166 Description: "required specifies hard node constraints that must be met.", 17167 Ref: ref("k8s.io/api/core/v1.NodeSelector"), 17168 }, 17169 }, 17170 }, 17171 }, 17172 }, 17173 Dependencies: []string{ 17174 "k8s.io/api/core/v1.NodeSelector"}, 17175 } 17176 } 17177 17178 func schema_k8sio_api_core_v1_VolumeProjection(ref common.ReferenceCallback) common.OpenAPIDefinition { 17179 return common.OpenAPIDefinition{ 17180 Schema: spec.Schema{ 17181 SchemaProps: spec.SchemaProps{ 17182 Description: "Projection that may be projected along with other supported volume types", 17183 Type: []string{"object"}, 17184 Properties: map[string]spec.Schema{ 17185 "secret": { 17186 SchemaProps: spec.SchemaProps{ 17187 Description: "secret information about the secret data to project", 17188 Ref: ref("k8s.io/api/core/v1.SecretProjection"), 17189 }, 17190 }, 17191 "downwardAPI": { 17192 SchemaProps: spec.SchemaProps{ 17193 Description: "downwardAPI information about the downwardAPI data to project", 17194 Ref: ref("k8s.io/api/core/v1.DownwardAPIProjection"), 17195 }, 17196 }, 17197 "configMap": { 17198 SchemaProps: spec.SchemaProps{ 17199 Description: "configMap information about the configMap data to project", 17200 Ref: ref("k8s.io/api/core/v1.ConfigMapProjection"), 17201 }, 17202 }, 17203 "serviceAccountToken": { 17204 SchemaProps: spec.SchemaProps{ 17205 Description: "serviceAccountToken is information about the serviceAccountToken data to project", 17206 Ref: ref("k8s.io/api/core/v1.ServiceAccountTokenProjection"), 17207 }, 17208 }, 17209 }, 17210 }, 17211 }, 17212 Dependencies: []string{ 17213 "k8s.io/api/core/v1.ConfigMapProjection", "k8s.io/api/core/v1.DownwardAPIProjection", "k8s.io/api/core/v1.SecretProjection", "k8s.io/api/core/v1.ServiceAccountTokenProjection"}, 17214 } 17215 } 17216 17217 func schema_k8sio_api_core_v1_VolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 17218 return common.OpenAPIDefinition{ 17219 Schema: spec.Schema{ 17220 SchemaProps: spec.SchemaProps{ 17221 Description: "Represents the source of a volume to mount. Only one of its members may be specified.", 17222 Type: []string{"object"}, 17223 Properties: map[string]spec.Schema{ 17224 "hostPath": { 17225 SchemaProps: spec.SchemaProps{ 17226 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", 17227 Ref: ref("k8s.io/api/core/v1.HostPathVolumeSource"), 17228 }, 17229 }, 17230 "emptyDir": { 17231 SchemaProps: spec.SchemaProps{ 17232 Description: "emptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", 17233 Ref: ref("k8s.io/api/core/v1.EmptyDirVolumeSource"), 17234 }, 17235 }, 17236 "gcePersistentDisk": { 17237 SchemaProps: spec.SchemaProps{ 17238 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", 17239 Ref: ref("k8s.io/api/core/v1.GCEPersistentDiskVolumeSource"), 17240 }, 17241 }, 17242 "awsElasticBlockStore": { 17243 SchemaProps: spec.SchemaProps{ 17244 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", 17245 Ref: ref("k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource"), 17246 }, 17247 }, 17248 "gitRepo": { 17249 SchemaProps: spec.SchemaProps{ 17250 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.", 17251 Ref: ref("k8s.io/api/core/v1.GitRepoVolumeSource"), 17252 }, 17253 }, 17254 "secret": { 17255 SchemaProps: spec.SchemaProps{ 17256 Description: "secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret", 17257 Ref: ref("k8s.io/api/core/v1.SecretVolumeSource"), 17258 }, 17259 }, 17260 "nfs": { 17261 SchemaProps: spec.SchemaProps{ 17262 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", 17263 Ref: ref("k8s.io/api/core/v1.NFSVolumeSource"), 17264 }, 17265 }, 17266 "iscsi": { 17267 SchemaProps: spec.SchemaProps{ 17268 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", 17269 Ref: ref("k8s.io/api/core/v1.ISCSIVolumeSource"), 17270 }, 17271 }, 17272 "glusterfs": { 17273 SchemaProps: spec.SchemaProps{ 17274 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", 17275 Ref: ref("k8s.io/api/core/v1.GlusterfsVolumeSource"), 17276 }, 17277 }, 17278 "persistentVolumeClaim": { 17279 SchemaProps: spec.SchemaProps{ 17280 Description: "persistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", 17281 Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimVolumeSource"), 17282 }, 17283 }, 17284 "rbd": { 17285 SchemaProps: spec.SchemaProps{ 17286 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", 17287 Ref: ref("k8s.io/api/core/v1.RBDVolumeSource"), 17288 }, 17289 }, 17290 "flexVolume": { 17291 SchemaProps: spec.SchemaProps{ 17292 Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", 17293 Ref: ref("k8s.io/api/core/v1.FlexVolumeSource"), 17294 }, 17295 }, 17296 "cinder": { 17297 SchemaProps: spec.SchemaProps{ 17298 Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", 17299 Ref: ref("k8s.io/api/core/v1.CinderVolumeSource"), 17300 }, 17301 }, 17302 "cephfs": { 17303 SchemaProps: spec.SchemaProps{ 17304 Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime", 17305 Ref: ref("k8s.io/api/core/v1.CephFSVolumeSource"), 17306 }, 17307 }, 17308 "flocker": { 17309 SchemaProps: spec.SchemaProps{ 17310 Description: "flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running", 17311 Ref: ref("k8s.io/api/core/v1.FlockerVolumeSource"), 17312 }, 17313 }, 17314 "downwardAPI": { 17315 SchemaProps: spec.SchemaProps{ 17316 Description: "downwardAPI represents downward API about the pod that should populate this volume", 17317 Ref: ref("k8s.io/api/core/v1.DownwardAPIVolumeSource"), 17318 }, 17319 }, 17320 "fc": { 17321 SchemaProps: spec.SchemaProps{ 17322 Description: "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", 17323 Ref: ref("k8s.io/api/core/v1.FCVolumeSource"), 17324 }, 17325 }, 17326 "azureFile": { 17327 SchemaProps: spec.SchemaProps{ 17328 Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod.", 17329 Ref: ref("k8s.io/api/core/v1.AzureFileVolumeSource"), 17330 }, 17331 }, 17332 "configMap": { 17333 SchemaProps: spec.SchemaProps{ 17334 Description: "configMap represents a configMap that should populate this volume", 17335 Ref: ref("k8s.io/api/core/v1.ConfigMapVolumeSource"), 17336 }, 17337 }, 17338 "vsphereVolume": { 17339 SchemaProps: spec.SchemaProps{ 17340 Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", 17341 Ref: ref("k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"), 17342 }, 17343 }, 17344 "quobyte": { 17345 SchemaProps: spec.SchemaProps{ 17346 Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime", 17347 Ref: ref("k8s.io/api/core/v1.QuobyteVolumeSource"), 17348 }, 17349 }, 17350 "azureDisk": { 17351 SchemaProps: spec.SchemaProps{ 17352 Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", 17353 Ref: ref("k8s.io/api/core/v1.AzureDiskVolumeSource"), 17354 }, 17355 }, 17356 "photonPersistentDisk": { 17357 SchemaProps: spec.SchemaProps{ 17358 Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", 17359 Ref: ref("k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource"), 17360 }, 17361 }, 17362 "projected": { 17363 SchemaProps: spec.SchemaProps{ 17364 Description: "projected items for all in one resources secrets, configmaps, and downward API", 17365 Ref: ref("k8s.io/api/core/v1.ProjectedVolumeSource"), 17366 }, 17367 }, 17368 "portworxVolume": { 17369 SchemaProps: spec.SchemaProps{ 17370 Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine", 17371 Ref: ref("k8s.io/api/core/v1.PortworxVolumeSource"), 17372 }, 17373 }, 17374 "scaleIO": { 17375 SchemaProps: spec.SchemaProps{ 17376 Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", 17377 Ref: ref("k8s.io/api/core/v1.ScaleIOVolumeSource"), 17378 }, 17379 }, 17380 "storageos": { 17381 SchemaProps: spec.SchemaProps{ 17382 Description: "storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.", 17383 Ref: ref("k8s.io/api/core/v1.StorageOSVolumeSource"), 17384 }, 17385 }, 17386 "csi": { 17387 SchemaProps: spec.SchemaProps{ 17388 Description: "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).", 17389 Ref: ref("k8s.io/api/core/v1.CSIVolumeSource"), 17390 }, 17391 }, 17392 "ephemeral": { 17393 SchemaProps: spec.SchemaProps{ 17394 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.", 17395 Ref: ref("k8s.io/api/core/v1.EphemeralVolumeSource"), 17396 }, 17397 }, 17398 }, 17399 }, 17400 }, 17401 Dependencies: []string{ 17402 "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"}, 17403 } 17404 } 17405 17406 func schema_k8sio_api_core_v1_VsphereVirtualDiskVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 17407 return common.OpenAPIDefinition{ 17408 Schema: spec.Schema{ 17409 SchemaProps: spec.SchemaProps{ 17410 Description: "Represents a vSphere volume resource.", 17411 Type: []string{"object"}, 17412 Properties: map[string]spec.Schema{ 17413 "volumePath": { 17414 SchemaProps: spec.SchemaProps{ 17415 Description: "volumePath is the path that identifies vSphere volume vmdk", 17416 Default: "", 17417 Type: []string{"string"}, 17418 Format: "", 17419 }, 17420 }, 17421 "fsType": { 17422 SchemaProps: spec.SchemaProps{ 17423 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.", 17424 Type: []string{"string"}, 17425 Format: "", 17426 }, 17427 }, 17428 "storagePolicyName": { 17429 SchemaProps: spec.SchemaProps{ 17430 Description: "storagePolicyName is the storage Policy Based Management (SPBM) profile name.", 17431 Type: []string{"string"}, 17432 Format: "", 17433 }, 17434 }, 17435 "storagePolicyID": { 17436 SchemaProps: spec.SchemaProps{ 17437 Description: "storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.", 17438 Type: []string{"string"}, 17439 Format: "", 17440 }, 17441 }, 17442 }, 17443 Required: []string{"volumePath"}, 17444 }, 17445 }, 17446 } 17447 } 17448 17449 func schema_k8sio_api_core_v1_WeightedPodAffinityTerm(ref common.ReferenceCallback) common.OpenAPIDefinition { 17450 return common.OpenAPIDefinition{ 17451 Schema: spec.Schema{ 17452 SchemaProps: spec.SchemaProps{ 17453 Description: "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", 17454 Type: []string{"object"}, 17455 Properties: map[string]spec.Schema{ 17456 "weight": { 17457 SchemaProps: spec.SchemaProps{ 17458 Description: "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.", 17459 Default: 0, 17460 Type: []string{"integer"}, 17461 Format: "int32", 17462 }, 17463 }, 17464 "podAffinityTerm": { 17465 SchemaProps: spec.SchemaProps{ 17466 Description: "Required. A pod affinity term, associated with the corresponding weight.", 17467 Default: map[string]interface{}{}, 17468 Ref: ref("k8s.io/api/core/v1.PodAffinityTerm"), 17469 }, 17470 }, 17471 }, 17472 Required: []string{"weight", "podAffinityTerm"}, 17473 }, 17474 }, 17475 Dependencies: []string{ 17476 "k8s.io/api/core/v1.PodAffinityTerm"}, 17477 } 17478 } 17479 17480 func schema_k8sio_api_core_v1_WindowsSecurityContextOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 17481 return common.OpenAPIDefinition{ 17482 Schema: spec.Schema{ 17483 SchemaProps: spec.SchemaProps{ 17484 Description: "WindowsSecurityContextOptions contain Windows-specific options and credentials.", 17485 Type: []string{"object"}, 17486 Properties: map[string]spec.Schema{ 17487 "gmsaCredentialSpecName": { 17488 SchemaProps: spec.SchemaProps{ 17489 Description: "GMSACredentialSpecName is the name of the GMSA credential spec to use.", 17490 Type: []string{"string"}, 17491 Format: "", 17492 }, 17493 }, 17494 "gmsaCredentialSpec": { 17495 SchemaProps: spec.SchemaProps{ 17496 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.", 17497 Type: []string{"string"}, 17498 Format: "", 17499 }, 17500 }, 17501 "runAsUserName": { 17502 SchemaProps: spec.SchemaProps{ 17503 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.", 17504 Type: []string{"string"}, 17505 Format: "", 17506 }, 17507 }, 17508 "hostProcess": { 17509 SchemaProps: spec.SchemaProps{ 17510 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.", 17511 Type: []string{"boolean"}, 17512 Format: "", 17513 }, 17514 }, 17515 }, 17516 }, 17517 }, 17518 } 17519 } 17520 17521 func schema_k8sio_api_networking_v1_HTTPIngressPath(ref common.ReferenceCallback) common.OpenAPIDefinition { 17522 return common.OpenAPIDefinition{ 17523 Schema: spec.Schema{ 17524 SchemaProps: spec.SchemaProps{ 17525 Description: "HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.", 17526 Type: []string{"object"}, 17527 Properties: map[string]spec.Schema{ 17528 "path": { 17529 SchemaProps: spec.SchemaProps{ 17530 Description: "path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/' and must be present when using PathType with value \"Exact\" or \"Prefix\".", 17531 Type: []string{"string"}, 17532 Format: "", 17533 }, 17534 }, 17535 "pathType": { 17536 SchemaProps: spec.SchemaProps{ 17537 Description: "pathType determines the interpretation of the path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is\n done on a path element by element basis. A path element refers is the\n list of labels in the path split by the '/' separator. A request is a\n match for path p if every p is an element-wise prefix of p of the\n request path. Note that if the last element of the path is a substring\n of the last element in request path, it is not a match (e.g. /foo/bar\n matches /foo/bar/baz, but does not match /foo/barbaz).\n* ImplementationSpecific: Interpretation of the Path matching is up to\n the IngressClass. Implementations can treat this as a separate PathType\n or treat it identically to Prefix or Exact path types.\nImplementations are required to support all path types.\n\nPossible enum values:\n - `\"Exact\"` matches the URL path exactly and with case sensitivity.\n - `\"ImplementationSpecific\"` matching is up to the IngressClass. Implementations can treat this as a separate PathType or treat it identically to Prefix or Exact path types.\n - `\"Prefix\"` matches based on a URL path prefix split by '/'. Matching is case sensitive and done on a path element by element basis. A path element refers to the list of labels in the path split by the '/' separator. A request is a match for path p if every p is an element-wise prefix of p of the request path. Note that if the last element of the path is a substring of the last element in request path, it is not a match (e.g. /foo/bar matches /foo/bar/baz, but does not match /foo/barbaz). If multiple matching paths exist in an Ingress spec, the longest matching path is given priority. Examples: - /foo/bar does not match requests to /foo/barbaz - /foo/bar matches request to /foo/bar and /foo/bar/baz - /foo and /foo/ both match requests to /foo and /foo/. If both paths are present in an Ingress spec, the longest matching path (/foo/) is given priority.", 17538 Type: []string{"string"}, 17539 Format: "", 17540 Enum: []interface{}{"Exact", "ImplementationSpecific", "Prefix"}, 17541 }, 17542 }, 17543 "backend": { 17544 SchemaProps: spec.SchemaProps{ 17545 Description: "backend defines the referenced service endpoint to which the traffic will be forwarded to.", 17546 Default: map[string]interface{}{}, 17547 Ref: ref("k8s.io/api/networking/v1.IngressBackend"), 17548 }, 17549 }, 17550 }, 17551 Required: []string{"pathType", "backend"}, 17552 }, 17553 }, 17554 Dependencies: []string{ 17555 "k8s.io/api/networking/v1.IngressBackend"}, 17556 } 17557 } 17558 17559 func schema_k8sio_api_networking_v1_HTTPIngressRuleValue(ref common.ReferenceCallback) common.OpenAPIDefinition { 17560 return common.OpenAPIDefinition{ 17561 Schema: spec.Schema{ 17562 SchemaProps: spec.SchemaProps{ 17563 Description: "HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http://<host>/<path>?<searchpart> -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'.", 17564 Type: []string{"object"}, 17565 Properties: map[string]spec.Schema{ 17566 "paths": { 17567 VendorExtensible: spec.VendorExtensible{ 17568 Extensions: spec.Extensions{ 17569 "x-kubernetes-list-type": "atomic", 17570 }, 17571 }, 17572 SchemaProps: spec.SchemaProps{ 17573 Description: "paths is a collection of paths that map requests to backends.", 17574 Type: []string{"array"}, 17575 Items: &spec.SchemaOrArray{ 17576 Schema: &spec.Schema{ 17577 SchemaProps: spec.SchemaProps{ 17578 Default: map[string]interface{}{}, 17579 Ref: ref("k8s.io/api/networking/v1.HTTPIngressPath"), 17580 }, 17581 }, 17582 }, 17583 }, 17584 }, 17585 }, 17586 Required: []string{"paths"}, 17587 }, 17588 }, 17589 Dependencies: []string{ 17590 "k8s.io/api/networking/v1.HTTPIngressPath"}, 17591 } 17592 } 17593 17594 func schema_k8sio_api_networking_v1_IPBlock(ref common.ReferenceCallback) common.OpenAPIDefinition { 17595 return common.OpenAPIDefinition{ 17596 Schema: spec.Schema{ 17597 SchemaProps: spec.SchemaProps{ 17598 Description: "IPBlock describes a particular CIDR (Ex. \"192.168.1.0/24\",\"2001:db8::/64\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.", 17599 Type: []string{"object"}, 17600 Properties: map[string]spec.Schema{ 17601 "cidr": { 17602 SchemaProps: spec.SchemaProps{ 17603 Description: "cidr is a string representing the IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\"", 17604 Default: "", 17605 Type: []string{"string"}, 17606 Format: "", 17607 }, 17608 }, 17609 "except": { 17610 SchemaProps: spec.SchemaProps{ 17611 Description: "except is a slice of CIDRs that should not be included within an IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\" Except values will be rejected if they are outside the cidr range", 17612 Type: []string{"array"}, 17613 Items: &spec.SchemaOrArray{ 17614 Schema: &spec.Schema{ 17615 SchemaProps: spec.SchemaProps{ 17616 Default: "", 17617 Type: []string{"string"}, 17618 Format: "", 17619 }, 17620 }, 17621 }, 17622 }, 17623 }, 17624 }, 17625 Required: []string{"cidr"}, 17626 }, 17627 }, 17628 } 17629 } 17630 17631 func schema_k8sio_api_networking_v1_Ingress(ref common.ReferenceCallback) common.OpenAPIDefinition { 17632 return common.OpenAPIDefinition{ 17633 Schema: spec.Schema{ 17634 SchemaProps: spec.SchemaProps{ 17635 Description: "Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc.", 17636 Type: []string{"object"}, 17637 Properties: map[string]spec.Schema{ 17638 "kind": { 17639 SchemaProps: spec.SchemaProps{ 17640 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 17641 Type: []string{"string"}, 17642 Format: "", 17643 }, 17644 }, 17645 "apiVersion": { 17646 SchemaProps: spec.SchemaProps{ 17647 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 17648 Type: []string{"string"}, 17649 Format: "", 17650 }, 17651 }, 17652 "metadata": { 17653 SchemaProps: spec.SchemaProps{ 17654 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 17655 Default: map[string]interface{}{}, 17656 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 17657 }, 17658 }, 17659 "spec": { 17660 SchemaProps: spec.SchemaProps{ 17661 Description: "spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", 17662 Default: map[string]interface{}{}, 17663 Ref: ref("k8s.io/api/networking/v1.IngressSpec"), 17664 }, 17665 }, 17666 "status": { 17667 SchemaProps: spec.SchemaProps{ 17668 Description: "status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", 17669 Default: map[string]interface{}{}, 17670 Ref: ref("k8s.io/api/networking/v1.IngressStatus"), 17671 }, 17672 }, 17673 }, 17674 }, 17675 }, 17676 Dependencies: []string{ 17677 "k8s.io/api/networking/v1.IngressSpec", "k8s.io/api/networking/v1.IngressStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 17678 } 17679 } 17680 17681 func schema_k8sio_api_networking_v1_IngressBackend(ref common.ReferenceCallback) common.OpenAPIDefinition { 17682 return common.OpenAPIDefinition{ 17683 Schema: spec.Schema{ 17684 SchemaProps: spec.SchemaProps{ 17685 Description: "IngressBackend describes all endpoints for a given service and port.", 17686 Type: []string{"object"}, 17687 Properties: map[string]spec.Schema{ 17688 "service": { 17689 SchemaProps: spec.SchemaProps{ 17690 Description: "service references a service as a backend. This is a mutually exclusive setting with \"Resource\".", 17691 Ref: ref("k8s.io/api/networking/v1.IngressServiceBackend"), 17692 }, 17693 }, 17694 "resource": { 17695 SchemaProps: spec.SchemaProps{ 17696 Description: "resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with \"Service\".", 17697 Ref: ref("k8s.io/api/core/v1.TypedLocalObjectReference"), 17698 }, 17699 }, 17700 }, 17701 }, 17702 }, 17703 Dependencies: []string{ 17704 "k8s.io/api/core/v1.TypedLocalObjectReference", "k8s.io/api/networking/v1.IngressServiceBackend"}, 17705 } 17706 } 17707 17708 func schema_k8sio_api_networking_v1_IngressClass(ref common.ReferenceCallback) common.OpenAPIDefinition { 17709 return common.OpenAPIDefinition{ 17710 Schema: spec.Schema{ 17711 SchemaProps: spec.SchemaProps{ 17712 Description: "IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class.", 17713 Type: []string{"object"}, 17714 Properties: map[string]spec.Schema{ 17715 "kind": { 17716 SchemaProps: spec.SchemaProps{ 17717 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 17718 Type: []string{"string"}, 17719 Format: "", 17720 }, 17721 }, 17722 "apiVersion": { 17723 SchemaProps: spec.SchemaProps{ 17724 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 17725 Type: []string{"string"}, 17726 Format: "", 17727 }, 17728 }, 17729 "metadata": { 17730 SchemaProps: spec.SchemaProps{ 17731 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 17732 Default: map[string]interface{}{}, 17733 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 17734 }, 17735 }, 17736 "spec": { 17737 SchemaProps: spec.SchemaProps{ 17738 Description: "spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", 17739 Default: map[string]interface{}{}, 17740 Ref: ref("k8s.io/api/networking/v1.IngressClassSpec"), 17741 }, 17742 }, 17743 }, 17744 }, 17745 }, 17746 Dependencies: []string{ 17747 "k8s.io/api/networking/v1.IngressClassSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 17748 } 17749 } 17750 17751 func schema_k8sio_api_networking_v1_IngressClassList(ref common.ReferenceCallback) common.OpenAPIDefinition { 17752 return common.OpenAPIDefinition{ 17753 Schema: spec.Schema{ 17754 SchemaProps: spec.SchemaProps{ 17755 Description: "IngressClassList is a collection of IngressClasses.", 17756 Type: []string{"object"}, 17757 Properties: map[string]spec.Schema{ 17758 "kind": { 17759 SchemaProps: spec.SchemaProps{ 17760 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 17761 Type: []string{"string"}, 17762 Format: "", 17763 }, 17764 }, 17765 "apiVersion": { 17766 SchemaProps: spec.SchemaProps{ 17767 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 17768 Type: []string{"string"}, 17769 Format: "", 17770 }, 17771 }, 17772 "metadata": { 17773 SchemaProps: spec.SchemaProps{ 17774 Description: "Standard list metadata.", 17775 Default: map[string]interface{}{}, 17776 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 17777 }, 17778 }, 17779 "items": { 17780 SchemaProps: spec.SchemaProps{ 17781 Description: "items is the list of IngressClasses.", 17782 Type: []string{"array"}, 17783 Items: &spec.SchemaOrArray{ 17784 Schema: &spec.Schema{ 17785 SchemaProps: spec.SchemaProps{ 17786 Default: map[string]interface{}{}, 17787 Ref: ref("k8s.io/api/networking/v1.IngressClass"), 17788 }, 17789 }, 17790 }, 17791 }, 17792 }, 17793 }, 17794 Required: []string{"items"}, 17795 }, 17796 }, 17797 Dependencies: []string{ 17798 "k8s.io/api/networking/v1.IngressClass", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 17799 } 17800 } 17801 17802 func schema_k8sio_api_networking_v1_IngressClassParametersReference(ref common.ReferenceCallback) common.OpenAPIDefinition { 17803 return common.OpenAPIDefinition{ 17804 Schema: spec.Schema{ 17805 SchemaProps: spec.SchemaProps{ 17806 Description: "IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource.", 17807 Type: []string{"object"}, 17808 Properties: map[string]spec.Schema{ 17809 "apiGroup": { 17810 SchemaProps: spec.SchemaProps{ 17811 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.", 17812 Type: []string{"string"}, 17813 Format: "", 17814 }, 17815 }, 17816 "kind": { 17817 SchemaProps: spec.SchemaProps{ 17818 Description: "kind is the type of resource being referenced.", 17819 Default: "", 17820 Type: []string{"string"}, 17821 Format: "", 17822 }, 17823 }, 17824 "name": { 17825 SchemaProps: spec.SchemaProps{ 17826 Description: "name is the name of resource being referenced.", 17827 Default: "", 17828 Type: []string{"string"}, 17829 Format: "", 17830 }, 17831 }, 17832 "scope": { 17833 SchemaProps: spec.SchemaProps{ 17834 Description: "scope represents if this refers to a cluster or namespace scoped resource. This may be set to \"Cluster\" (default) or \"Namespace\".", 17835 Type: []string{"string"}, 17836 Format: "", 17837 }, 17838 }, 17839 "namespace": { 17840 SchemaProps: spec.SchemaProps{ 17841 Description: "namespace is the namespace of the resource being referenced. This field is required when scope is set to \"Namespace\" and must be unset when scope is set to \"Cluster\".", 17842 Type: []string{"string"}, 17843 Format: "", 17844 }, 17845 }, 17846 }, 17847 Required: []string{"kind", "name"}, 17848 }, 17849 }, 17850 } 17851 } 17852 17853 func schema_k8sio_api_networking_v1_IngressClassSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 17854 return common.OpenAPIDefinition{ 17855 Schema: spec.Schema{ 17856 SchemaProps: spec.SchemaProps{ 17857 Description: "IngressClassSpec provides information about the class of an Ingress.", 17858 Type: []string{"object"}, 17859 Properties: map[string]spec.Schema{ 17860 "controller": { 17861 SchemaProps: spec.SchemaProps{ 17862 Description: "controller refers to the name of the controller that should handle this class. This allows for different \"flavors\" that are controlled by the same controller. For example, you may have different parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. \"acme.io/ingress-controller\". This field is immutable.", 17863 Type: []string{"string"}, 17864 Format: "", 17865 }, 17866 }, 17867 "parameters": { 17868 SchemaProps: spec.SchemaProps{ 17869 Description: "parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters.", 17870 Ref: ref("k8s.io/api/networking/v1.IngressClassParametersReference"), 17871 }, 17872 }, 17873 }, 17874 }, 17875 }, 17876 Dependencies: []string{ 17877 "k8s.io/api/networking/v1.IngressClassParametersReference"}, 17878 } 17879 } 17880 17881 func schema_k8sio_api_networking_v1_IngressList(ref common.ReferenceCallback) common.OpenAPIDefinition { 17882 return common.OpenAPIDefinition{ 17883 Schema: spec.Schema{ 17884 SchemaProps: spec.SchemaProps{ 17885 Description: "IngressList is a collection of Ingress.", 17886 Type: []string{"object"}, 17887 Properties: map[string]spec.Schema{ 17888 "kind": { 17889 SchemaProps: spec.SchemaProps{ 17890 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 17891 Type: []string{"string"}, 17892 Format: "", 17893 }, 17894 }, 17895 "apiVersion": { 17896 SchemaProps: spec.SchemaProps{ 17897 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 17898 Type: []string{"string"}, 17899 Format: "", 17900 }, 17901 }, 17902 "metadata": { 17903 SchemaProps: spec.SchemaProps{ 17904 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 17905 Default: map[string]interface{}{}, 17906 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 17907 }, 17908 }, 17909 "items": { 17910 SchemaProps: spec.SchemaProps{ 17911 Description: "items is the list of Ingress.", 17912 Type: []string{"array"}, 17913 Items: &spec.SchemaOrArray{ 17914 Schema: &spec.Schema{ 17915 SchemaProps: spec.SchemaProps{ 17916 Default: map[string]interface{}{}, 17917 Ref: ref("k8s.io/api/networking/v1.Ingress"), 17918 }, 17919 }, 17920 }, 17921 }, 17922 }, 17923 }, 17924 Required: []string{"items"}, 17925 }, 17926 }, 17927 Dependencies: []string{ 17928 "k8s.io/api/networking/v1.Ingress", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 17929 } 17930 } 17931 17932 func schema_k8sio_api_networking_v1_IngressLoadBalancerIngress(ref common.ReferenceCallback) common.OpenAPIDefinition { 17933 return common.OpenAPIDefinition{ 17934 Schema: spec.Schema{ 17935 SchemaProps: spec.SchemaProps{ 17936 Description: "IngressLoadBalancerIngress represents the status of a load-balancer ingress point.", 17937 Type: []string{"object"}, 17938 Properties: map[string]spec.Schema{ 17939 "ip": { 17940 SchemaProps: spec.SchemaProps{ 17941 Description: "ip is set for load-balancer ingress points that are IP based.", 17942 Type: []string{"string"}, 17943 Format: "", 17944 }, 17945 }, 17946 "hostname": { 17947 SchemaProps: spec.SchemaProps{ 17948 Description: "hostname is set for load-balancer ingress points that are DNS based.", 17949 Type: []string{"string"}, 17950 Format: "", 17951 }, 17952 }, 17953 "ports": { 17954 VendorExtensible: spec.VendorExtensible{ 17955 Extensions: spec.Extensions{ 17956 "x-kubernetes-list-type": "atomic", 17957 }, 17958 }, 17959 SchemaProps: spec.SchemaProps{ 17960 Description: "ports provides information about the ports exposed by this LoadBalancer.", 17961 Type: []string{"array"}, 17962 Items: &spec.SchemaOrArray{ 17963 Schema: &spec.Schema{ 17964 SchemaProps: spec.SchemaProps{ 17965 Default: map[string]interface{}{}, 17966 Ref: ref("k8s.io/api/networking/v1.IngressPortStatus"), 17967 }, 17968 }, 17969 }, 17970 }, 17971 }, 17972 }, 17973 }, 17974 }, 17975 Dependencies: []string{ 17976 "k8s.io/api/networking/v1.IngressPortStatus"}, 17977 } 17978 } 17979 17980 func schema_k8sio_api_networking_v1_IngressLoadBalancerStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 17981 return common.OpenAPIDefinition{ 17982 Schema: spec.Schema{ 17983 SchemaProps: spec.SchemaProps{ 17984 Description: "IngressLoadBalancerStatus represents the status of a load-balancer.", 17985 Type: []string{"object"}, 17986 Properties: map[string]spec.Schema{ 17987 "ingress": { 17988 SchemaProps: spec.SchemaProps{ 17989 Description: "ingress is a list containing ingress points for the load-balancer.", 17990 Type: []string{"array"}, 17991 Items: &spec.SchemaOrArray{ 17992 Schema: &spec.Schema{ 17993 SchemaProps: spec.SchemaProps{ 17994 Default: map[string]interface{}{}, 17995 Ref: ref("k8s.io/api/networking/v1.IngressLoadBalancerIngress"), 17996 }, 17997 }, 17998 }, 17999 }, 18000 }, 18001 }, 18002 }, 18003 }, 18004 Dependencies: []string{ 18005 "k8s.io/api/networking/v1.IngressLoadBalancerIngress"}, 18006 } 18007 } 18008 18009 func schema_k8sio_api_networking_v1_IngressPortStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 18010 return common.OpenAPIDefinition{ 18011 Schema: spec.Schema{ 18012 SchemaProps: spec.SchemaProps{ 18013 Description: "IngressPortStatus represents the error condition of a service port", 18014 Type: []string{"object"}, 18015 Properties: map[string]spec.Schema{ 18016 "port": { 18017 SchemaProps: spec.SchemaProps{ 18018 Description: "port is the port number of the ingress port.", 18019 Default: 0, 18020 Type: []string{"integer"}, 18021 Format: "int32", 18022 }, 18023 }, 18024 "protocol": { 18025 SchemaProps: spec.SchemaProps{ 18026 Description: "protocol is the protocol of the ingress port. 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.", 18027 Default: "", 18028 Type: []string{"string"}, 18029 Format: "", 18030 Enum: []interface{}{"SCTP", "TCP", "UDP"}, 18031 }, 18032 }, 18033 "error": { 18034 SchemaProps: spec.SchemaProps{ 18035 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.", 18036 Type: []string{"string"}, 18037 Format: "", 18038 }, 18039 }, 18040 }, 18041 Required: []string{"port", "protocol"}, 18042 }, 18043 }, 18044 } 18045 } 18046 18047 func schema_k8sio_api_networking_v1_IngressRule(ref common.ReferenceCallback) common.OpenAPIDefinition { 18048 return common.OpenAPIDefinition{ 18049 Schema: spec.Schema{ 18050 SchemaProps: spec.SchemaProps{ 18051 Description: "IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.", 18052 Type: []string{"object"}, 18053 Properties: map[string]spec.Schema{ 18054 "host": { 18055 SchemaProps: spec.SchemaProps{ 18056 Description: "host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to\n the IP in the Spec of the parent Ingress.\n2. The `:` delimiter is not respected because ports are not allowed.\n\t Currently the port of an Ingress is implicitly :80 for http and\n\t :443 for https.\nBoth these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue.\n\nhost can be \"precise\" which is a domain name without the terminating dot of a network host (e.g. \"foo.bar.com\") or \"wildcard\", which is a domain name prefixed with a single wildcard label (e.g. \"*.foo.com\"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == \"*\"). Requests will be matched against the Host field in the following way: 1. If host is precise, the request matches this rule if the http host header is equal to Host. 2. If host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule.", 18057 Type: []string{"string"}, 18058 Format: "", 18059 }, 18060 }, 18061 "http": { 18062 SchemaProps: spec.SchemaProps{ 18063 Ref: ref("k8s.io/api/networking/v1.HTTPIngressRuleValue"), 18064 }, 18065 }, 18066 }, 18067 }, 18068 }, 18069 Dependencies: []string{ 18070 "k8s.io/api/networking/v1.HTTPIngressRuleValue"}, 18071 } 18072 } 18073 18074 func schema_k8sio_api_networking_v1_IngressRuleValue(ref common.ReferenceCallback) common.OpenAPIDefinition { 18075 return common.OpenAPIDefinition{ 18076 Schema: spec.Schema{ 18077 SchemaProps: spec.SchemaProps{ 18078 Description: "IngressRuleValue represents a rule to apply against incoming requests. If the rule is satisfied, the request is routed to the specified backend. Currently mixing different types of rules in a single Ingress is disallowed, so exactly one of the following must be set.", 18079 Type: []string{"object"}, 18080 Properties: map[string]spec.Schema{ 18081 "http": { 18082 SchemaProps: spec.SchemaProps{ 18083 Ref: ref("k8s.io/api/networking/v1.HTTPIngressRuleValue"), 18084 }, 18085 }, 18086 }, 18087 }, 18088 }, 18089 Dependencies: []string{ 18090 "k8s.io/api/networking/v1.HTTPIngressRuleValue"}, 18091 } 18092 } 18093 18094 func schema_k8sio_api_networking_v1_IngressServiceBackend(ref common.ReferenceCallback) common.OpenAPIDefinition { 18095 return common.OpenAPIDefinition{ 18096 Schema: spec.Schema{ 18097 SchemaProps: spec.SchemaProps{ 18098 Description: "IngressServiceBackend references a Kubernetes Service as a Backend.", 18099 Type: []string{"object"}, 18100 Properties: map[string]spec.Schema{ 18101 "name": { 18102 SchemaProps: spec.SchemaProps{ 18103 Description: "name is the referenced service. The service must exist in the same namespace as the Ingress object.", 18104 Default: "", 18105 Type: []string{"string"}, 18106 Format: "", 18107 }, 18108 }, 18109 "port": { 18110 SchemaProps: spec.SchemaProps{ 18111 Description: "port of the referenced service. A port name or port number is required for a IngressServiceBackend.", 18112 Default: map[string]interface{}{}, 18113 Ref: ref("k8s.io/api/networking/v1.ServiceBackendPort"), 18114 }, 18115 }, 18116 }, 18117 Required: []string{"name"}, 18118 }, 18119 }, 18120 Dependencies: []string{ 18121 "k8s.io/api/networking/v1.ServiceBackendPort"}, 18122 } 18123 } 18124 18125 func schema_k8sio_api_networking_v1_IngressSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 18126 return common.OpenAPIDefinition{ 18127 Schema: spec.Schema{ 18128 SchemaProps: spec.SchemaProps{ 18129 Description: "IngressSpec describes the Ingress the user wishes to exist.", 18130 Type: []string{"object"}, 18131 Properties: map[string]spec.Schema{ 18132 "ingressClassName": { 18133 SchemaProps: spec.SchemaProps{ 18134 Description: "ingressClassName is the name of an IngressClass cluster resource. Ingress controller implementations use this field to know whether they should be serving this Ingress resource, by a transitive connection (controller -> IngressClass -> Ingress resource). Although the `kubernetes.io/ingress.class` annotation (simple constant name) was never formally defined, it was widely supported by Ingress controllers to create a direct binding between Ingress controller and Ingress resources. Newly created Ingress resources should prefer using the field. However, even though the annotation is officially deprecated, for backwards compatibility reasons, ingress controllers should still honor that annotation if present.", 18135 Type: []string{"string"}, 18136 Format: "", 18137 }, 18138 }, 18139 "defaultBackend": { 18140 SchemaProps: spec.SchemaProps{ 18141 Description: "defaultBackend is the backend that should handle requests that don't match any rule. If Rules are not specified, DefaultBackend must be specified. If DefaultBackend is not set, the handling of requests that do not match any of the rules will be up to the Ingress controller.", 18142 Ref: ref("k8s.io/api/networking/v1.IngressBackend"), 18143 }, 18144 }, 18145 "tls": { 18146 VendorExtensible: spec.VendorExtensible{ 18147 Extensions: spec.Extensions{ 18148 "x-kubernetes-list-type": "atomic", 18149 }, 18150 }, 18151 SchemaProps: spec.SchemaProps{ 18152 Description: "tls represents the TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI.", 18153 Type: []string{"array"}, 18154 Items: &spec.SchemaOrArray{ 18155 Schema: &spec.Schema{ 18156 SchemaProps: spec.SchemaProps{ 18157 Default: map[string]interface{}{}, 18158 Ref: ref("k8s.io/api/networking/v1.IngressTLS"), 18159 }, 18160 }, 18161 }, 18162 }, 18163 }, 18164 "rules": { 18165 VendorExtensible: spec.VendorExtensible{ 18166 Extensions: spec.Extensions{ 18167 "x-kubernetes-list-type": "atomic", 18168 }, 18169 }, 18170 SchemaProps: spec.SchemaProps{ 18171 Description: "rules is a list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend.", 18172 Type: []string{"array"}, 18173 Items: &spec.SchemaOrArray{ 18174 Schema: &spec.Schema{ 18175 SchemaProps: spec.SchemaProps{ 18176 Default: map[string]interface{}{}, 18177 Ref: ref("k8s.io/api/networking/v1.IngressRule"), 18178 }, 18179 }, 18180 }, 18181 }, 18182 }, 18183 }, 18184 }, 18185 }, 18186 Dependencies: []string{ 18187 "k8s.io/api/networking/v1.IngressBackend", "k8s.io/api/networking/v1.IngressRule", "k8s.io/api/networking/v1.IngressTLS"}, 18188 } 18189 } 18190 18191 func schema_k8sio_api_networking_v1_IngressStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 18192 return common.OpenAPIDefinition{ 18193 Schema: spec.Schema{ 18194 SchemaProps: spec.SchemaProps{ 18195 Description: "IngressStatus describe the current state of the Ingress.", 18196 Type: []string{"object"}, 18197 Properties: map[string]spec.Schema{ 18198 "loadBalancer": { 18199 SchemaProps: spec.SchemaProps{ 18200 Description: "loadBalancer contains the current status of the load-balancer.", 18201 Default: map[string]interface{}{}, 18202 Ref: ref("k8s.io/api/networking/v1.IngressLoadBalancerStatus"), 18203 }, 18204 }, 18205 }, 18206 }, 18207 }, 18208 Dependencies: []string{ 18209 "k8s.io/api/networking/v1.IngressLoadBalancerStatus"}, 18210 } 18211 } 18212 18213 func schema_k8sio_api_networking_v1_IngressTLS(ref common.ReferenceCallback) common.OpenAPIDefinition { 18214 return common.OpenAPIDefinition{ 18215 Schema: spec.Schema{ 18216 SchemaProps: spec.SchemaProps{ 18217 Description: "IngressTLS describes the transport layer security associated with an ingress.", 18218 Type: []string{"object"}, 18219 Properties: map[string]spec.Schema{ 18220 "hosts": { 18221 VendorExtensible: spec.VendorExtensible{ 18222 Extensions: spec.Extensions{ 18223 "x-kubernetes-list-type": "atomic", 18224 }, 18225 }, 18226 SchemaProps: spec.SchemaProps{ 18227 Description: "hosts is a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified.", 18228 Type: []string{"array"}, 18229 Items: &spec.SchemaOrArray{ 18230 Schema: &spec.Schema{ 18231 SchemaProps: spec.SchemaProps{ 18232 Default: "", 18233 Type: []string{"string"}, 18234 Format: "", 18235 }, 18236 }, 18237 }, 18238 }, 18239 }, 18240 "secretName": { 18241 SchemaProps: spec.SchemaProps{ 18242 Description: "secretName is the name of the secret used to terminate TLS traffic on port 443. Field is left optional to allow TLS routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the \"Host\" header is used for routing.", 18243 Type: []string{"string"}, 18244 Format: "", 18245 }, 18246 }, 18247 }, 18248 }, 18249 }, 18250 } 18251 } 18252 18253 func schema_k8sio_api_networking_v1_NetworkPolicy(ref common.ReferenceCallback) common.OpenAPIDefinition { 18254 return common.OpenAPIDefinition{ 18255 Schema: spec.Schema{ 18256 SchemaProps: spec.SchemaProps{ 18257 Description: "NetworkPolicy describes what network traffic is allowed for a set of Pods", 18258 Type: []string{"object"}, 18259 Properties: map[string]spec.Schema{ 18260 "kind": { 18261 SchemaProps: spec.SchemaProps{ 18262 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 18263 Type: []string{"string"}, 18264 Format: "", 18265 }, 18266 }, 18267 "apiVersion": { 18268 SchemaProps: spec.SchemaProps{ 18269 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 18270 Type: []string{"string"}, 18271 Format: "", 18272 }, 18273 }, 18274 "metadata": { 18275 SchemaProps: spec.SchemaProps{ 18276 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 18277 Default: map[string]interface{}{}, 18278 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 18279 }, 18280 }, 18281 "spec": { 18282 SchemaProps: spec.SchemaProps{ 18283 Description: "spec represents the specification of the desired behavior for this NetworkPolicy.", 18284 Default: map[string]interface{}{}, 18285 Ref: ref("k8s.io/api/networking/v1.NetworkPolicySpec"), 18286 }, 18287 }, 18288 "status": { 18289 SchemaProps: spec.SchemaProps{ 18290 Description: "status represents the current state of the NetworkPolicy. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", 18291 Default: map[string]interface{}{}, 18292 Ref: ref("k8s.io/api/networking/v1.NetworkPolicyStatus"), 18293 }, 18294 }, 18295 }, 18296 }, 18297 }, 18298 Dependencies: []string{ 18299 "k8s.io/api/networking/v1.NetworkPolicySpec", "k8s.io/api/networking/v1.NetworkPolicyStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 18300 } 18301 } 18302 18303 func schema_k8sio_api_networking_v1_NetworkPolicyEgressRule(ref common.ReferenceCallback) common.OpenAPIDefinition { 18304 return common.OpenAPIDefinition{ 18305 Schema: spec.Schema{ 18306 SchemaProps: spec.SchemaProps{ 18307 Description: "NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8", 18308 Type: []string{"object"}, 18309 Properties: map[string]spec.Schema{ 18310 "ports": { 18311 SchemaProps: spec.SchemaProps{ 18312 Description: "ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.", 18313 Type: []string{"array"}, 18314 Items: &spec.SchemaOrArray{ 18315 Schema: &spec.Schema{ 18316 SchemaProps: spec.SchemaProps{ 18317 Default: map[string]interface{}{}, 18318 Ref: ref("k8s.io/api/networking/v1.NetworkPolicyPort"), 18319 }, 18320 }, 18321 }, 18322 }, 18323 }, 18324 "to": { 18325 SchemaProps: spec.SchemaProps{ 18326 Description: "to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list.", 18327 Type: []string{"array"}, 18328 Items: &spec.SchemaOrArray{ 18329 Schema: &spec.Schema{ 18330 SchemaProps: spec.SchemaProps{ 18331 Default: map[string]interface{}{}, 18332 Ref: ref("k8s.io/api/networking/v1.NetworkPolicyPeer"), 18333 }, 18334 }, 18335 }, 18336 }, 18337 }, 18338 }, 18339 }, 18340 }, 18341 Dependencies: []string{ 18342 "k8s.io/api/networking/v1.NetworkPolicyPeer", "k8s.io/api/networking/v1.NetworkPolicyPort"}, 18343 } 18344 } 18345 18346 func schema_k8sio_api_networking_v1_NetworkPolicyIngressRule(ref common.ReferenceCallback) common.OpenAPIDefinition { 18347 return common.OpenAPIDefinition{ 18348 Schema: spec.Schema{ 18349 SchemaProps: spec.SchemaProps{ 18350 Description: "NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from.", 18351 Type: []string{"object"}, 18352 Properties: map[string]spec.Schema{ 18353 "ports": { 18354 SchemaProps: spec.SchemaProps{ 18355 Description: "ports is a list of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.", 18356 Type: []string{"array"}, 18357 Items: &spec.SchemaOrArray{ 18358 Schema: &spec.Schema{ 18359 SchemaProps: spec.SchemaProps{ 18360 Default: map[string]interface{}{}, 18361 Ref: ref("k8s.io/api/networking/v1.NetworkPolicyPort"), 18362 }, 18363 }, 18364 }, 18365 }, 18366 }, 18367 "from": { 18368 SchemaProps: spec.SchemaProps{ 18369 Description: "from is a list of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list.", 18370 Type: []string{"array"}, 18371 Items: &spec.SchemaOrArray{ 18372 Schema: &spec.Schema{ 18373 SchemaProps: spec.SchemaProps{ 18374 Default: map[string]interface{}{}, 18375 Ref: ref("k8s.io/api/networking/v1.NetworkPolicyPeer"), 18376 }, 18377 }, 18378 }, 18379 }, 18380 }, 18381 }, 18382 }, 18383 }, 18384 Dependencies: []string{ 18385 "k8s.io/api/networking/v1.NetworkPolicyPeer", "k8s.io/api/networking/v1.NetworkPolicyPort"}, 18386 } 18387 } 18388 18389 func schema_k8sio_api_networking_v1_NetworkPolicyList(ref common.ReferenceCallback) common.OpenAPIDefinition { 18390 return common.OpenAPIDefinition{ 18391 Schema: spec.Schema{ 18392 SchemaProps: spec.SchemaProps{ 18393 Description: "NetworkPolicyList is a list of NetworkPolicy objects.", 18394 Type: []string{"object"}, 18395 Properties: map[string]spec.Schema{ 18396 "kind": { 18397 SchemaProps: spec.SchemaProps{ 18398 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 18399 Type: []string{"string"}, 18400 Format: "", 18401 }, 18402 }, 18403 "apiVersion": { 18404 SchemaProps: spec.SchemaProps{ 18405 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 18406 Type: []string{"string"}, 18407 Format: "", 18408 }, 18409 }, 18410 "metadata": { 18411 SchemaProps: spec.SchemaProps{ 18412 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 18413 Default: map[string]interface{}{}, 18414 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 18415 }, 18416 }, 18417 "items": { 18418 SchemaProps: spec.SchemaProps{ 18419 Description: "items is a list of schema objects.", 18420 Type: []string{"array"}, 18421 Items: &spec.SchemaOrArray{ 18422 Schema: &spec.Schema{ 18423 SchemaProps: spec.SchemaProps{ 18424 Default: map[string]interface{}{}, 18425 Ref: ref("k8s.io/api/networking/v1.NetworkPolicy"), 18426 }, 18427 }, 18428 }, 18429 }, 18430 }, 18431 }, 18432 Required: []string{"items"}, 18433 }, 18434 }, 18435 Dependencies: []string{ 18436 "k8s.io/api/networking/v1.NetworkPolicy", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 18437 } 18438 } 18439 18440 func schema_k8sio_api_networking_v1_NetworkPolicyPeer(ref common.ReferenceCallback) common.OpenAPIDefinition { 18441 return common.OpenAPIDefinition{ 18442 Schema: spec.Schema{ 18443 SchemaProps: spec.SchemaProps{ 18444 Description: "NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed", 18445 Type: []string{"object"}, 18446 Properties: map[string]spec.Schema{ 18447 "podSelector": { 18448 SchemaProps: spec.SchemaProps{ 18449 Description: "podSelector is a label selector which selects pods. This field follows standard label selector semantics; if present but empty, it selects all pods.\n\nIf namespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the pods matching podSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the pods matching podSelector in the policy's own namespace.", 18450 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), 18451 }, 18452 }, 18453 "namespaceSelector": { 18454 SchemaProps: spec.SchemaProps{ 18455 Description: "namespaceSelector selects namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces.\n\nIf podSelector is also set, then the NetworkPolicyPeer as a whole selects the pods matching podSelector in the namespaces selected by namespaceSelector. Otherwise it selects all pods in the namespaces selected by namespaceSelector.", 18456 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), 18457 }, 18458 }, 18459 "ipBlock": { 18460 SchemaProps: spec.SchemaProps{ 18461 Description: "ipBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be.", 18462 Ref: ref("k8s.io/api/networking/v1.IPBlock"), 18463 }, 18464 }, 18465 }, 18466 }, 18467 }, 18468 Dependencies: []string{ 18469 "k8s.io/api/networking/v1.IPBlock", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, 18470 } 18471 } 18472 18473 func schema_k8sio_api_networking_v1_NetworkPolicyPort(ref common.ReferenceCallback) common.OpenAPIDefinition { 18474 return common.OpenAPIDefinition{ 18475 Schema: spec.Schema{ 18476 SchemaProps: spec.SchemaProps{ 18477 Description: "NetworkPolicyPort describes a port to allow traffic on", 18478 Type: []string{"object"}, 18479 Properties: map[string]spec.Schema{ 18480 "protocol": { 18481 SchemaProps: spec.SchemaProps{ 18482 Description: "protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field 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.", 18483 Type: []string{"string"}, 18484 Format: "", 18485 Enum: []interface{}{"SCTP", "TCP", "UDP"}, 18486 }, 18487 }, 18488 "port": { 18489 SchemaProps: spec.SchemaProps{ 18490 Description: "port represents the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched.", 18491 Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), 18492 }, 18493 }, 18494 "endPort": { 18495 SchemaProps: spec.SchemaProps{ 18496 Description: "endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port.", 18497 Type: []string{"integer"}, 18498 Format: "int32", 18499 }, 18500 }, 18501 }, 18502 }, 18503 }, 18504 Dependencies: []string{ 18505 "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, 18506 } 18507 } 18508 18509 func schema_k8sio_api_networking_v1_NetworkPolicySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 18510 return common.OpenAPIDefinition{ 18511 Schema: spec.Schema{ 18512 SchemaProps: spec.SchemaProps{ 18513 Description: "NetworkPolicySpec provides the specification of a NetworkPolicy", 18514 Type: []string{"object"}, 18515 Properties: map[string]spec.Schema{ 18516 "podSelector": { 18517 SchemaProps: spec.SchemaProps{ 18518 Description: "podSelector selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace.", 18519 Default: map[string]interface{}{}, 18520 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), 18521 }, 18522 }, 18523 "ingress": { 18524 SchemaProps: spec.SchemaProps{ 18525 Description: "ingress is a list of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default)", 18526 Type: []string{"array"}, 18527 Items: &spec.SchemaOrArray{ 18528 Schema: &spec.Schema{ 18529 SchemaProps: spec.SchemaProps{ 18530 Default: map[string]interface{}{}, 18531 Ref: ref("k8s.io/api/networking/v1.NetworkPolicyIngressRule"), 18532 }, 18533 }, 18534 }, 18535 }, 18536 }, 18537 "egress": { 18538 SchemaProps: spec.SchemaProps{ 18539 Description: "egress is a list of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8", 18540 Type: []string{"array"}, 18541 Items: &spec.SchemaOrArray{ 18542 Schema: &spec.Schema{ 18543 SchemaProps: spec.SchemaProps{ 18544 Default: map[string]interface{}{}, 18545 Ref: ref("k8s.io/api/networking/v1.NetworkPolicyEgressRule"), 18546 }, 18547 }, 18548 }, 18549 }, 18550 }, 18551 "policyTypes": { 18552 SchemaProps: spec.SchemaProps{ 18553 Description: "policyTypes is a list of rule types that the NetworkPolicy relates to. Valid options are [\"Ingress\"], [\"Egress\"], or [\"Ingress\", \"Egress\"]. If this field is not specified, it will default based on the existence of ingress or egress rules; policies that contain an egress section are assumed to affect egress, and all policies (whether or not they contain an ingress section) are assumed to affect ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8", 18554 Type: []string{"array"}, 18555 Items: &spec.SchemaOrArray{ 18556 Schema: &spec.Schema{ 18557 SchemaProps: spec.SchemaProps{ 18558 Default: "", 18559 Type: []string{"string"}, 18560 Format: "", 18561 }, 18562 }, 18563 }, 18564 }, 18565 }, 18566 }, 18567 Required: []string{"podSelector"}, 18568 }, 18569 }, 18570 Dependencies: []string{ 18571 "k8s.io/api/networking/v1.NetworkPolicyEgressRule", "k8s.io/api/networking/v1.NetworkPolicyIngressRule", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, 18572 } 18573 } 18574 18575 func schema_k8sio_api_networking_v1_NetworkPolicyStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 18576 return common.OpenAPIDefinition{ 18577 Schema: spec.Schema{ 18578 SchemaProps: spec.SchemaProps{ 18579 Description: "NetworkPolicyStatus describes the current state of the NetworkPolicy.", 18580 Type: []string{"object"}, 18581 Properties: map[string]spec.Schema{ 18582 "conditions": { 18583 VendorExtensible: spec.VendorExtensible{ 18584 Extensions: spec.Extensions{ 18585 "x-kubernetes-list-map-keys": []interface{}{ 18586 "type", 18587 }, 18588 "x-kubernetes-list-type": "map", 18589 "x-kubernetes-patch-merge-key": "type", 18590 "x-kubernetes-patch-strategy": "merge", 18591 }, 18592 }, 18593 SchemaProps: spec.SchemaProps{ 18594 Description: "conditions holds an array of metav1.Condition that describe the state of the NetworkPolicy. Current service state", 18595 Type: []string{"array"}, 18596 Items: &spec.SchemaOrArray{ 18597 Schema: &spec.Schema{ 18598 SchemaProps: spec.SchemaProps{ 18599 Default: map[string]interface{}{}, 18600 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Condition"), 18601 }, 18602 }, 18603 }, 18604 }, 18605 }, 18606 }, 18607 }, 18608 }, 18609 Dependencies: []string{ 18610 "k8s.io/apimachinery/pkg/apis/meta/v1.Condition"}, 18611 } 18612 } 18613 18614 func schema_k8sio_api_networking_v1_ServiceBackendPort(ref common.ReferenceCallback) common.OpenAPIDefinition { 18615 return common.OpenAPIDefinition{ 18616 Schema: spec.Schema{ 18617 SchemaProps: spec.SchemaProps{ 18618 Description: "ServiceBackendPort is the service port being referenced.", 18619 Type: []string{"object"}, 18620 Properties: map[string]spec.Schema{ 18621 "name": { 18622 SchemaProps: spec.SchemaProps{ 18623 Description: "name is the name of the port on the Service. This is a mutually exclusive setting with \"Number\".", 18624 Type: []string{"string"}, 18625 Format: "", 18626 }, 18627 }, 18628 "number": { 18629 SchemaProps: spec.SchemaProps{ 18630 Description: "number is the numerical port number (e.g. 80) on the Service. This is a mutually exclusive setting with \"Name\".", 18631 Type: []string{"integer"}, 18632 Format: "int32", 18633 }, 18634 }, 18635 }, 18636 }, 18637 }, 18638 } 18639 } 18640 18641 func schema_pkg_apis_meta_v1_APIGroup(ref common.ReferenceCallback) common.OpenAPIDefinition { 18642 return common.OpenAPIDefinition{ 18643 Schema: spec.Schema{ 18644 SchemaProps: spec.SchemaProps{ 18645 Description: "APIGroup contains the name, the supported versions, and the preferred version of a group.", 18646 Type: []string{"object"}, 18647 Properties: map[string]spec.Schema{ 18648 "kind": { 18649 SchemaProps: spec.SchemaProps{ 18650 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 18651 Type: []string{"string"}, 18652 Format: "", 18653 }, 18654 }, 18655 "apiVersion": { 18656 SchemaProps: spec.SchemaProps{ 18657 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 18658 Type: []string{"string"}, 18659 Format: "", 18660 }, 18661 }, 18662 "name": { 18663 SchemaProps: spec.SchemaProps{ 18664 Description: "name is the name of the group.", 18665 Default: "", 18666 Type: []string{"string"}, 18667 Format: "", 18668 }, 18669 }, 18670 "versions": { 18671 SchemaProps: spec.SchemaProps{ 18672 Description: "versions are the versions supported in this group.", 18673 Type: []string{"array"}, 18674 Items: &spec.SchemaOrArray{ 18675 Schema: &spec.Schema{ 18676 SchemaProps: spec.SchemaProps{ 18677 Default: map[string]interface{}{}, 18678 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery"), 18679 }, 18680 }, 18681 }, 18682 }, 18683 }, 18684 "preferredVersion": { 18685 SchemaProps: spec.SchemaProps{ 18686 Description: "preferredVersion is the version preferred by the API server, which probably is the storage version.", 18687 Default: map[string]interface{}{}, 18688 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery"), 18689 }, 18690 }, 18691 "serverAddressByClientCIDRs": { 18692 SchemaProps: spec.SchemaProps{ 18693 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.", 18694 Type: []string{"array"}, 18695 Items: &spec.SchemaOrArray{ 18696 Schema: &spec.Schema{ 18697 SchemaProps: spec.SchemaProps{ 18698 Default: map[string]interface{}{}, 18699 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"), 18700 }, 18701 }, 18702 }, 18703 }, 18704 }, 18705 }, 18706 Required: []string{"name", "versions"}, 18707 }, 18708 }, 18709 Dependencies: []string{ 18710 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery", "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"}, 18711 } 18712 } 18713 18714 func schema_pkg_apis_meta_v1_APIGroupList(ref common.ReferenceCallback) common.OpenAPIDefinition { 18715 return common.OpenAPIDefinition{ 18716 Schema: spec.Schema{ 18717 SchemaProps: spec.SchemaProps{ 18718 Description: "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.", 18719 Type: []string{"object"}, 18720 Properties: map[string]spec.Schema{ 18721 "kind": { 18722 SchemaProps: spec.SchemaProps{ 18723 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 18724 Type: []string{"string"}, 18725 Format: "", 18726 }, 18727 }, 18728 "apiVersion": { 18729 SchemaProps: spec.SchemaProps{ 18730 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 18731 Type: []string{"string"}, 18732 Format: "", 18733 }, 18734 }, 18735 "groups": { 18736 SchemaProps: spec.SchemaProps{ 18737 Description: "groups is a list of APIGroup.", 18738 Type: []string{"array"}, 18739 Items: &spec.SchemaOrArray{ 18740 Schema: &spec.Schema{ 18741 SchemaProps: spec.SchemaProps{ 18742 Default: map[string]interface{}{}, 18743 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup"), 18744 }, 18745 }, 18746 }, 18747 }, 18748 }, 18749 }, 18750 Required: []string{"groups"}, 18751 }, 18752 }, 18753 Dependencies: []string{ 18754 "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup"}, 18755 } 18756 } 18757 18758 func schema_pkg_apis_meta_v1_APIResource(ref common.ReferenceCallback) common.OpenAPIDefinition { 18759 return common.OpenAPIDefinition{ 18760 Schema: spec.Schema{ 18761 SchemaProps: spec.SchemaProps{ 18762 Description: "APIResource specifies the name of a resource and whether it is namespaced.", 18763 Type: []string{"object"}, 18764 Properties: map[string]spec.Schema{ 18765 "name": { 18766 SchemaProps: spec.SchemaProps{ 18767 Description: "name is the plural name of the resource.", 18768 Default: "", 18769 Type: []string{"string"}, 18770 Format: "", 18771 }, 18772 }, 18773 "singularName": { 18774 SchemaProps: spec.SchemaProps{ 18775 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.", 18776 Default: "", 18777 Type: []string{"string"}, 18778 Format: "", 18779 }, 18780 }, 18781 "namespaced": { 18782 SchemaProps: spec.SchemaProps{ 18783 Description: "namespaced indicates if a resource is namespaced or not.", 18784 Default: false, 18785 Type: []string{"boolean"}, 18786 Format: "", 18787 }, 18788 }, 18789 "group": { 18790 SchemaProps: spec.SchemaProps{ 18791 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\".", 18792 Type: []string{"string"}, 18793 Format: "", 18794 }, 18795 }, 18796 "version": { 18797 SchemaProps: spec.SchemaProps{ 18798 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)\".", 18799 Type: []string{"string"}, 18800 Format: "", 18801 }, 18802 }, 18803 "kind": { 18804 SchemaProps: spec.SchemaProps{ 18805 Description: "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')", 18806 Default: "", 18807 Type: []string{"string"}, 18808 Format: "", 18809 }, 18810 }, 18811 "verbs": { 18812 SchemaProps: spec.SchemaProps{ 18813 Description: "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)", 18814 Type: []string{"array"}, 18815 Items: &spec.SchemaOrArray{ 18816 Schema: &spec.Schema{ 18817 SchemaProps: spec.SchemaProps{ 18818 Default: "", 18819 Type: []string{"string"}, 18820 Format: "", 18821 }, 18822 }, 18823 }, 18824 }, 18825 }, 18826 "shortNames": { 18827 SchemaProps: spec.SchemaProps{ 18828 Description: "shortNames is a list of suggested short names of the resource.", 18829 Type: []string{"array"}, 18830 Items: &spec.SchemaOrArray{ 18831 Schema: &spec.Schema{ 18832 SchemaProps: spec.SchemaProps{ 18833 Default: "", 18834 Type: []string{"string"}, 18835 Format: "", 18836 }, 18837 }, 18838 }, 18839 }, 18840 }, 18841 "categories": { 18842 SchemaProps: spec.SchemaProps{ 18843 Description: "categories is a list of the grouped resources this resource belongs to (e.g. 'all')", 18844 Type: []string{"array"}, 18845 Items: &spec.SchemaOrArray{ 18846 Schema: &spec.Schema{ 18847 SchemaProps: spec.SchemaProps{ 18848 Default: "", 18849 Type: []string{"string"}, 18850 Format: "", 18851 }, 18852 }, 18853 }, 18854 }, 18855 }, 18856 "storageVersionHash": { 18857 SchemaProps: spec.SchemaProps{ 18858 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.", 18859 Type: []string{"string"}, 18860 Format: "", 18861 }, 18862 }, 18863 }, 18864 Required: []string{"name", "singularName", "namespaced", "kind", "verbs"}, 18865 }, 18866 }, 18867 } 18868 } 18869 18870 func schema_pkg_apis_meta_v1_APIResourceList(ref common.ReferenceCallback) common.OpenAPIDefinition { 18871 return common.OpenAPIDefinition{ 18872 Schema: spec.Schema{ 18873 SchemaProps: spec.SchemaProps{ 18874 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.", 18875 Type: []string{"object"}, 18876 Properties: map[string]spec.Schema{ 18877 "kind": { 18878 SchemaProps: spec.SchemaProps{ 18879 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 18880 Type: []string{"string"}, 18881 Format: "", 18882 }, 18883 }, 18884 "apiVersion": { 18885 SchemaProps: spec.SchemaProps{ 18886 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 18887 Type: []string{"string"}, 18888 Format: "", 18889 }, 18890 }, 18891 "groupVersion": { 18892 SchemaProps: spec.SchemaProps{ 18893 Description: "groupVersion is the group and version this APIResourceList is for.", 18894 Default: "", 18895 Type: []string{"string"}, 18896 Format: "", 18897 }, 18898 }, 18899 "resources": { 18900 SchemaProps: spec.SchemaProps{ 18901 Description: "resources contains the name of the resources and if they are namespaced.", 18902 Type: []string{"array"}, 18903 Items: &spec.SchemaOrArray{ 18904 Schema: &spec.Schema{ 18905 SchemaProps: spec.SchemaProps{ 18906 Default: map[string]interface{}{}, 18907 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.APIResource"), 18908 }, 18909 }, 18910 }, 18911 }, 18912 }, 18913 }, 18914 Required: []string{"groupVersion", "resources"}, 18915 }, 18916 }, 18917 Dependencies: []string{ 18918 "k8s.io/apimachinery/pkg/apis/meta/v1.APIResource"}, 18919 } 18920 } 18921 18922 func schema_pkg_apis_meta_v1_APIVersions(ref common.ReferenceCallback) common.OpenAPIDefinition { 18923 return common.OpenAPIDefinition{ 18924 Schema: spec.Schema{ 18925 SchemaProps: spec.SchemaProps{ 18926 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.", 18927 Type: []string{"object"}, 18928 Properties: map[string]spec.Schema{ 18929 "kind": { 18930 SchemaProps: spec.SchemaProps{ 18931 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 18932 Type: []string{"string"}, 18933 Format: "", 18934 }, 18935 }, 18936 "apiVersion": { 18937 SchemaProps: spec.SchemaProps{ 18938 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 18939 Type: []string{"string"}, 18940 Format: "", 18941 }, 18942 }, 18943 "versions": { 18944 SchemaProps: spec.SchemaProps{ 18945 Description: "versions are the api versions that are available.", 18946 Type: []string{"array"}, 18947 Items: &spec.SchemaOrArray{ 18948 Schema: &spec.Schema{ 18949 SchemaProps: spec.SchemaProps{ 18950 Default: "", 18951 Type: []string{"string"}, 18952 Format: "", 18953 }, 18954 }, 18955 }, 18956 }, 18957 }, 18958 "serverAddressByClientCIDRs": { 18959 SchemaProps: spec.SchemaProps{ 18960 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.", 18961 Type: []string{"array"}, 18962 Items: &spec.SchemaOrArray{ 18963 Schema: &spec.Schema{ 18964 SchemaProps: spec.SchemaProps{ 18965 Default: map[string]interface{}{}, 18966 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"), 18967 }, 18968 }, 18969 }, 18970 }, 18971 }, 18972 }, 18973 Required: []string{"versions", "serverAddressByClientCIDRs"}, 18974 }, 18975 }, 18976 Dependencies: []string{ 18977 "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"}, 18978 } 18979 } 18980 18981 func schema_pkg_apis_meta_v1_ApplyOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 18982 return common.OpenAPIDefinition{ 18983 Schema: spec.Schema{ 18984 SchemaProps: spec.SchemaProps{ 18985 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.", 18986 Type: []string{"object"}, 18987 Properties: map[string]spec.Schema{ 18988 "kind": { 18989 SchemaProps: spec.SchemaProps{ 18990 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 18991 Type: []string{"string"}, 18992 Format: "", 18993 }, 18994 }, 18995 "apiVersion": { 18996 SchemaProps: spec.SchemaProps{ 18997 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 18998 Type: []string{"string"}, 18999 Format: "", 19000 }, 19001 }, 19002 "dryRun": { 19003 SchemaProps: spec.SchemaProps{ 19004 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", 19005 Type: []string{"array"}, 19006 Items: &spec.SchemaOrArray{ 19007 Schema: &spec.Schema{ 19008 SchemaProps: spec.SchemaProps{ 19009 Default: "", 19010 Type: []string{"string"}, 19011 Format: "", 19012 }, 19013 }, 19014 }, 19015 }, 19016 }, 19017 "force": { 19018 SchemaProps: spec.SchemaProps{ 19019 Description: "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people.", 19020 Default: false, 19021 Type: []string{"boolean"}, 19022 Format: "", 19023 }, 19024 }, 19025 "fieldManager": { 19026 SchemaProps: spec.SchemaProps{ 19027 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.", 19028 Default: "", 19029 Type: []string{"string"}, 19030 Format: "", 19031 }, 19032 }, 19033 }, 19034 Required: []string{"force", "fieldManager"}, 19035 }, 19036 }, 19037 } 19038 } 19039 19040 func schema_pkg_apis_meta_v1_Condition(ref common.ReferenceCallback) common.OpenAPIDefinition { 19041 return common.OpenAPIDefinition{ 19042 Schema: spec.Schema{ 19043 SchemaProps: spec.SchemaProps{ 19044 Description: "Condition contains details for one aspect of the current state of this API Resource.", 19045 Type: []string{"object"}, 19046 Properties: map[string]spec.Schema{ 19047 "type": { 19048 SchemaProps: spec.SchemaProps{ 19049 Description: "type of condition in CamelCase or in foo.example.com/CamelCase.", 19050 Default: "", 19051 Type: []string{"string"}, 19052 Format: "", 19053 }, 19054 }, 19055 "status": { 19056 SchemaProps: spec.SchemaProps{ 19057 Description: "status of the condition, one of True, False, Unknown.", 19058 Default: "", 19059 Type: []string{"string"}, 19060 Format: "", 19061 }, 19062 }, 19063 "observedGeneration": { 19064 SchemaProps: spec.SchemaProps{ 19065 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.", 19066 Type: []string{"integer"}, 19067 Format: "int64", 19068 }, 19069 }, 19070 "lastTransitionTime": { 19071 SchemaProps: spec.SchemaProps{ 19072 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.", 19073 Default: map[string]interface{}{}, 19074 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 19075 }, 19076 }, 19077 "reason": { 19078 SchemaProps: spec.SchemaProps{ 19079 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.", 19080 Default: "", 19081 Type: []string{"string"}, 19082 Format: "", 19083 }, 19084 }, 19085 "message": { 19086 SchemaProps: spec.SchemaProps{ 19087 Description: "message is a human readable message indicating details about the transition. This may be an empty string.", 19088 Default: "", 19089 Type: []string{"string"}, 19090 Format: "", 19091 }, 19092 }, 19093 }, 19094 Required: []string{"type", "status", "lastTransitionTime", "reason", "message"}, 19095 }, 19096 }, 19097 Dependencies: []string{ 19098 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 19099 } 19100 } 19101 19102 func schema_pkg_apis_meta_v1_CreateOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 19103 return common.OpenAPIDefinition{ 19104 Schema: spec.Schema{ 19105 SchemaProps: spec.SchemaProps{ 19106 Description: "CreateOptions may be provided when creating an API object.", 19107 Type: []string{"object"}, 19108 Properties: map[string]spec.Schema{ 19109 "kind": { 19110 SchemaProps: spec.SchemaProps{ 19111 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 19112 Type: []string{"string"}, 19113 Format: "", 19114 }, 19115 }, 19116 "apiVersion": { 19117 SchemaProps: spec.SchemaProps{ 19118 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 19119 Type: []string{"string"}, 19120 Format: "", 19121 }, 19122 }, 19123 "dryRun": { 19124 SchemaProps: spec.SchemaProps{ 19125 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", 19126 Type: []string{"array"}, 19127 Items: &spec.SchemaOrArray{ 19128 Schema: &spec.Schema{ 19129 SchemaProps: spec.SchemaProps{ 19130 Default: "", 19131 Type: []string{"string"}, 19132 Format: "", 19133 }, 19134 }, 19135 }, 19136 }, 19137 }, 19138 "fieldManager": { 19139 SchemaProps: spec.SchemaProps{ 19140 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.", 19141 Type: []string{"string"}, 19142 Format: "", 19143 }, 19144 }, 19145 "fieldValidation": { 19146 SchemaProps: spec.SchemaProps{ 19147 Description: "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. 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. - 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 in v1.23+ - 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.", 19148 Type: []string{"string"}, 19149 Format: "", 19150 }, 19151 }, 19152 }, 19153 }, 19154 }, 19155 } 19156 } 19157 19158 func schema_pkg_apis_meta_v1_DeleteOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 19159 return common.OpenAPIDefinition{ 19160 Schema: spec.Schema{ 19161 SchemaProps: spec.SchemaProps{ 19162 Description: "DeleteOptions may be provided when deleting an API object.", 19163 Type: []string{"object"}, 19164 Properties: map[string]spec.Schema{ 19165 "kind": { 19166 SchemaProps: spec.SchemaProps{ 19167 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 19168 Type: []string{"string"}, 19169 Format: "", 19170 }, 19171 }, 19172 "apiVersion": { 19173 SchemaProps: spec.SchemaProps{ 19174 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 19175 Type: []string{"string"}, 19176 Format: "", 19177 }, 19178 }, 19179 "gracePeriodSeconds": { 19180 SchemaProps: spec.SchemaProps{ 19181 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.", 19182 Type: []string{"integer"}, 19183 Format: "int64", 19184 }, 19185 }, 19186 "preconditions": { 19187 SchemaProps: spec.SchemaProps{ 19188 Description: "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned.", 19189 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions"), 19190 }, 19191 }, 19192 "orphanDependents": { 19193 SchemaProps: spec.SchemaProps{ 19194 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.", 19195 Type: []string{"boolean"}, 19196 Format: "", 19197 }, 19198 }, 19199 "propagationPolicy": { 19200 SchemaProps: spec.SchemaProps{ 19201 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.", 19202 Type: []string{"string"}, 19203 Format: "", 19204 }, 19205 }, 19206 "dryRun": { 19207 SchemaProps: spec.SchemaProps{ 19208 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", 19209 Type: []string{"array"}, 19210 Items: &spec.SchemaOrArray{ 19211 Schema: &spec.Schema{ 19212 SchemaProps: spec.SchemaProps{ 19213 Default: "", 19214 Type: []string{"string"}, 19215 Format: "", 19216 }, 19217 }, 19218 }, 19219 }, 19220 }, 19221 }, 19222 }, 19223 }, 19224 Dependencies: []string{ 19225 "k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions"}, 19226 } 19227 } 19228 19229 func schema_pkg_apis_meta_v1_Duration(ref common.ReferenceCallback) common.OpenAPIDefinition { 19230 return common.OpenAPIDefinition{ 19231 Schema: spec.Schema{ 19232 SchemaProps: spec.SchemaProps{ 19233 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.", 19234 Type: v1.Duration{}.OpenAPISchemaType(), 19235 Format: v1.Duration{}.OpenAPISchemaFormat(), 19236 }, 19237 }, 19238 } 19239 } 19240 19241 func schema_pkg_apis_meta_v1_FieldsV1(ref common.ReferenceCallback) common.OpenAPIDefinition { 19242 return common.OpenAPIDefinition{ 19243 Schema: spec.Schema{ 19244 SchemaProps: spec.SchemaProps{ 19245 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", 19246 Type: []string{"object"}, 19247 }, 19248 }, 19249 } 19250 } 19251 19252 func schema_pkg_apis_meta_v1_GetOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 19253 return common.OpenAPIDefinition{ 19254 Schema: spec.Schema{ 19255 SchemaProps: spec.SchemaProps{ 19256 Description: "GetOptions is the standard query options to the standard REST get call.", 19257 Type: []string{"object"}, 19258 Properties: map[string]spec.Schema{ 19259 "kind": { 19260 SchemaProps: spec.SchemaProps{ 19261 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 19262 Type: []string{"string"}, 19263 Format: "", 19264 }, 19265 }, 19266 "apiVersion": { 19267 SchemaProps: spec.SchemaProps{ 19268 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 19269 Type: []string{"string"}, 19270 Format: "", 19271 }, 19272 }, 19273 "resourceVersion": { 19274 SchemaProps: spec.SchemaProps{ 19275 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", 19276 Type: []string{"string"}, 19277 Format: "", 19278 }, 19279 }, 19280 }, 19281 }, 19282 }, 19283 } 19284 } 19285 19286 func schema_pkg_apis_meta_v1_GroupKind(ref common.ReferenceCallback) common.OpenAPIDefinition { 19287 return common.OpenAPIDefinition{ 19288 Schema: spec.Schema{ 19289 SchemaProps: spec.SchemaProps{ 19290 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", 19291 Type: []string{"object"}, 19292 Properties: map[string]spec.Schema{ 19293 "group": { 19294 SchemaProps: spec.SchemaProps{ 19295 Default: "", 19296 Type: []string{"string"}, 19297 Format: "", 19298 }, 19299 }, 19300 "kind": { 19301 SchemaProps: spec.SchemaProps{ 19302 Default: "", 19303 Type: []string{"string"}, 19304 Format: "", 19305 }, 19306 }, 19307 }, 19308 Required: []string{"group", "kind"}, 19309 }, 19310 }, 19311 } 19312 } 19313 19314 func schema_pkg_apis_meta_v1_GroupResource(ref common.ReferenceCallback) common.OpenAPIDefinition { 19315 return common.OpenAPIDefinition{ 19316 Schema: spec.Schema{ 19317 SchemaProps: spec.SchemaProps{ 19318 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", 19319 Type: []string{"object"}, 19320 Properties: map[string]spec.Schema{ 19321 "group": { 19322 SchemaProps: spec.SchemaProps{ 19323 Default: "", 19324 Type: []string{"string"}, 19325 Format: "", 19326 }, 19327 }, 19328 "resource": { 19329 SchemaProps: spec.SchemaProps{ 19330 Default: "", 19331 Type: []string{"string"}, 19332 Format: "", 19333 }, 19334 }, 19335 }, 19336 Required: []string{"group", "resource"}, 19337 }, 19338 }, 19339 } 19340 } 19341 19342 func schema_pkg_apis_meta_v1_GroupVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { 19343 return common.OpenAPIDefinition{ 19344 Schema: spec.Schema{ 19345 SchemaProps: spec.SchemaProps{ 19346 Description: "GroupVersion contains the \"group\" and the \"version\", which uniquely identifies the API.", 19347 Type: []string{"object"}, 19348 Properties: map[string]spec.Schema{ 19349 "group": { 19350 SchemaProps: spec.SchemaProps{ 19351 Default: "", 19352 Type: []string{"string"}, 19353 Format: "", 19354 }, 19355 }, 19356 "version": { 19357 SchemaProps: spec.SchemaProps{ 19358 Default: "", 19359 Type: []string{"string"}, 19360 Format: "", 19361 }, 19362 }, 19363 }, 19364 Required: []string{"group", "version"}, 19365 }, 19366 }, 19367 } 19368 } 19369 19370 func schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref common.ReferenceCallback) common.OpenAPIDefinition { 19371 return common.OpenAPIDefinition{ 19372 Schema: spec.Schema{ 19373 SchemaProps: spec.SchemaProps{ 19374 Description: "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.", 19375 Type: []string{"object"}, 19376 Properties: map[string]spec.Schema{ 19377 "groupVersion": { 19378 SchemaProps: spec.SchemaProps{ 19379 Description: "groupVersion specifies the API group and version in the form \"group/version\"", 19380 Default: "", 19381 Type: []string{"string"}, 19382 Format: "", 19383 }, 19384 }, 19385 "version": { 19386 SchemaProps: spec.SchemaProps{ 19387 Description: "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.", 19388 Default: "", 19389 Type: []string{"string"}, 19390 Format: "", 19391 }, 19392 }, 19393 }, 19394 Required: []string{"groupVersion", "version"}, 19395 }, 19396 }, 19397 } 19398 } 19399 19400 func schema_pkg_apis_meta_v1_GroupVersionKind(ref common.ReferenceCallback) common.OpenAPIDefinition { 19401 return common.OpenAPIDefinition{ 19402 Schema: spec.Schema{ 19403 SchemaProps: spec.SchemaProps{ 19404 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", 19405 Type: []string{"object"}, 19406 Properties: map[string]spec.Schema{ 19407 "group": { 19408 SchemaProps: spec.SchemaProps{ 19409 Default: "", 19410 Type: []string{"string"}, 19411 Format: "", 19412 }, 19413 }, 19414 "version": { 19415 SchemaProps: spec.SchemaProps{ 19416 Default: "", 19417 Type: []string{"string"}, 19418 Format: "", 19419 }, 19420 }, 19421 "kind": { 19422 SchemaProps: spec.SchemaProps{ 19423 Default: "", 19424 Type: []string{"string"}, 19425 Format: "", 19426 }, 19427 }, 19428 }, 19429 Required: []string{"group", "version", "kind"}, 19430 }, 19431 }, 19432 } 19433 } 19434 19435 func schema_pkg_apis_meta_v1_GroupVersionResource(ref common.ReferenceCallback) common.OpenAPIDefinition { 19436 return common.OpenAPIDefinition{ 19437 Schema: spec.Schema{ 19438 SchemaProps: spec.SchemaProps{ 19439 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", 19440 Type: []string{"object"}, 19441 Properties: map[string]spec.Schema{ 19442 "group": { 19443 SchemaProps: spec.SchemaProps{ 19444 Default: "", 19445 Type: []string{"string"}, 19446 Format: "", 19447 }, 19448 }, 19449 "version": { 19450 SchemaProps: spec.SchemaProps{ 19451 Default: "", 19452 Type: []string{"string"}, 19453 Format: "", 19454 }, 19455 }, 19456 "resource": { 19457 SchemaProps: spec.SchemaProps{ 19458 Default: "", 19459 Type: []string{"string"}, 19460 Format: "", 19461 }, 19462 }, 19463 }, 19464 Required: []string{"group", "version", "resource"}, 19465 }, 19466 }, 19467 } 19468 } 19469 19470 func schema_pkg_apis_meta_v1_InternalEvent(ref common.ReferenceCallback) common.OpenAPIDefinition { 19471 return common.OpenAPIDefinition{ 19472 Schema: spec.Schema{ 19473 SchemaProps: spec.SchemaProps{ 19474 Description: "InternalEvent makes watch.Event versioned", 19475 Type: []string{"object"}, 19476 Properties: map[string]spec.Schema{ 19477 "Type": { 19478 SchemaProps: spec.SchemaProps{ 19479 Default: "", 19480 Type: []string{"string"}, 19481 Format: "", 19482 }, 19483 }, 19484 "Object": { 19485 SchemaProps: spec.SchemaProps{ 19486 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.", 19487 Ref: ref("k8s.io/apimachinery/pkg/runtime.Object"), 19488 }, 19489 }, 19490 }, 19491 Required: []string{"Type", "Object"}, 19492 }, 19493 }, 19494 Dependencies: []string{ 19495 "k8s.io/apimachinery/pkg/runtime.Object"}, 19496 } 19497 } 19498 19499 func schema_pkg_apis_meta_v1_LabelSelector(ref common.ReferenceCallback) common.OpenAPIDefinition { 19500 return common.OpenAPIDefinition{ 19501 Schema: spec.Schema{ 19502 SchemaProps: spec.SchemaProps{ 19503 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.", 19504 Type: []string{"object"}, 19505 Properties: map[string]spec.Schema{ 19506 "matchLabels": { 19507 SchemaProps: spec.SchemaProps{ 19508 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.", 19509 Type: []string{"object"}, 19510 AdditionalProperties: &spec.SchemaOrBool{ 19511 Allows: true, 19512 Schema: &spec.Schema{ 19513 SchemaProps: spec.SchemaProps{ 19514 Default: "", 19515 Type: []string{"string"}, 19516 Format: "", 19517 }, 19518 }, 19519 }, 19520 }, 19521 }, 19522 "matchExpressions": { 19523 SchemaProps: spec.SchemaProps{ 19524 Description: "matchExpressions is a list of label selector requirements. The requirements are ANDed.", 19525 Type: []string{"array"}, 19526 Items: &spec.SchemaOrArray{ 19527 Schema: &spec.Schema{ 19528 SchemaProps: spec.SchemaProps{ 19529 Default: map[string]interface{}{}, 19530 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement"), 19531 }, 19532 }, 19533 }, 19534 }, 19535 }, 19536 }, 19537 }, 19538 VendorExtensible: spec.VendorExtensible{ 19539 Extensions: spec.Extensions{ 19540 "x-kubernetes-map-type": "atomic", 19541 }, 19542 }, 19543 }, 19544 Dependencies: []string{ 19545 "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement"}, 19546 } 19547 } 19548 19549 func schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref common.ReferenceCallback) common.OpenAPIDefinition { 19550 return common.OpenAPIDefinition{ 19551 Schema: spec.Schema{ 19552 SchemaProps: spec.SchemaProps{ 19553 Description: "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", 19554 Type: []string{"object"}, 19555 Properties: map[string]spec.Schema{ 19556 "key": { 19557 VendorExtensible: spec.VendorExtensible{ 19558 Extensions: spec.Extensions{ 19559 "x-kubernetes-patch-merge-key": "key", 19560 "x-kubernetes-patch-strategy": "merge", 19561 }, 19562 }, 19563 SchemaProps: spec.SchemaProps{ 19564 Description: "key is the label key that the selector applies to.", 19565 Default: "", 19566 Type: []string{"string"}, 19567 Format: "", 19568 }, 19569 }, 19570 "operator": { 19571 SchemaProps: spec.SchemaProps{ 19572 Description: "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.", 19573 Default: "", 19574 Type: []string{"string"}, 19575 Format: "", 19576 }, 19577 }, 19578 "values": { 19579 SchemaProps: spec.SchemaProps{ 19580 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.", 19581 Type: []string{"array"}, 19582 Items: &spec.SchemaOrArray{ 19583 Schema: &spec.Schema{ 19584 SchemaProps: spec.SchemaProps{ 19585 Default: "", 19586 Type: []string{"string"}, 19587 Format: "", 19588 }, 19589 }, 19590 }, 19591 }, 19592 }, 19593 }, 19594 Required: []string{"key", "operator"}, 19595 }, 19596 }, 19597 } 19598 } 19599 19600 func schema_pkg_apis_meta_v1_List(ref common.ReferenceCallback) common.OpenAPIDefinition { 19601 return common.OpenAPIDefinition{ 19602 Schema: spec.Schema{ 19603 SchemaProps: spec.SchemaProps{ 19604 Description: "List holds a list of objects, which may not be known by the server.", 19605 Type: []string{"object"}, 19606 Properties: map[string]spec.Schema{ 19607 "kind": { 19608 SchemaProps: spec.SchemaProps{ 19609 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 19610 Type: []string{"string"}, 19611 Format: "", 19612 }, 19613 }, 19614 "apiVersion": { 19615 SchemaProps: spec.SchemaProps{ 19616 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 19617 Type: []string{"string"}, 19618 Format: "", 19619 }, 19620 }, 19621 "metadata": { 19622 SchemaProps: spec.SchemaProps{ 19623 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 19624 Default: map[string]interface{}{}, 19625 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 19626 }, 19627 }, 19628 "items": { 19629 SchemaProps: spec.SchemaProps{ 19630 Description: "List of objects", 19631 Type: []string{"array"}, 19632 Items: &spec.SchemaOrArray{ 19633 Schema: &spec.Schema{ 19634 SchemaProps: spec.SchemaProps{ 19635 Default: map[string]interface{}{}, 19636 Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), 19637 }, 19638 }, 19639 }, 19640 }, 19641 }, 19642 }, 19643 Required: []string{"items"}, 19644 }, 19645 }, 19646 Dependencies: []string{ 19647 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/runtime.RawExtension"}, 19648 } 19649 } 19650 19651 func schema_pkg_apis_meta_v1_ListMeta(ref common.ReferenceCallback) common.OpenAPIDefinition { 19652 return common.OpenAPIDefinition{ 19653 Schema: spec.Schema{ 19654 SchemaProps: spec.SchemaProps{ 19655 Description: "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.", 19656 Type: []string{"object"}, 19657 Properties: map[string]spec.Schema{ 19658 "selfLink": { 19659 SchemaProps: spec.SchemaProps{ 19660 Description: "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", 19661 Type: []string{"string"}, 19662 Format: "", 19663 }, 19664 }, 19665 "resourceVersion": { 19666 SchemaProps: spec.SchemaProps{ 19667 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", 19668 Type: []string{"string"}, 19669 Format: "", 19670 }, 19671 }, 19672 "continue": { 19673 SchemaProps: spec.SchemaProps{ 19674 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.", 19675 Type: []string{"string"}, 19676 Format: "", 19677 }, 19678 }, 19679 "remainingItemCount": { 19680 SchemaProps: spec.SchemaProps{ 19681 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.", 19682 Type: []string{"integer"}, 19683 Format: "int64", 19684 }, 19685 }, 19686 }, 19687 }, 19688 }, 19689 } 19690 } 19691 19692 func schema_pkg_apis_meta_v1_ListOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 19693 return common.OpenAPIDefinition{ 19694 Schema: spec.Schema{ 19695 SchemaProps: spec.SchemaProps{ 19696 Description: "ListOptions is the query options to a standard REST list call.", 19697 Type: []string{"object"}, 19698 Properties: map[string]spec.Schema{ 19699 "kind": { 19700 SchemaProps: spec.SchemaProps{ 19701 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 19702 Type: []string{"string"}, 19703 Format: "", 19704 }, 19705 }, 19706 "apiVersion": { 19707 SchemaProps: spec.SchemaProps{ 19708 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 19709 Type: []string{"string"}, 19710 Format: "", 19711 }, 19712 }, 19713 "labelSelector": { 19714 SchemaProps: spec.SchemaProps{ 19715 Description: "A selector to restrict the list of returned objects by their labels. Defaults to everything.", 19716 Type: []string{"string"}, 19717 Format: "", 19718 }, 19719 }, 19720 "fieldSelector": { 19721 SchemaProps: spec.SchemaProps{ 19722 Description: "A selector to restrict the list of returned objects by their fields. Defaults to everything.", 19723 Type: []string{"string"}, 19724 Format: "", 19725 }, 19726 }, 19727 "watch": { 19728 SchemaProps: spec.SchemaProps{ 19729 Description: "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", 19730 Type: []string{"boolean"}, 19731 Format: "", 19732 }, 19733 }, 19734 "allowWatchBookmarks": { 19735 SchemaProps: spec.SchemaProps{ 19736 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.", 19737 Type: []string{"boolean"}, 19738 Format: "", 19739 }, 19740 }, 19741 "resourceVersion": { 19742 SchemaProps: spec.SchemaProps{ 19743 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", 19744 Type: []string{"string"}, 19745 Format: "", 19746 }, 19747 }, 19748 "resourceVersionMatch": { 19749 SchemaProps: spec.SchemaProps{ 19750 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", 19751 Type: []string{"string"}, 19752 Format: "", 19753 }, 19754 }, 19755 "timeoutSeconds": { 19756 SchemaProps: spec.SchemaProps{ 19757 Description: "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", 19758 Type: []string{"integer"}, 19759 Format: "int64", 19760 }, 19761 }, 19762 "limit": { 19763 SchemaProps: spec.SchemaProps{ 19764 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.", 19765 Type: []string{"integer"}, 19766 Format: "int64", 19767 }, 19768 }, 19769 "continue": { 19770 SchemaProps: spec.SchemaProps{ 19771 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.", 19772 Type: []string{"string"}, 19773 Format: "", 19774 }, 19775 }, 19776 "sendInitialEvents": { 19777 SchemaProps: spec.SchemaProps{ 19778 Description: "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", 19779 Type: []string{"boolean"}, 19780 Format: "", 19781 }, 19782 }, 19783 }, 19784 }, 19785 }, 19786 } 19787 } 19788 19789 func schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref common.ReferenceCallback) common.OpenAPIDefinition { 19790 return common.OpenAPIDefinition{ 19791 Schema: spec.Schema{ 19792 SchemaProps: spec.SchemaProps{ 19793 Description: "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.", 19794 Type: []string{"object"}, 19795 Properties: map[string]spec.Schema{ 19796 "manager": { 19797 SchemaProps: spec.SchemaProps{ 19798 Description: "Manager is an identifier of the workflow managing these fields.", 19799 Type: []string{"string"}, 19800 Format: "", 19801 }, 19802 }, 19803 "operation": { 19804 SchemaProps: spec.SchemaProps{ 19805 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'.", 19806 Type: []string{"string"}, 19807 Format: "", 19808 }, 19809 }, 19810 "apiVersion": { 19811 SchemaProps: spec.SchemaProps{ 19812 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.", 19813 Type: []string{"string"}, 19814 Format: "", 19815 }, 19816 }, 19817 "time": { 19818 SchemaProps: spec.SchemaProps{ 19819 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.", 19820 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 19821 }, 19822 }, 19823 "fieldsType": { 19824 SchemaProps: spec.SchemaProps{ 19825 Description: "FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\"", 19826 Type: []string{"string"}, 19827 Format: "", 19828 }, 19829 }, 19830 "fieldsV1": { 19831 SchemaProps: spec.SchemaProps{ 19832 Description: "FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type.", 19833 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1"), 19834 }, 19835 }, 19836 "subresource": { 19837 SchemaProps: spec.SchemaProps{ 19838 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.", 19839 Type: []string{"string"}, 19840 Format: "", 19841 }, 19842 }, 19843 }, 19844 }, 19845 }, 19846 Dependencies: []string{ 19847 "k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 19848 } 19849 } 19850 19851 func schema_pkg_apis_meta_v1_MicroTime(ref common.ReferenceCallback) common.OpenAPIDefinition { 19852 return common.OpenAPIDefinition{ 19853 Schema: spec.Schema{ 19854 SchemaProps: spec.SchemaProps{ 19855 Description: "MicroTime is version of Time with microsecond level precision.", 19856 Type: v1.MicroTime{}.OpenAPISchemaType(), 19857 Format: v1.MicroTime{}.OpenAPISchemaFormat(), 19858 }, 19859 }, 19860 } 19861 } 19862 19863 func schema_pkg_apis_meta_v1_ObjectMeta(ref common.ReferenceCallback) common.OpenAPIDefinition { 19864 return common.OpenAPIDefinition{ 19865 Schema: spec.Schema{ 19866 SchemaProps: spec.SchemaProps{ 19867 Description: "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", 19868 Type: []string{"object"}, 19869 Properties: map[string]spec.Schema{ 19870 "name": { 19871 SchemaProps: spec.SchemaProps{ 19872 Description: "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names", 19873 Type: []string{"string"}, 19874 Format: "", 19875 }, 19876 }, 19877 "generateName": { 19878 SchemaProps: spec.SchemaProps{ 19879 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", 19880 Type: []string{"string"}, 19881 Format: "", 19882 }, 19883 }, 19884 "namespace": { 19885 SchemaProps: spec.SchemaProps{ 19886 Description: "Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces", 19887 Type: []string{"string"}, 19888 Format: "", 19889 }, 19890 }, 19891 "selfLink": { 19892 SchemaProps: spec.SchemaProps{ 19893 Description: "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", 19894 Type: []string{"string"}, 19895 Format: "", 19896 }, 19897 }, 19898 "uid": { 19899 SchemaProps: spec.SchemaProps{ 19900 Description: "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids", 19901 Type: []string{"string"}, 19902 Format: "", 19903 }, 19904 }, 19905 "resourceVersion": { 19906 SchemaProps: spec.SchemaProps{ 19907 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", 19908 Type: []string{"string"}, 19909 Format: "", 19910 }, 19911 }, 19912 "generation": { 19913 SchemaProps: spec.SchemaProps{ 19914 Description: "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", 19915 Type: []string{"integer"}, 19916 Format: "int64", 19917 }, 19918 }, 19919 "creationTimestamp": { 19920 SchemaProps: spec.SchemaProps{ 19921 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", 19922 Default: map[string]interface{}{}, 19923 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 19924 }, 19925 }, 19926 "deletionTimestamp": { 19927 SchemaProps: spec.SchemaProps{ 19928 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", 19929 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 19930 }, 19931 }, 19932 "deletionGracePeriodSeconds": { 19933 SchemaProps: spec.SchemaProps{ 19934 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.", 19935 Type: []string{"integer"}, 19936 Format: "int64", 19937 }, 19938 }, 19939 "labels": { 19940 SchemaProps: spec.SchemaProps{ 19941 Description: "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels", 19942 Type: []string{"object"}, 19943 AdditionalProperties: &spec.SchemaOrBool{ 19944 Allows: true, 19945 Schema: &spec.Schema{ 19946 SchemaProps: spec.SchemaProps{ 19947 Default: "", 19948 Type: []string{"string"}, 19949 Format: "", 19950 }, 19951 }, 19952 }, 19953 }, 19954 }, 19955 "annotations": { 19956 SchemaProps: spec.SchemaProps{ 19957 Description: "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations", 19958 Type: []string{"object"}, 19959 AdditionalProperties: &spec.SchemaOrBool{ 19960 Allows: true, 19961 Schema: &spec.Schema{ 19962 SchemaProps: spec.SchemaProps{ 19963 Default: "", 19964 Type: []string{"string"}, 19965 Format: "", 19966 }, 19967 }, 19968 }, 19969 }, 19970 }, 19971 "ownerReferences": { 19972 VendorExtensible: spec.VendorExtensible{ 19973 Extensions: spec.Extensions{ 19974 "x-kubernetes-patch-merge-key": "uid", 19975 "x-kubernetes-patch-strategy": "merge", 19976 }, 19977 }, 19978 SchemaProps: spec.SchemaProps{ 19979 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.", 19980 Type: []string{"array"}, 19981 Items: &spec.SchemaOrArray{ 19982 Schema: &spec.Schema{ 19983 SchemaProps: spec.SchemaProps{ 19984 Default: map[string]interface{}{}, 19985 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference"), 19986 }, 19987 }, 19988 }, 19989 }, 19990 }, 19991 "finalizers": { 19992 VendorExtensible: spec.VendorExtensible{ 19993 Extensions: spec.Extensions{ 19994 "x-kubernetes-patch-strategy": "merge", 19995 }, 19996 }, 19997 SchemaProps: spec.SchemaProps{ 19998 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.", 19999 Type: []string{"array"}, 20000 Items: &spec.SchemaOrArray{ 20001 Schema: &spec.Schema{ 20002 SchemaProps: spec.SchemaProps{ 20003 Default: "", 20004 Type: []string{"string"}, 20005 Format: "", 20006 }, 20007 }, 20008 }, 20009 }, 20010 }, 20011 "managedFields": { 20012 SchemaProps: spec.SchemaProps{ 20013 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.", 20014 Type: []string{"array"}, 20015 Items: &spec.SchemaOrArray{ 20016 Schema: &spec.Schema{ 20017 SchemaProps: spec.SchemaProps{ 20018 Default: map[string]interface{}{}, 20019 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry"), 20020 }, 20021 }, 20022 }, 20023 }, 20024 }, 20025 }, 20026 }, 20027 }, 20028 Dependencies: []string{ 20029 "k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry", "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 20030 } 20031 } 20032 20033 func schema_pkg_apis_meta_v1_OwnerReference(ref common.ReferenceCallback) common.OpenAPIDefinition { 20034 return common.OpenAPIDefinition{ 20035 Schema: spec.Schema{ 20036 SchemaProps: spec.SchemaProps{ 20037 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.", 20038 Type: []string{"object"}, 20039 Properties: map[string]spec.Schema{ 20040 "apiVersion": { 20041 SchemaProps: spec.SchemaProps{ 20042 Description: "API version of the referent.", 20043 Default: "", 20044 Type: []string{"string"}, 20045 Format: "", 20046 }, 20047 }, 20048 "kind": { 20049 SchemaProps: spec.SchemaProps{ 20050 Description: "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 20051 Default: "", 20052 Type: []string{"string"}, 20053 Format: "", 20054 }, 20055 }, 20056 "name": { 20057 SchemaProps: spec.SchemaProps{ 20058 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names", 20059 Default: "", 20060 Type: []string{"string"}, 20061 Format: "", 20062 }, 20063 }, 20064 "uid": { 20065 SchemaProps: spec.SchemaProps{ 20066 Description: "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids", 20067 Default: "", 20068 Type: []string{"string"}, 20069 Format: "", 20070 }, 20071 }, 20072 "controller": { 20073 SchemaProps: spec.SchemaProps{ 20074 Description: "If true, this reference points to the managing controller.", 20075 Type: []string{"boolean"}, 20076 Format: "", 20077 }, 20078 }, 20079 "blockOwnerDeletion": { 20080 SchemaProps: spec.SchemaProps{ 20081 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.", 20082 Type: []string{"boolean"}, 20083 Format: "", 20084 }, 20085 }, 20086 }, 20087 Required: []string{"apiVersion", "kind", "name", "uid"}, 20088 }, 20089 VendorExtensible: spec.VendorExtensible{ 20090 Extensions: spec.Extensions{ 20091 "x-kubernetes-map-type": "atomic", 20092 }, 20093 }, 20094 }, 20095 } 20096 } 20097 20098 func schema_pkg_apis_meta_v1_PartialObjectMetadata(ref common.ReferenceCallback) common.OpenAPIDefinition { 20099 return common.OpenAPIDefinition{ 20100 Schema: spec.Schema{ 20101 SchemaProps: spec.SchemaProps{ 20102 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.", 20103 Type: []string{"object"}, 20104 Properties: map[string]spec.Schema{ 20105 "kind": { 20106 SchemaProps: spec.SchemaProps{ 20107 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 20108 Type: []string{"string"}, 20109 Format: "", 20110 }, 20111 }, 20112 "apiVersion": { 20113 SchemaProps: spec.SchemaProps{ 20114 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 20115 Type: []string{"string"}, 20116 Format: "", 20117 }, 20118 }, 20119 "metadata": { 20120 SchemaProps: spec.SchemaProps{ 20121 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 20122 Default: map[string]interface{}{}, 20123 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 20124 }, 20125 }, 20126 }, 20127 }, 20128 }, 20129 Dependencies: []string{ 20130 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 20131 } 20132 } 20133 20134 func schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref common.ReferenceCallback) common.OpenAPIDefinition { 20135 return common.OpenAPIDefinition{ 20136 Schema: spec.Schema{ 20137 SchemaProps: spec.SchemaProps{ 20138 Description: "PartialObjectMetadataList contains a list of objects containing only their metadata", 20139 Type: []string{"object"}, 20140 Properties: map[string]spec.Schema{ 20141 "kind": { 20142 SchemaProps: spec.SchemaProps{ 20143 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 20144 Type: []string{"string"}, 20145 Format: "", 20146 }, 20147 }, 20148 "apiVersion": { 20149 SchemaProps: spec.SchemaProps{ 20150 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 20151 Type: []string{"string"}, 20152 Format: "", 20153 }, 20154 }, 20155 "metadata": { 20156 SchemaProps: spec.SchemaProps{ 20157 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 20158 Default: map[string]interface{}{}, 20159 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 20160 }, 20161 }, 20162 "items": { 20163 SchemaProps: spec.SchemaProps{ 20164 Description: "items contains each of the included items.", 20165 Type: []string{"array"}, 20166 Items: &spec.SchemaOrArray{ 20167 Schema: &spec.Schema{ 20168 SchemaProps: spec.SchemaProps{ 20169 Default: map[string]interface{}{}, 20170 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata"), 20171 }, 20172 }, 20173 }, 20174 }, 20175 }, 20176 }, 20177 Required: []string{"items"}, 20178 }, 20179 }, 20180 Dependencies: []string{ 20181 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata"}, 20182 } 20183 } 20184 20185 func schema_pkg_apis_meta_v1_Patch(ref common.ReferenceCallback) common.OpenAPIDefinition { 20186 return common.OpenAPIDefinition{ 20187 Schema: spec.Schema{ 20188 SchemaProps: spec.SchemaProps{ 20189 Description: "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", 20190 Type: []string{"object"}, 20191 }, 20192 }, 20193 } 20194 } 20195 20196 func schema_pkg_apis_meta_v1_PatchOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 20197 return common.OpenAPIDefinition{ 20198 Schema: spec.Schema{ 20199 SchemaProps: spec.SchemaProps{ 20200 Description: "PatchOptions may be provided when patching an API object. PatchOptions is meant to be a superset of UpdateOptions.", 20201 Type: []string{"object"}, 20202 Properties: map[string]spec.Schema{ 20203 "kind": { 20204 SchemaProps: spec.SchemaProps{ 20205 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 20206 Type: []string{"string"}, 20207 Format: "", 20208 }, 20209 }, 20210 "apiVersion": { 20211 SchemaProps: spec.SchemaProps{ 20212 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 20213 Type: []string{"string"}, 20214 Format: "", 20215 }, 20216 }, 20217 "dryRun": { 20218 SchemaProps: spec.SchemaProps{ 20219 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", 20220 Type: []string{"array"}, 20221 Items: &spec.SchemaOrArray{ 20222 Schema: &spec.Schema{ 20223 SchemaProps: spec.SchemaProps{ 20224 Default: "", 20225 Type: []string{"string"}, 20226 Format: "", 20227 }, 20228 }, 20229 }, 20230 }, 20231 }, 20232 "force": { 20233 SchemaProps: spec.SchemaProps{ 20234 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.", 20235 Type: []string{"boolean"}, 20236 Format: "", 20237 }, 20238 }, 20239 "fieldManager": { 20240 SchemaProps: spec.SchemaProps{ 20241 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).", 20242 Type: []string{"string"}, 20243 Format: "", 20244 }, 20245 }, 20246 "fieldValidation": { 20247 SchemaProps: spec.SchemaProps{ 20248 Description: "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. 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. - 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 in v1.23+ - 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.", 20249 Type: []string{"string"}, 20250 Format: "", 20251 }, 20252 }, 20253 }, 20254 }, 20255 }, 20256 } 20257 } 20258 20259 func schema_pkg_apis_meta_v1_Preconditions(ref common.ReferenceCallback) common.OpenAPIDefinition { 20260 return common.OpenAPIDefinition{ 20261 Schema: spec.Schema{ 20262 SchemaProps: spec.SchemaProps{ 20263 Description: "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.", 20264 Type: []string{"object"}, 20265 Properties: map[string]spec.Schema{ 20266 "uid": { 20267 SchemaProps: spec.SchemaProps{ 20268 Description: "Specifies the target UID.", 20269 Type: []string{"string"}, 20270 Format: "", 20271 }, 20272 }, 20273 "resourceVersion": { 20274 SchemaProps: spec.SchemaProps{ 20275 Description: "Specifies the target ResourceVersion", 20276 Type: []string{"string"}, 20277 Format: "", 20278 }, 20279 }, 20280 }, 20281 }, 20282 }, 20283 } 20284 } 20285 20286 func schema_pkg_apis_meta_v1_RootPaths(ref common.ReferenceCallback) common.OpenAPIDefinition { 20287 return common.OpenAPIDefinition{ 20288 Schema: spec.Schema{ 20289 SchemaProps: spec.SchemaProps{ 20290 Description: "RootPaths lists the paths available at root. For example: \"/healthz\", \"/apis\".", 20291 Type: []string{"object"}, 20292 Properties: map[string]spec.Schema{ 20293 "paths": { 20294 SchemaProps: spec.SchemaProps{ 20295 Description: "paths are the paths available at root.", 20296 Type: []string{"array"}, 20297 Items: &spec.SchemaOrArray{ 20298 Schema: &spec.Schema{ 20299 SchemaProps: spec.SchemaProps{ 20300 Default: "", 20301 Type: []string{"string"}, 20302 Format: "", 20303 }, 20304 }, 20305 }, 20306 }, 20307 }, 20308 }, 20309 Required: []string{"paths"}, 20310 }, 20311 }, 20312 } 20313 } 20314 20315 func schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref common.ReferenceCallback) common.OpenAPIDefinition { 20316 return common.OpenAPIDefinition{ 20317 Schema: spec.Schema{ 20318 SchemaProps: spec.SchemaProps{ 20319 Description: "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.", 20320 Type: []string{"object"}, 20321 Properties: map[string]spec.Schema{ 20322 "clientCIDR": { 20323 SchemaProps: spec.SchemaProps{ 20324 Description: "The CIDR with which clients can match their IP to figure out the server address that they should use.", 20325 Default: "", 20326 Type: []string{"string"}, 20327 Format: "", 20328 }, 20329 }, 20330 "serverAddress": { 20331 SchemaProps: spec.SchemaProps{ 20332 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.", 20333 Default: "", 20334 Type: []string{"string"}, 20335 Format: "", 20336 }, 20337 }, 20338 }, 20339 Required: []string{"clientCIDR", "serverAddress"}, 20340 }, 20341 }, 20342 } 20343 } 20344 20345 func schema_pkg_apis_meta_v1_Status(ref common.ReferenceCallback) common.OpenAPIDefinition { 20346 return common.OpenAPIDefinition{ 20347 Schema: spec.Schema{ 20348 SchemaProps: spec.SchemaProps{ 20349 Description: "Status is a return value for calls that don't return other objects.", 20350 Type: []string{"object"}, 20351 Properties: map[string]spec.Schema{ 20352 "kind": { 20353 SchemaProps: spec.SchemaProps{ 20354 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 20355 Type: []string{"string"}, 20356 Format: "", 20357 }, 20358 }, 20359 "apiVersion": { 20360 SchemaProps: spec.SchemaProps{ 20361 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 20362 Type: []string{"string"}, 20363 Format: "", 20364 }, 20365 }, 20366 "metadata": { 20367 SchemaProps: spec.SchemaProps{ 20368 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 20369 Default: map[string]interface{}{}, 20370 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 20371 }, 20372 }, 20373 "status": { 20374 SchemaProps: spec.SchemaProps{ 20375 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", 20376 Type: []string{"string"}, 20377 Format: "", 20378 }, 20379 }, 20380 "message": { 20381 SchemaProps: spec.SchemaProps{ 20382 Description: "A human-readable description of the status of this operation.", 20383 Type: []string{"string"}, 20384 Format: "", 20385 }, 20386 }, 20387 "reason": { 20388 SchemaProps: spec.SchemaProps{ 20389 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.", 20390 Type: []string{"string"}, 20391 Format: "", 20392 }, 20393 }, 20394 "details": { 20395 SchemaProps: spec.SchemaProps{ 20396 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.", 20397 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails"), 20398 }, 20399 }, 20400 "code": { 20401 SchemaProps: spec.SchemaProps{ 20402 Description: "Suggested HTTP return code for this status, 0 if not set.", 20403 Type: []string{"integer"}, 20404 Format: "int32", 20405 }, 20406 }, 20407 }, 20408 }, 20409 }, 20410 Dependencies: []string{ 20411 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails"}, 20412 } 20413 } 20414 20415 func schema_pkg_apis_meta_v1_StatusCause(ref common.ReferenceCallback) common.OpenAPIDefinition { 20416 return common.OpenAPIDefinition{ 20417 Schema: spec.Schema{ 20418 SchemaProps: spec.SchemaProps{ 20419 Description: "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.", 20420 Type: []string{"object"}, 20421 Properties: map[string]spec.Schema{ 20422 "reason": { 20423 SchemaProps: spec.SchemaProps{ 20424 Description: "A machine-readable description of the cause of the error. If this value is empty there is no information available.", 20425 Type: []string{"string"}, 20426 Format: "", 20427 }, 20428 }, 20429 "message": { 20430 SchemaProps: spec.SchemaProps{ 20431 Description: "A human-readable description of the cause of the error. This field may be presented as-is to a reader.", 20432 Type: []string{"string"}, 20433 Format: "", 20434 }, 20435 }, 20436 "field": { 20437 SchemaProps: spec.SchemaProps{ 20438 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\"", 20439 Type: []string{"string"}, 20440 Format: "", 20441 }, 20442 }, 20443 }, 20444 }, 20445 }, 20446 } 20447 } 20448 20449 func schema_pkg_apis_meta_v1_StatusDetails(ref common.ReferenceCallback) common.OpenAPIDefinition { 20450 return common.OpenAPIDefinition{ 20451 Schema: spec.Schema{ 20452 SchemaProps: spec.SchemaProps{ 20453 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.", 20454 Type: []string{"object"}, 20455 Properties: map[string]spec.Schema{ 20456 "name": { 20457 SchemaProps: spec.SchemaProps{ 20458 Description: "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).", 20459 Type: []string{"string"}, 20460 Format: "", 20461 }, 20462 }, 20463 "group": { 20464 SchemaProps: spec.SchemaProps{ 20465 Description: "The group attribute of the resource associated with the status StatusReason.", 20466 Type: []string{"string"}, 20467 Format: "", 20468 }, 20469 }, 20470 "kind": { 20471 SchemaProps: spec.SchemaProps{ 20472 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", 20473 Type: []string{"string"}, 20474 Format: "", 20475 }, 20476 }, 20477 "uid": { 20478 SchemaProps: spec.SchemaProps{ 20479 Description: "UID of the resource. (when there is a single resource which can be described). More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids", 20480 Type: []string{"string"}, 20481 Format: "", 20482 }, 20483 }, 20484 "causes": { 20485 SchemaProps: spec.SchemaProps{ 20486 Description: "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.", 20487 Type: []string{"array"}, 20488 Items: &spec.SchemaOrArray{ 20489 Schema: &spec.Schema{ 20490 SchemaProps: spec.SchemaProps{ 20491 Default: map[string]interface{}{}, 20492 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause"), 20493 }, 20494 }, 20495 }, 20496 }, 20497 }, 20498 "retryAfterSeconds": { 20499 SchemaProps: spec.SchemaProps{ 20500 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.", 20501 Type: []string{"integer"}, 20502 Format: "int32", 20503 }, 20504 }, 20505 }, 20506 }, 20507 }, 20508 Dependencies: []string{ 20509 "k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause"}, 20510 } 20511 } 20512 20513 func schema_pkg_apis_meta_v1_Table(ref common.ReferenceCallback) common.OpenAPIDefinition { 20514 return common.OpenAPIDefinition{ 20515 Schema: spec.Schema{ 20516 SchemaProps: spec.SchemaProps{ 20517 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.", 20518 Type: []string{"object"}, 20519 Properties: map[string]spec.Schema{ 20520 "kind": { 20521 SchemaProps: spec.SchemaProps{ 20522 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 20523 Type: []string{"string"}, 20524 Format: "", 20525 }, 20526 }, 20527 "apiVersion": { 20528 SchemaProps: spec.SchemaProps{ 20529 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 20530 Type: []string{"string"}, 20531 Format: "", 20532 }, 20533 }, 20534 "metadata": { 20535 SchemaProps: spec.SchemaProps{ 20536 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 20537 Default: map[string]interface{}{}, 20538 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 20539 }, 20540 }, 20541 "columnDefinitions": { 20542 SchemaProps: spec.SchemaProps{ 20543 Description: "columnDefinitions describes each column in the returned items array. The number of cells per row will always match the number of column definitions.", 20544 Type: []string{"array"}, 20545 Items: &spec.SchemaOrArray{ 20546 Schema: &spec.Schema{ 20547 SchemaProps: spec.SchemaProps{ 20548 Default: map[string]interface{}{}, 20549 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition"), 20550 }, 20551 }, 20552 }, 20553 }, 20554 }, 20555 "rows": { 20556 SchemaProps: spec.SchemaProps{ 20557 Description: "rows is the list of items in the table.", 20558 Type: []string{"array"}, 20559 Items: &spec.SchemaOrArray{ 20560 Schema: &spec.Schema{ 20561 SchemaProps: spec.SchemaProps{ 20562 Default: map[string]interface{}{}, 20563 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.TableRow"), 20564 }, 20565 }, 20566 }, 20567 }, 20568 }, 20569 }, 20570 Required: []string{"columnDefinitions", "rows"}, 20571 }, 20572 }, 20573 Dependencies: []string{ 20574 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition", "k8s.io/apimachinery/pkg/apis/meta/v1.TableRow"}, 20575 } 20576 } 20577 20578 func schema_pkg_apis_meta_v1_TableColumnDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition { 20579 return common.OpenAPIDefinition{ 20580 Schema: spec.Schema{ 20581 SchemaProps: spec.SchemaProps{ 20582 Description: "TableColumnDefinition contains information about a column returned in the Table.", 20583 Type: []string{"object"}, 20584 Properties: map[string]spec.Schema{ 20585 "name": { 20586 SchemaProps: spec.SchemaProps{ 20587 Description: "name is a human readable name for the column.", 20588 Default: "", 20589 Type: []string{"string"}, 20590 Format: "", 20591 }, 20592 }, 20593 "type": { 20594 SchemaProps: spec.SchemaProps{ 20595 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.", 20596 Default: "", 20597 Type: []string{"string"}, 20598 Format: "", 20599 }, 20600 }, 20601 "format": { 20602 SchemaProps: spec.SchemaProps{ 20603 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.", 20604 Default: "", 20605 Type: []string{"string"}, 20606 Format: "", 20607 }, 20608 }, 20609 "description": { 20610 SchemaProps: spec.SchemaProps{ 20611 Description: "description is a human readable description of this column.", 20612 Default: "", 20613 Type: []string{"string"}, 20614 Format: "", 20615 }, 20616 }, 20617 "priority": { 20618 SchemaProps: spec.SchemaProps{ 20619 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.", 20620 Default: 0, 20621 Type: []string{"integer"}, 20622 Format: "int32", 20623 }, 20624 }, 20625 }, 20626 Required: []string{"name", "type", "format", "description", "priority"}, 20627 }, 20628 }, 20629 } 20630 } 20631 20632 func schema_pkg_apis_meta_v1_TableOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 20633 return common.OpenAPIDefinition{ 20634 Schema: spec.Schema{ 20635 SchemaProps: spec.SchemaProps{ 20636 Description: "TableOptions are used when a Table is requested by the caller.", 20637 Type: []string{"object"}, 20638 Properties: map[string]spec.Schema{ 20639 "kind": { 20640 SchemaProps: spec.SchemaProps{ 20641 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 20642 Type: []string{"string"}, 20643 Format: "", 20644 }, 20645 }, 20646 "apiVersion": { 20647 SchemaProps: spec.SchemaProps{ 20648 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 20649 Type: []string{"string"}, 20650 Format: "", 20651 }, 20652 }, 20653 "includeObject": { 20654 SchemaProps: spec.SchemaProps{ 20655 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.", 20656 Type: []string{"string"}, 20657 Format: "", 20658 }, 20659 }, 20660 }, 20661 }, 20662 }, 20663 } 20664 } 20665 20666 func schema_pkg_apis_meta_v1_TableRow(ref common.ReferenceCallback) common.OpenAPIDefinition { 20667 return common.OpenAPIDefinition{ 20668 Schema: spec.Schema{ 20669 SchemaProps: spec.SchemaProps{ 20670 Description: "TableRow is an individual row in a table.", 20671 Type: []string{"object"}, 20672 Properties: map[string]spec.Schema{ 20673 "cells": { 20674 SchemaProps: spec.SchemaProps{ 20675 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.", 20676 Type: []string{"array"}, 20677 Items: &spec.SchemaOrArray{ 20678 Schema: &spec.Schema{ 20679 SchemaProps: spec.SchemaProps{ 20680 Type: []string{"object"}, 20681 Format: "", 20682 }, 20683 }, 20684 }, 20685 }, 20686 }, 20687 "conditions": { 20688 SchemaProps: spec.SchemaProps{ 20689 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.", 20690 Type: []string{"array"}, 20691 Items: &spec.SchemaOrArray{ 20692 Schema: &spec.Schema{ 20693 SchemaProps: spec.SchemaProps{ 20694 Default: map[string]interface{}{}, 20695 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition"), 20696 }, 20697 }, 20698 }, 20699 }, 20700 }, 20701 "object": { 20702 SchemaProps: spec.SchemaProps{ 20703 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.", 20704 Default: map[string]interface{}{}, 20705 Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), 20706 }, 20707 }, 20708 }, 20709 Required: []string{"cells"}, 20710 }, 20711 }, 20712 Dependencies: []string{ 20713 "k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition", "k8s.io/apimachinery/pkg/runtime.RawExtension"}, 20714 } 20715 } 20716 20717 func schema_pkg_apis_meta_v1_TableRowCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 20718 return common.OpenAPIDefinition{ 20719 Schema: spec.Schema{ 20720 SchemaProps: spec.SchemaProps{ 20721 Description: "TableRowCondition allows a row to be marked with additional information.", 20722 Type: []string{"object"}, 20723 Properties: map[string]spec.Schema{ 20724 "type": { 20725 SchemaProps: spec.SchemaProps{ 20726 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.", 20727 Default: "", 20728 Type: []string{"string"}, 20729 Format: "", 20730 }, 20731 }, 20732 "status": { 20733 SchemaProps: spec.SchemaProps{ 20734 Description: "Status of the condition, one of True, False, Unknown.", 20735 Default: "", 20736 Type: []string{"string"}, 20737 Format: "", 20738 }, 20739 }, 20740 "reason": { 20741 SchemaProps: spec.SchemaProps{ 20742 Description: "(brief) machine readable reason for the condition's last transition.", 20743 Type: []string{"string"}, 20744 Format: "", 20745 }, 20746 }, 20747 "message": { 20748 SchemaProps: spec.SchemaProps{ 20749 Description: "Human readable message indicating details about last transition.", 20750 Type: []string{"string"}, 20751 Format: "", 20752 }, 20753 }, 20754 }, 20755 Required: []string{"type", "status"}, 20756 }, 20757 }, 20758 } 20759 } 20760 20761 func schema_pkg_apis_meta_v1_Time(ref common.ReferenceCallback) common.OpenAPIDefinition { 20762 return common.OpenAPIDefinition{ 20763 Schema: spec.Schema{ 20764 SchemaProps: spec.SchemaProps{ 20765 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.", 20766 Type: v1.Time{}.OpenAPISchemaType(), 20767 Format: v1.Time{}.OpenAPISchemaFormat(), 20768 }, 20769 }, 20770 } 20771 } 20772 20773 func schema_pkg_apis_meta_v1_Timestamp(ref common.ReferenceCallback) common.OpenAPIDefinition { 20774 return common.OpenAPIDefinition{ 20775 Schema: spec.Schema{ 20776 SchemaProps: spec.SchemaProps{ 20777 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.", 20778 Type: []string{"object"}, 20779 Properties: map[string]spec.Schema{ 20780 "seconds": { 20781 SchemaProps: spec.SchemaProps{ 20782 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.", 20783 Default: 0, 20784 Type: []string{"integer"}, 20785 Format: "int64", 20786 }, 20787 }, 20788 "nanos": { 20789 SchemaProps: spec.SchemaProps{ 20790 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.", 20791 Default: 0, 20792 Type: []string{"integer"}, 20793 Format: "int32", 20794 }, 20795 }, 20796 }, 20797 Required: []string{"seconds", "nanos"}, 20798 }, 20799 }, 20800 } 20801 } 20802 20803 func schema_pkg_apis_meta_v1_TypeMeta(ref common.ReferenceCallback) common.OpenAPIDefinition { 20804 return common.OpenAPIDefinition{ 20805 Schema: spec.Schema{ 20806 SchemaProps: spec.SchemaProps{ 20807 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.", 20808 Type: []string{"object"}, 20809 Properties: map[string]spec.Schema{ 20810 "kind": { 20811 SchemaProps: spec.SchemaProps{ 20812 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 20813 Type: []string{"string"}, 20814 Format: "", 20815 }, 20816 }, 20817 "apiVersion": { 20818 SchemaProps: spec.SchemaProps{ 20819 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 20820 Type: []string{"string"}, 20821 Format: "", 20822 }, 20823 }, 20824 }, 20825 }, 20826 }, 20827 } 20828 } 20829 20830 func schema_pkg_apis_meta_v1_UpdateOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 20831 return common.OpenAPIDefinition{ 20832 Schema: spec.Schema{ 20833 SchemaProps: spec.SchemaProps{ 20834 Description: "UpdateOptions may be provided when updating an API object. All fields in UpdateOptions should also be present in PatchOptions.", 20835 Type: []string{"object"}, 20836 Properties: map[string]spec.Schema{ 20837 "kind": { 20838 SchemaProps: spec.SchemaProps{ 20839 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 20840 Type: []string{"string"}, 20841 Format: "", 20842 }, 20843 }, 20844 "apiVersion": { 20845 SchemaProps: spec.SchemaProps{ 20846 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 20847 Type: []string{"string"}, 20848 Format: "", 20849 }, 20850 }, 20851 "dryRun": { 20852 SchemaProps: spec.SchemaProps{ 20853 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", 20854 Type: []string{"array"}, 20855 Items: &spec.SchemaOrArray{ 20856 Schema: &spec.Schema{ 20857 SchemaProps: spec.SchemaProps{ 20858 Default: "", 20859 Type: []string{"string"}, 20860 Format: "", 20861 }, 20862 }, 20863 }, 20864 }, 20865 }, 20866 "fieldManager": { 20867 SchemaProps: spec.SchemaProps{ 20868 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.", 20869 Type: []string{"string"}, 20870 Format: "", 20871 }, 20872 }, 20873 "fieldValidation": { 20874 SchemaProps: spec.SchemaProps{ 20875 Description: "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. 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. - 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 in v1.23+ - 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.", 20876 Type: []string{"string"}, 20877 Format: "", 20878 }, 20879 }, 20880 }, 20881 }, 20882 }, 20883 } 20884 } 20885 20886 func schema_pkg_apis_meta_v1_WatchEvent(ref common.ReferenceCallback) common.OpenAPIDefinition { 20887 return common.OpenAPIDefinition{ 20888 Schema: spec.Schema{ 20889 SchemaProps: spec.SchemaProps{ 20890 Description: "Event represents a single event to a watched resource.", 20891 Type: []string{"object"}, 20892 Properties: map[string]spec.Schema{ 20893 "type": { 20894 SchemaProps: spec.SchemaProps{ 20895 Default: "", 20896 Type: []string{"string"}, 20897 Format: "", 20898 }, 20899 }, 20900 "object": { 20901 SchemaProps: spec.SchemaProps{ 20902 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.", 20903 Default: map[string]interface{}{}, 20904 Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), 20905 }, 20906 }, 20907 }, 20908 Required: []string{"type", "object"}, 20909 }, 20910 }, 20911 Dependencies: []string{ 20912 "k8s.io/apimachinery/pkg/runtime.RawExtension"}, 20913 } 20914 } 20915 20916 func schema_k8sio_apimachinery_pkg_runtime_RawExtension(ref common.ReferenceCallback) common.OpenAPIDefinition { 20917 return common.OpenAPIDefinition{ 20918 Schema: spec.Schema{ 20919 SchemaProps: spec.SchemaProps{ 20920 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.)", 20921 Type: []string{"object"}, 20922 }, 20923 }, 20924 } 20925 } 20926 20927 func schema_k8sio_apimachinery_pkg_runtime_TypeMeta(ref common.ReferenceCallback) common.OpenAPIDefinition { 20928 return common.OpenAPIDefinition{ 20929 Schema: spec.Schema{ 20930 SchemaProps: spec.SchemaProps{ 20931 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.", 20932 Type: []string{"object"}, 20933 Properties: map[string]spec.Schema{ 20934 "apiVersion": { 20935 SchemaProps: spec.SchemaProps{ 20936 Type: []string{"string"}, 20937 Format: "", 20938 }, 20939 }, 20940 "kind": { 20941 SchemaProps: spec.SchemaProps{ 20942 Type: []string{"string"}, 20943 Format: "", 20944 }, 20945 }, 20946 }, 20947 }, 20948 }, 20949 } 20950 } 20951 20952 func schema_k8sio_apimachinery_pkg_runtime_Unknown(ref common.ReferenceCallback) common.OpenAPIDefinition { 20953 return common.OpenAPIDefinition{ 20954 Schema: spec.Schema{ 20955 SchemaProps: spec.SchemaProps{ 20956 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.", 20957 Type: []string{"object"}, 20958 Properties: map[string]spec.Schema{ 20959 "apiVersion": { 20960 SchemaProps: spec.SchemaProps{ 20961 Type: []string{"string"}, 20962 Format: "", 20963 }, 20964 }, 20965 "kind": { 20966 SchemaProps: spec.SchemaProps{ 20967 Type: []string{"string"}, 20968 Format: "", 20969 }, 20970 }, 20971 "ContentEncoding": { 20972 SchemaProps: spec.SchemaProps{ 20973 Description: "ContentEncoding is encoding used to encode 'Raw' data. Unspecified means no encoding.", 20974 Default: "", 20975 Type: []string{"string"}, 20976 Format: "", 20977 }, 20978 }, 20979 "ContentType": { 20980 SchemaProps: spec.SchemaProps{ 20981 Description: "ContentType is serialization method used to serialize 'Raw'. Unspecified means ContentTypeJSON.", 20982 Default: "", 20983 Type: []string{"string"}, 20984 Format: "", 20985 }, 20986 }, 20987 }, 20988 Required: []string{"ContentEncoding", "ContentType"}, 20989 }, 20990 }, 20991 } 20992 } 20993 20994 func schema_apimachinery_pkg_util_intstr_IntOrString(ref common.ReferenceCallback) common.OpenAPIDefinition { 20995 return common.EmbedOpenAPIDefinitionIntoV2Extension(common.OpenAPIDefinition{ 20996 Schema: spec.Schema{ 20997 SchemaProps: spec.SchemaProps{ 20998 Description: "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.", 20999 OneOf: common.GenerateOpenAPIV3OneOfSchema(intstr.IntOrString{}.OpenAPIV3OneOfTypes()), 21000 Format: intstr.IntOrString{}.OpenAPISchemaFormat(), 21001 }, 21002 }, 21003 }, common.OpenAPIDefinition{ 21004 Schema: spec.Schema{ 21005 SchemaProps: spec.SchemaProps{ 21006 Description: "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.", 21007 Type: intstr.IntOrString{}.OpenAPISchemaType(), 21008 Format: intstr.IntOrString{}.OpenAPISchemaFormat(), 21009 }, 21010 }, 21011 }) 21012 } 21013 21014 func schema_k8sio_apimachinery_pkg_version_Info(ref common.ReferenceCallback) common.OpenAPIDefinition { 21015 return common.OpenAPIDefinition{ 21016 Schema: spec.Schema{ 21017 SchemaProps: spec.SchemaProps{ 21018 Description: "Info contains versioning information. how we'll want to distribute that information.", 21019 Type: []string{"object"}, 21020 Properties: map[string]spec.Schema{ 21021 "major": { 21022 SchemaProps: spec.SchemaProps{ 21023 Default: "", 21024 Type: []string{"string"}, 21025 Format: "", 21026 }, 21027 }, 21028 "minor": { 21029 SchemaProps: spec.SchemaProps{ 21030 Default: "", 21031 Type: []string{"string"}, 21032 Format: "", 21033 }, 21034 }, 21035 "gitVersion": { 21036 SchemaProps: spec.SchemaProps{ 21037 Default: "", 21038 Type: []string{"string"}, 21039 Format: "", 21040 }, 21041 }, 21042 "gitCommit": { 21043 SchemaProps: spec.SchemaProps{ 21044 Default: "", 21045 Type: []string{"string"}, 21046 Format: "", 21047 }, 21048 }, 21049 "gitTreeState": { 21050 SchemaProps: spec.SchemaProps{ 21051 Default: "", 21052 Type: []string{"string"}, 21053 Format: "", 21054 }, 21055 }, 21056 "buildDate": { 21057 SchemaProps: spec.SchemaProps{ 21058 Default: "", 21059 Type: []string{"string"}, 21060 Format: "", 21061 }, 21062 }, 21063 "goVersion": { 21064 SchemaProps: spec.SchemaProps{ 21065 Default: "", 21066 Type: []string{"string"}, 21067 Format: "", 21068 }, 21069 }, 21070 "compiler": { 21071 SchemaProps: spec.SchemaProps{ 21072 Default: "", 21073 Type: []string{"string"}, 21074 Format: "", 21075 }, 21076 }, 21077 "platform": { 21078 SchemaProps: spec.SchemaProps{ 21079 Default: "", 21080 Type: []string{"string"}, 21081 Format: "", 21082 }, 21083 }, 21084 }, 21085 Required: []string{"major", "minor", "gitVersion", "gitCommit", "gitTreeState", "buildDate", "goVersion", "compiler", "platform"}, 21086 }, 21087 }, 21088 } 21089 }