github.com/tigera/api@v0.0.0-20240320170621-278e89a8c5fb/pkg/openapi/openapi_generated.go (about) 1 //go:build !ignore_autogenerated 2 // +build !ignore_autogenerated 3 4 // Copyright (c) 2024 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/tigera/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/tigera/api/pkg/apis/projectcalico/v3.AlertException": schema_pkg_apis_projectcalico_v3_AlertException(ref), 23 "github.com/tigera/api/pkg/apis/projectcalico/v3.AlertExceptionList": schema_pkg_apis_projectcalico_v3_AlertExceptionList(ref), 24 "github.com/tigera/api/pkg/apis/projectcalico/v3.AlertExceptionSpec": schema_pkg_apis_projectcalico_v3_AlertExceptionSpec(ref), 25 "github.com/tigera/api/pkg/apis/projectcalico/v3.AlertExceptionStatus": schema_pkg_apis_projectcalico_v3_AlertExceptionStatus(ref), 26 "github.com/tigera/api/pkg/apis/projectcalico/v3.AuditEventsSelection": schema_pkg_apis_projectcalico_v3_AuditEventsSelection(ref), 27 "github.com/tigera/api/pkg/apis/projectcalico/v3.AuditResource": schema_pkg_apis_projectcalico_v3_AuditResource(ref), 28 "github.com/tigera/api/pkg/apis/projectcalico/v3.AuditSummary": schema_pkg_apis_projectcalico_v3_AuditSummary(ref), 29 "github.com/tigera/api/pkg/apis/projectcalico/v3.AuthenticationReview": schema_pkg_apis_projectcalico_v3_AuthenticationReview(ref), 30 "github.com/tigera/api/pkg/apis/projectcalico/v3.AuthenticationReviewList": schema_pkg_apis_projectcalico_v3_AuthenticationReviewList(ref), 31 "github.com/tigera/api/pkg/apis/projectcalico/v3.AuthenticationReviewStatus": schema_pkg_apis_projectcalico_v3_AuthenticationReviewStatus(ref), 32 "github.com/tigera/api/pkg/apis/projectcalico/v3.AuthorizationReview": schema_pkg_apis_projectcalico_v3_AuthorizationReview(ref), 33 "github.com/tigera/api/pkg/apis/projectcalico/v3.AuthorizationReviewList": schema_pkg_apis_projectcalico_v3_AuthorizationReviewList(ref), 34 "github.com/tigera/api/pkg/apis/projectcalico/v3.AuthorizationReviewResourceAttributes": schema_pkg_apis_projectcalico_v3_AuthorizationReviewResourceAttributes(ref), 35 "github.com/tigera/api/pkg/apis/projectcalico/v3.AuthorizationReviewSpec": schema_pkg_apis_projectcalico_v3_AuthorizationReviewSpec(ref), 36 "github.com/tigera/api/pkg/apis/projectcalico/v3.AuthorizationReviewStatus": schema_pkg_apis_projectcalico_v3_AuthorizationReviewStatus(ref), 37 "github.com/tigera/api/pkg/apis/projectcalico/v3.AuthorizedResourceGroup": schema_pkg_apis_projectcalico_v3_AuthorizedResourceGroup(ref), 38 "github.com/tigera/api/pkg/apis/projectcalico/v3.AuthorizedResourceVerb": schema_pkg_apis_projectcalico_v3_AuthorizedResourceVerb(ref), 39 "github.com/tigera/api/pkg/apis/projectcalico/v3.AuthorizedResourceVerbs": schema_pkg_apis_projectcalico_v3_AuthorizedResourceVerbs(ref), 40 "github.com/tigera/api/pkg/apis/projectcalico/v3.AutoHostEndpointConfig": schema_pkg_apis_projectcalico_v3_AutoHostEndpointConfig(ref), 41 "github.com/tigera/api/pkg/apis/projectcalico/v3.BGPConfiguration": schema_pkg_apis_projectcalico_v3_BGPConfiguration(ref), 42 "github.com/tigera/api/pkg/apis/projectcalico/v3.BGPConfigurationList": schema_pkg_apis_projectcalico_v3_BGPConfigurationList(ref), 43 "github.com/tigera/api/pkg/apis/projectcalico/v3.BGPConfigurationSpec": schema_pkg_apis_projectcalico_v3_BGPConfigurationSpec(ref), 44 "github.com/tigera/api/pkg/apis/projectcalico/v3.BGPDaemonStatus": schema_pkg_apis_projectcalico_v3_BGPDaemonStatus(ref), 45 "github.com/tigera/api/pkg/apis/projectcalico/v3.BGPFilter": schema_pkg_apis_projectcalico_v3_BGPFilter(ref), 46 "github.com/tigera/api/pkg/apis/projectcalico/v3.BGPFilterList": schema_pkg_apis_projectcalico_v3_BGPFilterList(ref), 47 "github.com/tigera/api/pkg/apis/projectcalico/v3.BGPFilterRuleV4": schema_pkg_apis_projectcalico_v3_BGPFilterRuleV4(ref), 48 "github.com/tigera/api/pkg/apis/projectcalico/v3.BGPFilterRuleV6": schema_pkg_apis_projectcalico_v3_BGPFilterRuleV6(ref), 49 "github.com/tigera/api/pkg/apis/projectcalico/v3.BGPFilterSpec": schema_pkg_apis_projectcalico_v3_BGPFilterSpec(ref), 50 "github.com/tigera/api/pkg/apis/projectcalico/v3.BGPPassword": schema_pkg_apis_projectcalico_v3_BGPPassword(ref), 51 "github.com/tigera/api/pkg/apis/projectcalico/v3.BGPPeer": schema_pkg_apis_projectcalico_v3_BGPPeer(ref), 52 "github.com/tigera/api/pkg/apis/projectcalico/v3.BGPPeerList": schema_pkg_apis_projectcalico_v3_BGPPeerList(ref), 53 "github.com/tigera/api/pkg/apis/projectcalico/v3.BGPPeerSpec": schema_pkg_apis_projectcalico_v3_BGPPeerSpec(ref), 54 "github.com/tigera/api/pkg/apis/projectcalico/v3.BlockAffinity": schema_pkg_apis_projectcalico_v3_BlockAffinity(ref), 55 "github.com/tigera/api/pkg/apis/projectcalico/v3.BlockAffinityList": schema_pkg_apis_projectcalico_v3_BlockAffinityList(ref), 56 "github.com/tigera/api/pkg/apis/projectcalico/v3.BlockAffinitySpec": schema_pkg_apis_projectcalico_v3_BlockAffinitySpec(ref), 57 "github.com/tigera/api/pkg/apis/projectcalico/v3.CISBenchmarkFilter": schema_pkg_apis_projectcalico_v3_CISBenchmarkFilter(ref), 58 "github.com/tigera/api/pkg/apis/projectcalico/v3.CISBenchmarkNode": schema_pkg_apis_projectcalico_v3_CISBenchmarkNode(ref), 59 "github.com/tigera/api/pkg/apis/projectcalico/v3.CISBenchmarkNodeSummary": schema_pkg_apis_projectcalico_v3_CISBenchmarkNodeSummary(ref), 60 "github.com/tigera/api/pkg/apis/projectcalico/v3.CISBenchmarkParams": schema_pkg_apis_projectcalico_v3_CISBenchmarkParams(ref), 61 "github.com/tigera/api/pkg/apis/projectcalico/v3.CISBenchmarkResult": schema_pkg_apis_projectcalico_v3_CISBenchmarkResult(ref), 62 "github.com/tigera/api/pkg/apis/projectcalico/v3.CISBenchmarkResultCount": schema_pkg_apis_projectcalico_v3_CISBenchmarkResultCount(ref), 63 "github.com/tigera/api/pkg/apis/projectcalico/v3.CISBenchmarkSectionResult": schema_pkg_apis_projectcalico_v3_CISBenchmarkSectionResult(ref), 64 "github.com/tigera/api/pkg/apis/projectcalico/v3.CISBenchmarkSelection": schema_pkg_apis_projectcalico_v3_CISBenchmarkSelection(ref), 65 "github.com/tigera/api/pkg/apis/projectcalico/v3.CISBenchmarkSummary": schema_pkg_apis_projectcalico_v3_CISBenchmarkSummary(ref), 66 "github.com/tigera/api/pkg/apis/projectcalico/v3.CalicoNodeAgentStatus": schema_pkg_apis_projectcalico_v3_CalicoNodeAgentStatus(ref), 67 "github.com/tigera/api/pkg/apis/projectcalico/v3.CalicoNodeBGPRouteStatus": schema_pkg_apis_projectcalico_v3_CalicoNodeBGPRouteStatus(ref), 68 "github.com/tigera/api/pkg/apis/projectcalico/v3.CalicoNodeBGPStatus": schema_pkg_apis_projectcalico_v3_CalicoNodeBGPStatus(ref), 69 "github.com/tigera/api/pkg/apis/projectcalico/v3.CalicoNodePeer": schema_pkg_apis_projectcalico_v3_CalicoNodePeer(ref), 70 "github.com/tigera/api/pkg/apis/projectcalico/v3.CalicoNodeRoute": schema_pkg_apis_projectcalico_v3_CalicoNodeRoute(ref), 71 "github.com/tigera/api/pkg/apis/projectcalico/v3.CalicoNodeRouteLearnedFrom": schema_pkg_apis_projectcalico_v3_CalicoNodeRouteLearnedFrom(ref), 72 "github.com/tigera/api/pkg/apis/projectcalico/v3.CalicoNodeStatus": schema_pkg_apis_projectcalico_v3_CalicoNodeStatus(ref), 73 "github.com/tigera/api/pkg/apis/projectcalico/v3.CalicoNodeStatusList": schema_pkg_apis_projectcalico_v3_CalicoNodeStatusList(ref), 74 "github.com/tigera/api/pkg/apis/projectcalico/v3.CalicoNodeStatusSpec": schema_pkg_apis_projectcalico_v3_CalicoNodeStatusSpec(ref), 75 "github.com/tigera/api/pkg/apis/projectcalico/v3.CalicoNodeStatusStatus": schema_pkg_apis_projectcalico_v3_CalicoNodeStatusStatus(ref), 76 "github.com/tigera/api/pkg/apis/projectcalico/v3.ClusterInformation": schema_pkg_apis_projectcalico_v3_ClusterInformation(ref), 77 "github.com/tigera/api/pkg/apis/projectcalico/v3.ClusterInformationList": schema_pkg_apis_projectcalico_v3_ClusterInformationList(ref), 78 "github.com/tigera/api/pkg/apis/projectcalico/v3.ClusterInformationSpec": schema_pkg_apis_projectcalico_v3_ClusterInformationSpec(ref), 79 "github.com/tigera/api/pkg/apis/projectcalico/v3.Community": schema_pkg_apis_projectcalico_v3_Community(ref), 80 "github.com/tigera/api/pkg/apis/projectcalico/v3.CompletedReportJob": schema_pkg_apis_projectcalico_v3_CompletedReportJob(ref), 81 "github.com/tigera/api/pkg/apis/projectcalico/v3.ControllersConfig": schema_pkg_apis_projectcalico_v3_ControllersConfig(ref), 82 "github.com/tigera/api/pkg/apis/projectcalico/v3.DPIActive": schema_pkg_apis_projectcalico_v3_DPIActive(ref), 83 "github.com/tigera/api/pkg/apis/projectcalico/v3.DPIErrorCondition": schema_pkg_apis_projectcalico_v3_DPIErrorCondition(ref), 84 "github.com/tigera/api/pkg/apis/projectcalico/v3.DPINode": schema_pkg_apis_projectcalico_v3_DPINode(ref), 85 "github.com/tigera/api/pkg/apis/projectcalico/v3.DashboardData": schema_pkg_apis_projectcalico_v3_DashboardData(ref), 86 "github.com/tigera/api/pkg/apis/projectcalico/v3.DashboardLayout": schema_pkg_apis_projectcalico_v3_DashboardLayout(ref), 87 "github.com/tigera/api/pkg/apis/projectcalico/v3.DeepPacketInspection": schema_pkg_apis_projectcalico_v3_DeepPacketInspection(ref), 88 "github.com/tigera/api/pkg/apis/projectcalico/v3.DeepPacketInspectionList": schema_pkg_apis_projectcalico_v3_DeepPacketInspectionList(ref), 89 "github.com/tigera/api/pkg/apis/projectcalico/v3.DeepPacketInspectionSpec": schema_pkg_apis_projectcalico_v3_DeepPacketInspectionSpec(ref), 90 "github.com/tigera/api/pkg/apis/projectcalico/v3.DeepPacketInspectionStatus": schema_pkg_apis_projectcalico_v3_DeepPacketInspectionStatus(ref), 91 "github.com/tigera/api/pkg/apis/projectcalico/v3.DetectorParams": schema_pkg_apis_projectcalico_v3_DetectorParams(ref), 92 "github.com/tigera/api/pkg/apis/projectcalico/v3.EgressGatewayPolicy": schema_pkg_apis_projectcalico_v3_EgressGatewayPolicy(ref), 93 "github.com/tigera/api/pkg/apis/projectcalico/v3.EgressGatewayPolicyDestinationSpec": schema_pkg_apis_projectcalico_v3_EgressGatewayPolicyDestinationSpec(ref), 94 "github.com/tigera/api/pkg/apis/projectcalico/v3.EgressGatewayPolicyList": schema_pkg_apis_projectcalico_v3_EgressGatewayPolicyList(ref), 95 "github.com/tigera/api/pkg/apis/projectcalico/v3.EgressGatewayPolicySpec": schema_pkg_apis_projectcalico_v3_EgressGatewayPolicySpec(ref), 96 "github.com/tigera/api/pkg/apis/projectcalico/v3.EgressGatewayRule": schema_pkg_apis_projectcalico_v3_EgressGatewayRule(ref), 97 "github.com/tigera/api/pkg/apis/projectcalico/v3.EgressGatewaySpec": schema_pkg_apis_projectcalico_v3_EgressGatewaySpec(ref), 98 "github.com/tigera/api/pkg/apis/projectcalico/v3.EgressSpec": schema_pkg_apis_projectcalico_v3_EgressSpec(ref), 99 "github.com/tigera/api/pkg/apis/projectcalico/v3.EndpointPort": schema_pkg_apis_projectcalico_v3_EndpointPort(ref), 100 "github.com/tigera/api/pkg/apis/projectcalico/v3.EndpointsReportEndpoint": schema_pkg_apis_projectcalico_v3_EndpointsReportEndpoint(ref), 101 "github.com/tigera/api/pkg/apis/projectcalico/v3.EndpointsReportFlow": schema_pkg_apis_projectcalico_v3_EndpointsReportFlow(ref), 102 "github.com/tigera/api/pkg/apis/projectcalico/v3.EndpointsReportNamespace": schema_pkg_apis_projectcalico_v3_EndpointsReportNamespace(ref), 103 "github.com/tigera/api/pkg/apis/projectcalico/v3.EndpointsReportService": schema_pkg_apis_projectcalico_v3_EndpointsReportService(ref), 104 "github.com/tigera/api/pkg/apis/projectcalico/v3.EndpointsSelection": schema_pkg_apis_projectcalico_v3_EndpointsSelection(ref), 105 "github.com/tigera/api/pkg/apis/projectcalico/v3.EndpointsSummary": schema_pkg_apis_projectcalico_v3_EndpointsSummary(ref), 106 "github.com/tigera/api/pkg/apis/projectcalico/v3.EntityRule": schema_pkg_apis_projectcalico_v3_EntityRule(ref), 107 "github.com/tigera/api/pkg/apis/projectcalico/v3.ErrorCondition": schema_pkg_apis_projectcalico_v3_ErrorCondition(ref), 108 "github.com/tigera/api/pkg/apis/projectcalico/v3.EtcdConfig": schema_pkg_apis_projectcalico_v3_EtcdConfig(ref), 109 "github.com/tigera/api/pkg/apis/projectcalico/v3.ExternalNetwork": schema_pkg_apis_projectcalico_v3_ExternalNetwork(ref), 110 "github.com/tigera/api/pkg/apis/projectcalico/v3.ExternalNetworkList": schema_pkg_apis_projectcalico_v3_ExternalNetworkList(ref), 111 "github.com/tigera/api/pkg/apis/projectcalico/v3.ExternalNetworkSpec": schema_pkg_apis_projectcalico_v3_ExternalNetworkSpec(ref), 112 "github.com/tigera/api/pkg/apis/projectcalico/v3.FederatedServicesControllerConfig": schema_pkg_apis_projectcalico_v3_FederatedServicesControllerConfig(ref), 113 "github.com/tigera/api/pkg/apis/projectcalico/v3.FelixConfiguration": schema_pkg_apis_projectcalico_v3_FelixConfiguration(ref), 114 "github.com/tigera/api/pkg/apis/projectcalico/v3.FelixConfigurationList": schema_pkg_apis_projectcalico_v3_FelixConfigurationList(ref), 115 "github.com/tigera/api/pkg/apis/projectcalico/v3.FelixConfigurationSpec": schema_pkg_apis_projectcalico_v3_FelixConfigurationSpec(ref), 116 "github.com/tigera/api/pkg/apis/projectcalico/v3.FlowEndpoint": schema_pkg_apis_projectcalico_v3_FlowEndpoint(ref), 117 "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalAlert": schema_pkg_apis_projectcalico_v3_GlobalAlert(ref), 118 "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalAlertList": schema_pkg_apis_projectcalico_v3_GlobalAlertList(ref), 119 "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalAlertSpec": schema_pkg_apis_projectcalico_v3_GlobalAlertSpec(ref), 120 "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalAlertStatus": schema_pkg_apis_projectcalico_v3_GlobalAlertStatus(ref), 121 "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalAlertSubstitution": schema_pkg_apis_projectcalico_v3_GlobalAlertSubstitution(ref), 122 "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalAlertTemplate": schema_pkg_apis_projectcalico_v3_GlobalAlertTemplate(ref), 123 "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalAlertTemplateList": schema_pkg_apis_projectcalico_v3_GlobalAlertTemplateList(ref), 124 "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalNetworkPolicy": schema_pkg_apis_projectcalico_v3_GlobalNetworkPolicy(ref), 125 "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalNetworkPolicyList": schema_pkg_apis_projectcalico_v3_GlobalNetworkPolicyList(ref), 126 "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalNetworkPolicySpec": schema_pkg_apis_projectcalico_v3_GlobalNetworkPolicySpec(ref), 127 "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalNetworkSet": schema_pkg_apis_projectcalico_v3_GlobalNetworkSet(ref), 128 "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalNetworkSetList": schema_pkg_apis_projectcalico_v3_GlobalNetworkSetList(ref), 129 "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalNetworkSetSpec": schema_pkg_apis_projectcalico_v3_GlobalNetworkSetSpec(ref), 130 "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalNetworkSetSync": schema_pkg_apis_projectcalico_v3_GlobalNetworkSetSync(ref), 131 "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalReport": schema_pkg_apis_projectcalico_v3_GlobalReport(ref), 132 "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalReportList": schema_pkg_apis_projectcalico_v3_GlobalReportList(ref), 133 "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalReportType": schema_pkg_apis_projectcalico_v3_GlobalReportType(ref), 134 "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalReportTypeList": schema_pkg_apis_projectcalico_v3_GlobalReportTypeList(ref), 135 "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalThreatFeed": schema_pkg_apis_projectcalico_v3_GlobalThreatFeed(ref), 136 "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalThreatFeedList": schema_pkg_apis_projectcalico_v3_GlobalThreatFeedList(ref), 137 "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalThreatFeedSpec": schema_pkg_apis_projectcalico_v3_GlobalThreatFeedSpec(ref), 138 "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalThreatFeedStatus": schema_pkg_apis_projectcalico_v3_GlobalThreatFeedStatus(ref), 139 "github.com/tigera/api/pkg/apis/projectcalico/v3.HTTPHeader": schema_pkg_apis_projectcalico_v3_HTTPHeader(ref), 140 "github.com/tigera/api/pkg/apis/projectcalico/v3.HTTPHeaderSource": schema_pkg_apis_projectcalico_v3_HTTPHeaderSource(ref), 141 "github.com/tigera/api/pkg/apis/projectcalico/v3.HTTPMatch": schema_pkg_apis_projectcalico_v3_HTTPMatch(ref), 142 "github.com/tigera/api/pkg/apis/projectcalico/v3.HTTPPath": schema_pkg_apis_projectcalico_v3_HTTPPath(ref), 143 "github.com/tigera/api/pkg/apis/projectcalico/v3.HTTPPull": schema_pkg_apis_projectcalico_v3_HTTPPull(ref), 144 "github.com/tigera/api/pkg/apis/projectcalico/v3.HealthTimeoutOverride": schema_pkg_apis_projectcalico_v3_HealthTimeoutOverride(ref), 145 "github.com/tigera/api/pkg/apis/projectcalico/v3.HostEndpoint": schema_pkg_apis_projectcalico_v3_HostEndpoint(ref), 146 "github.com/tigera/api/pkg/apis/projectcalico/v3.HostEndpointList": schema_pkg_apis_projectcalico_v3_HostEndpointList(ref), 147 "github.com/tigera/api/pkg/apis/projectcalico/v3.HostEndpointSpec": schema_pkg_apis_projectcalico_v3_HostEndpointSpec(ref), 148 "github.com/tigera/api/pkg/apis/projectcalico/v3.ICMPFields": schema_pkg_apis_projectcalico_v3_ICMPFields(ref), 149 "github.com/tigera/api/pkg/apis/projectcalico/v3.IPAMConfiguration": schema_pkg_apis_projectcalico_v3_IPAMConfiguration(ref), 150 "github.com/tigera/api/pkg/apis/projectcalico/v3.IPAMConfigurationList": schema_pkg_apis_projectcalico_v3_IPAMConfigurationList(ref), 151 "github.com/tigera/api/pkg/apis/projectcalico/v3.IPAMConfigurationSpec": schema_pkg_apis_projectcalico_v3_IPAMConfigurationSpec(ref), 152 "github.com/tigera/api/pkg/apis/projectcalico/v3.IPIPConfiguration": schema_pkg_apis_projectcalico_v3_IPIPConfiguration(ref), 153 "github.com/tigera/api/pkg/apis/projectcalico/v3.IPPool": schema_pkg_apis_projectcalico_v3_IPPool(ref), 154 "github.com/tigera/api/pkg/apis/projectcalico/v3.IPPoolList": schema_pkg_apis_projectcalico_v3_IPPoolList(ref), 155 "github.com/tigera/api/pkg/apis/projectcalico/v3.IPPoolSpec": schema_pkg_apis_projectcalico_v3_IPPoolSpec(ref), 156 "github.com/tigera/api/pkg/apis/projectcalico/v3.IPReservation": schema_pkg_apis_projectcalico_v3_IPReservation(ref), 157 "github.com/tigera/api/pkg/apis/projectcalico/v3.IPReservationList": schema_pkg_apis_projectcalico_v3_IPReservationList(ref), 158 "github.com/tigera/api/pkg/apis/projectcalico/v3.IPReservationSpec": schema_pkg_apis_projectcalico_v3_IPReservationSpec(ref), 159 "github.com/tigera/api/pkg/apis/projectcalico/v3.KubeConfig": schema_pkg_apis_projectcalico_v3_KubeConfig(ref), 160 "github.com/tigera/api/pkg/apis/projectcalico/v3.KubeControllersConfiguration": schema_pkg_apis_projectcalico_v3_KubeControllersConfiguration(ref), 161 "github.com/tigera/api/pkg/apis/projectcalico/v3.KubeControllersConfigurationList": schema_pkg_apis_projectcalico_v3_KubeControllersConfigurationList(ref), 162 "github.com/tigera/api/pkg/apis/projectcalico/v3.KubeControllersConfigurationSpec": schema_pkg_apis_projectcalico_v3_KubeControllersConfigurationSpec(ref), 163 "github.com/tigera/api/pkg/apis/projectcalico/v3.KubeControllersConfigurationStatus": schema_pkg_apis_projectcalico_v3_KubeControllersConfigurationStatus(ref), 164 "github.com/tigera/api/pkg/apis/projectcalico/v3.LicenseKey": schema_pkg_apis_projectcalico_v3_LicenseKey(ref), 165 "github.com/tigera/api/pkg/apis/projectcalico/v3.LicenseKeyList": schema_pkg_apis_projectcalico_v3_LicenseKeyList(ref), 166 "github.com/tigera/api/pkg/apis/projectcalico/v3.LicenseKeySpec": schema_pkg_apis_projectcalico_v3_LicenseKeySpec(ref), 167 "github.com/tigera/api/pkg/apis/projectcalico/v3.LicenseKeyStatus": schema_pkg_apis_projectcalico_v3_LicenseKeyStatus(ref), 168 "github.com/tigera/api/pkg/apis/projectcalico/v3.ManagedCluster": schema_pkg_apis_projectcalico_v3_ManagedCluster(ref), 169 "github.com/tigera/api/pkg/apis/projectcalico/v3.ManagedClusterList": schema_pkg_apis_projectcalico_v3_ManagedClusterList(ref), 170 "github.com/tigera/api/pkg/apis/projectcalico/v3.ManagedClusterSpec": schema_pkg_apis_projectcalico_v3_ManagedClusterSpec(ref), 171 "github.com/tigera/api/pkg/apis/projectcalico/v3.ManagedClusterStatus": schema_pkg_apis_projectcalico_v3_ManagedClusterStatus(ref), 172 "github.com/tigera/api/pkg/apis/projectcalico/v3.ManagedClusterStatusCondition": schema_pkg_apis_projectcalico_v3_ManagedClusterStatusCondition(ref), 173 "github.com/tigera/api/pkg/apis/projectcalico/v3.NamedSelector": schema_pkg_apis_projectcalico_v3_NamedSelector(ref), 174 "github.com/tigera/api/pkg/apis/projectcalico/v3.NamesAndLabelsMatch": schema_pkg_apis_projectcalico_v3_NamesAndLabelsMatch(ref), 175 "github.com/tigera/api/pkg/apis/projectcalico/v3.NamespaceControllerConfig": schema_pkg_apis_projectcalico_v3_NamespaceControllerConfig(ref), 176 "github.com/tigera/api/pkg/apis/projectcalico/v3.NetworkPolicy": schema_pkg_apis_projectcalico_v3_NetworkPolicy(ref), 177 "github.com/tigera/api/pkg/apis/projectcalico/v3.NetworkPolicyList": schema_pkg_apis_projectcalico_v3_NetworkPolicyList(ref), 178 "github.com/tigera/api/pkg/apis/projectcalico/v3.NetworkPolicySpec": schema_pkg_apis_projectcalico_v3_NetworkPolicySpec(ref), 179 "github.com/tigera/api/pkg/apis/projectcalico/v3.NetworkSet": schema_pkg_apis_projectcalico_v3_NetworkSet(ref), 180 "github.com/tigera/api/pkg/apis/projectcalico/v3.NetworkSetList": schema_pkg_apis_projectcalico_v3_NetworkSetList(ref), 181 "github.com/tigera/api/pkg/apis/projectcalico/v3.NetworkSetSpec": schema_pkg_apis_projectcalico_v3_NetworkSetSpec(ref), 182 "github.com/tigera/api/pkg/apis/projectcalico/v3.NodeControllerConfig": schema_pkg_apis_projectcalico_v3_NodeControllerConfig(ref), 183 "github.com/tigera/api/pkg/apis/projectcalico/v3.PacketCapture": schema_pkg_apis_projectcalico_v3_PacketCapture(ref), 184 "github.com/tigera/api/pkg/apis/projectcalico/v3.PacketCaptureFile": schema_pkg_apis_projectcalico_v3_PacketCaptureFile(ref), 185 "github.com/tigera/api/pkg/apis/projectcalico/v3.PacketCaptureList": schema_pkg_apis_projectcalico_v3_PacketCaptureList(ref), 186 "github.com/tigera/api/pkg/apis/projectcalico/v3.PacketCaptureRule": schema_pkg_apis_projectcalico_v3_PacketCaptureRule(ref), 187 "github.com/tigera/api/pkg/apis/projectcalico/v3.PacketCaptureSpec": schema_pkg_apis_projectcalico_v3_PacketCaptureSpec(ref), 188 "github.com/tigera/api/pkg/apis/projectcalico/v3.PacketCaptureStatus": schema_pkg_apis_projectcalico_v3_PacketCaptureStatus(ref), 189 "github.com/tigera/api/pkg/apis/projectcalico/v3.PolicyControllerConfig": schema_pkg_apis_projectcalico_v3_PolicyControllerConfig(ref), 190 "github.com/tigera/api/pkg/apis/projectcalico/v3.PolicyRecommendationScope": schema_pkg_apis_projectcalico_v3_PolicyRecommendationScope(ref), 191 "github.com/tigera/api/pkg/apis/projectcalico/v3.PolicyRecommendationScopeList": schema_pkg_apis_projectcalico_v3_PolicyRecommendationScopeList(ref), 192 "github.com/tigera/api/pkg/apis/projectcalico/v3.PolicyRecommendationScopeNamespaceSpec": schema_pkg_apis_projectcalico_v3_PolicyRecommendationScopeNamespaceSpec(ref), 193 "github.com/tigera/api/pkg/apis/projectcalico/v3.PolicyRecommendationScopeSpec": schema_pkg_apis_projectcalico_v3_PolicyRecommendationScopeSpec(ref), 194 "github.com/tigera/api/pkg/apis/projectcalico/v3.PolicyRecommendationScopeStatus": schema_pkg_apis_projectcalico_v3_PolicyRecommendationScopeStatus(ref), 195 "github.com/tigera/api/pkg/apis/projectcalico/v3.PolicyRecommendationScopeStatusCondition": schema_pkg_apis_projectcalico_v3_PolicyRecommendationScopeStatusCondition(ref), 196 "github.com/tigera/api/pkg/apis/projectcalico/v3.Position": schema_pkg_apis_projectcalico_v3_Position(ref), 197 "github.com/tigera/api/pkg/apis/projectcalico/v3.PrefixAdvertisement": schema_pkg_apis_projectcalico_v3_PrefixAdvertisement(ref), 198 "github.com/tigera/api/pkg/apis/projectcalico/v3.Profile": schema_pkg_apis_projectcalico_v3_Profile(ref), 199 "github.com/tigera/api/pkg/apis/projectcalico/v3.ProfileList": schema_pkg_apis_projectcalico_v3_ProfileList(ref), 200 "github.com/tigera/api/pkg/apis/projectcalico/v3.ProfileSpec": schema_pkg_apis_projectcalico_v3_ProfileSpec(ref), 201 "github.com/tigera/api/pkg/apis/projectcalico/v3.ProtoPort": schema_pkg_apis_projectcalico_v3_ProtoPort(ref), 202 "github.com/tigera/api/pkg/apis/projectcalico/v3.Pull": schema_pkg_apis_projectcalico_v3_Pull(ref), 203 "github.com/tigera/api/pkg/apis/projectcalico/v3.RemoteClusterConfiguration": schema_pkg_apis_projectcalico_v3_RemoteClusterConfiguration(ref), 204 "github.com/tigera/api/pkg/apis/projectcalico/v3.RemoteClusterConfigurationList": schema_pkg_apis_projectcalico_v3_RemoteClusterConfigurationList(ref), 205 "github.com/tigera/api/pkg/apis/projectcalico/v3.RemoteClusterConfigurationSpec": schema_pkg_apis_projectcalico_v3_RemoteClusterConfigurationSpec(ref), 206 "github.com/tigera/api/pkg/apis/projectcalico/v3.RemoteClusterSyncOptions": schema_pkg_apis_projectcalico_v3_RemoteClusterSyncOptions(ref), 207 "github.com/tigera/api/pkg/apis/projectcalico/v3.ReportData": schema_pkg_apis_projectcalico_v3_ReportData(ref), 208 "github.com/tigera/api/pkg/apis/projectcalico/v3.ReportJob": schema_pkg_apis_projectcalico_v3_ReportJob(ref), 209 "github.com/tigera/api/pkg/apis/projectcalico/v3.ReportSpec": schema_pkg_apis_projectcalico_v3_ReportSpec(ref), 210 "github.com/tigera/api/pkg/apis/projectcalico/v3.ReportStatus": schema_pkg_apis_projectcalico_v3_ReportStatus(ref), 211 "github.com/tigera/api/pkg/apis/projectcalico/v3.ReportTemplate": schema_pkg_apis_projectcalico_v3_ReportTemplate(ref), 212 "github.com/tigera/api/pkg/apis/projectcalico/v3.ReportTypeSpec": schema_pkg_apis_projectcalico_v3_ReportTypeSpec(ref), 213 "github.com/tigera/api/pkg/apis/projectcalico/v3.ResourceID": schema_pkg_apis_projectcalico_v3_ResourceID(ref), 214 "github.com/tigera/api/pkg/apis/projectcalico/v3.RouteTableIDRange": schema_pkg_apis_projectcalico_v3_RouteTableIDRange(ref), 215 "github.com/tigera/api/pkg/apis/projectcalico/v3.RouteTableRange": schema_pkg_apis_projectcalico_v3_RouteTableRange(ref), 216 "github.com/tigera/api/pkg/apis/projectcalico/v3.Rule": schema_pkg_apis_projectcalico_v3_Rule(ref), 217 "github.com/tigera/api/pkg/apis/projectcalico/v3.RuleMetadata": schema_pkg_apis_projectcalico_v3_RuleMetadata(ref), 218 "github.com/tigera/api/pkg/apis/projectcalico/v3.SecurityEventWebhook": schema_pkg_apis_projectcalico_v3_SecurityEventWebhook(ref), 219 "github.com/tigera/api/pkg/apis/projectcalico/v3.SecurityEventWebhookConfigVar": schema_pkg_apis_projectcalico_v3_SecurityEventWebhookConfigVar(ref), 220 "github.com/tigera/api/pkg/apis/projectcalico/v3.SecurityEventWebhookConfigVarSource": schema_pkg_apis_projectcalico_v3_SecurityEventWebhookConfigVarSource(ref), 221 "github.com/tigera/api/pkg/apis/projectcalico/v3.SecurityEventWebhookList": schema_pkg_apis_projectcalico_v3_SecurityEventWebhookList(ref), 222 "github.com/tigera/api/pkg/apis/projectcalico/v3.SecurityEventWebhookSpec": schema_pkg_apis_projectcalico_v3_SecurityEventWebhookSpec(ref), 223 "github.com/tigera/api/pkg/apis/projectcalico/v3.ServiceAccountControllerConfig": schema_pkg_apis_projectcalico_v3_ServiceAccountControllerConfig(ref), 224 "github.com/tigera/api/pkg/apis/projectcalico/v3.ServiceAccountMatch": schema_pkg_apis_projectcalico_v3_ServiceAccountMatch(ref), 225 "github.com/tigera/api/pkg/apis/projectcalico/v3.ServiceClusterIPBlock": schema_pkg_apis_projectcalico_v3_ServiceClusterIPBlock(ref), 226 "github.com/tigera/api/pkg/apis/projectcalico/v3.ServiceExternalIPBlock": schema_pkg_apis_projectcalico_v3_ServiceExternalIPBlock(ref), 227 "github.com/tigera/api/pkg/apis/projectcalico/v3.ServiceLoadBalancerIPBlock": schema_pkg_apis_projectcalico_v3_ServiceLoadBalancerIPBlock(ref), 228 "github.com/tigera/api/pkg/apis/projectcalico/v3.ServiceMatch": schema_pkg_apis_projectcalico_v3_ServiceMatch(ref), 229 "github.com/tigera/api/pkg/apis/projectcalico/v3.StagedGlobalNetworkPolicy": schema_pkg_apis_projectcalico_v3_StagedGlobalNetworkPolicy(ref), 230 "github.com/tigera/api/pkg/apis/projectcalico/v3.StagedGlobalNetworkPolicyList": schema_pkg_apis_projectcalico_v3_StagedGlobalNetworkPolicyList(ref), 231 "github.com/tigera/api/pkg/apis/projectcalico/v3.StagedGlobalNetworkPolicySpec": schema_pkg_apis_projectcalico_v3_StagedGlobalNetworkPolicySpec(ref), 232 "github.com/tigera/api/pkg/apis/projectcalico/v3.StagedKubernetesNetworkPolicy": schema_pkg_apis_projectcalico_v3_StagedKubernetesNetworkPolicy(ref), 233 "github.com/tigera/api/pkg/apis/projectcalico/v3.StagedKubernetesNetworkPolicyList": schema_pkg_apis_projectcalico_v3_StagedKubernetesNetworkPolicyList(ref), 234 "github.com/tigera/api/pkg/apis/projectcalico/v3.StagedKubernetesNetworkPolicySpec": schema_pkg_apis_projectcalico_v3_StagedKubernetesNetworkPolicySpec(ref), 235 "github.com/tigera/api/pkg/apis/projectcalico/v3.StagedNetworkPolicy": schema_pkg_apis_projectcalico_v3_StagedNetworkPolicy(ref), 236 "github.com/tigera/api/pkg/apis/projectcalico/v3.StagedNetworkPolicyList": schema_pkg_apis_projectcalico_v3_StagedNetworkPolicyList(ref), 237 "github.com/tigera/api/pkg/apis/projectcalico/v3.StagedNetworkPolicySpec": schema_pkg_apis_projectcalico_v3_StagedNetworkPolicySpec(ref), 238 "github.com/tigera/api/pkg/apis/projectcalico/v3.ThreatFeedFormat": schema_pkg_apis_projectcalico_v3_ThreatFeedFormat(ref), 239 "github.com/tigera/api/pkg/apis/projectcalico/v3.ThreatFeedFormatCSV": schema_pkg_apis_projectcalico_v3_ThreatFeedFormatCSV(ref), 240 "github.com/tigera/api/pkg/apis/projectcalico/v3.ThreatFeedFormatJSON": schema_pkg_apis_projectcalico_v3_ThreatFeedFormatJSON(ref), 241 "github.com/tigera/api/pkg/apis/projectcalico/v3.ThreatFeedFormatNewlineDelimited": schema_pkg_apis_projectcalico_v3_ThreatFeedFormatNewlineDelimited(ref), 242 "github.com/tigera/api/pkg/apis/projectcalico/v3.Tier": schema_pkg_apis_projectcalico_v3_Tier(ref), 243 "github.com/tigera/api/pkg/apis/projectcalico/v3.TierList": schema_pkg_apis_projectcalico_v3_TierList(ref), 244 "github.com/tigera/api/pkg/apis/projectcalico/v3.TierSpec": schema_pkg_apis_projectcalico_v3_TierSpec(ref), 245 "github.com/tigera/api/pkg/apis/projectcalico/v3.UIDashboard": schema_pkg_apis_projectcalico_v3_UIDashboard(ref), 246 "github.com/tigera/api/pkg/apis/projectcalico/v3.UIGraphLayer": schema_pkg_apis_projectcalico_v3_UIGraphLayer(ref), 247 "github.com/tigera/api/pkg/apis/projectcalico/v3.UIGraphNode": schema_pkg_apis_projectcalico_v3_UIGraphNode(ref), 248 "github.com/tigera/api/pkg/apis/projectcalico/v3.UIGraphNodeView": schema_pkg_apis_projectcalico_v3_UIGraphNodeView(ref), 249 "github.com/tigera/api/pkg/apis/projectcalico/v3.UIGraphView": schema_pkg_apis_projectcalico_v3_UIGraphView(ref), 250 "github.com/tigera/api/pkg/apis/projectcalico/v3.UISettings": schema_pkg_apis_projectcalico_v3_UISettings(ref), 251 "github.com/tigera/api/pkg/apis/projectcalico/v3.UISettingsGroup": schema_pkg_apis_projectcalico_v3_UISettingsGroup(ref), 252 "github.com/tigera/api/pkg/apis/projectcalico/v3.UISettingsGroupList": schema_pkg_apis_projectcalico_v3_UISettingsGroupList(ref), 253 "github.com/tigera/api/pkg/apis/projectcalico/v3.UISettingsGroupSpec": schema_pkg_apis_projectcalico_v3_UISettingsGroupSpec(ref), 254 "github.com/tigera/api/pkg/apis/projectcalico/v3.UISettingsList": schema_pkg_apis_projectcalico_v3_UISettingsList(ref), 255 "github.com/tigera/api/pkg/apis/projectcalico/v3.UISettingsSpec": schema_pkg_apis_projectcalico_v3_UISettingsSpec(ref), 256 "github.com/tigera/api/pkg/apis/projectcalico/v3.WorkloadEndpointControllerConfig": schema_pkg_apis_projectcalico_v3_WorkloadEndpointControllerConfig(ref), 257 "github.com/tigera/api/pkg/lib/numorstring.Port": schema_api_pkg_lib_numorstring_Port(ref), 258 "github.com/tigera/api/pkg/lib/numorstring.Protocol": schema_api_pkg_lib_numorstring_Protocol(ref), 259 "github.com/tigera/api/pkg/lib/numorstring.Uint8OrString": schema_api_pkg_lib_numorstring_Uint8OrString(ref), 260 "k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource": schema_k8sio_api_core_v1_AWSElasticBlockStoreVolumeSource(ref), 261 "k8s.io/api/core/v1.Affinity": schema_k8sio_api_core_v1_Affinity(ref), 262 "k8s.io/api/core/v1.AttachedVolume": schema_k8sio_api_core_v1_AttachedVolume(ref), 263 "k8s.io/api/core/v1.AvoidPods": schema_k8sio_api_core_v1_AvoidPods(ref), 264 "k8s.io/api/core/v1.AzureDiskVolumeSource": schema_k8sio_api_core_v1_AzureDiskVolumeSource(ref), 265 "k8s.io/api/core/v1.AzureFilePersistentVolumeSource": schema_k8sio_api_core_v1_AzureFilePersistentVolumeSource(ref), 266 "k8s.io/api/core/v1.AzureFileVolumeSource": schema_k8sio_api_core_v1_AzureFileVolumeSource(ref), 267 "k8s.io/api/core/v1.Binding": schema_k8sio_api_core_v1_Binding(ref), 268 "k8s.io/api/core/v1.CSIPersistentVolumeSource": schema_k8sio_api_core_v1_CSIPersistentVolumeSource(ref), 269 "k8s.io/api/core/v1.CSIVolumeSource": schema_k8sio_api_core_v1_CSIVolumeSource(ref), 270 "k8s.io/api/core/v1.Capabilities": schema_k8sio_api_core_v1_Capabilities(ref), 271 "k8s.io/api/core/v1.CephFSPersistentVolumeSource": schema_k8sio_api_core_v1_CephFSPersistentVolumeSource(ref), 272 "k8s.io/api/core/v1.CephFSVolumeSource": schema_k8sio_api_core_v1_CephFSVolumeSource(ref), 273 "k8s.io/api/core/v1.CinderPersistentVolumeSource": schema_k8sio_api_core_v1_CinderPersistentVolumeSource(ref), 274 "k8s.io/api/core/v1.CinderVolumeSource": schema_k8sio_api_core_v1_CinderVolumeSource(ref), 275 "k8s.io/api/core/v1.ClaimSource": schema_k8sio_api_core_v1_ClaimSource(ref), 276 "k8s.io/api/core/v1.ClientIPConfig": schema_k8sio_api_core_v1_ClientIPConfig(ref), 277 "k8s.io/api/core/v1.ComponentCondition": schema_k8sio_api_core_v1_ComponentCondition(ref), 278 "k8s.io/api/core/v1.ComponentStatus": schema_k8sio_api_core_v1_ComponentStatus(ref), 279 "k8s.io/api/core/v1.ComponentStatusList": schema_k8sio_api_core_v1_ComponentStatusList(ref), 280 "k8s.io/api/core/v1.ConfigMap": schema_k8sio_api_core_v1_ConfigMap(ref), 281 "k8s.io/api/core/v1.ConfigMapEnvSource": schema_k8sio_api_core_v1_ConfigMapEnvSource(ref), 282 "k8s.io/api/core/v1.ConfigMapKeySelector": schema_k8sio_api_core_v1_ConfigMapKeySelector(ref), 283 "k8s.io/api/core/v1.ConfigMapList": schema_k8sio_api_core_v1_ConfigMapList(ref), 284 "k8s.io/api/core/v1.ConfigMapNodeConfigSource": schema_k8sio_api_core_v1_ConfigMapNodeConfigSource(ref), 285 "k8s.io/api/core/v1.ConfigMapProjection": schema_k8sio_api_core_v1_ConfigMapProjection(ref), 286 "k8s.io/api/core/v1.ConfigMapVolumeSource": schema_k8sio_api_core_v1_ConfigMapVolumeSource(ref), 287 "k8s.io/api/core/v1.Container": schema_k8sio_api_core_v1_Container(ref), 288 "k8s.io/api/core/v1.ContainerImage": schema_k8sio_api_core_v1_ContainerImage(ref), 289 "k8s.io/api/core/v1.ContainerPort": schema_k8sio_api_core_v1_ContainerPort(ref), 290 "k8s.io/api/core/v1.ContainerResizePolicy": schema_k8sio_api_core_v1_ContainerResizePolicy(ref), 291 "k8s.io/api/core/v1.ContainerState": schema_k8sio_api_core_v1_ContainerState(ref), 292 "k8s.io/api/core/v1.ContainerStateRunning": schema_k8sio_api_core_v1_ContainerStateRunning(ref), 293 "k8s.io/api/core/v1.ContainerStateTerminated": schema_k8sio_api_core_v1_ContainerStateTerminated(ref), 294 "k8s.io/api/core/v1.ContainerStateWaiting": schema_k8sio_api_core_v1_ContainerStateWaiting(ref), 295 "k8s.io/api/core/v1.ContainerStatus": schema_k8sio_api_core_v1_ContainerStatus(ref), 296 "k8s.io/api/core/v1.DaemonEndpoint": schema_k8sio_api_core_v1_DaemonEndpoint(ref), 297 "k8s.io/api/core/v1.DownwardAPIProjection": schema_k8sio_api_core_v1_DownwardAPIProjection(ref), 298 "k8s.io/api/core/v1.DownwardAPIVolumeFile": schema_k8sio_api_core_v1_DownwardAPIVolumeFile(ref), 299 "k8s.io/api/core/v1.DownwardAPIVolumeSource": schema_k8sio_api_core_v1_DownwardAPIVolumeSource(ref), 300 "k8s.io/api/core/v1.EmptyDirVolumeSource": schema_k8sio_api_core_v1_EmptyDirVolumeSource(ref), 301 "k8s.io/api/core/v1.EndpointAddress": schema_k8sio_api_core_v1_EndpointAddress(ref), 302 "k8s.io/api/core/v1.EndpointPort": schema_k8sio_api_core_v1_EndpointPort(ref), 303 "k8s.io/api/core/v1.EndpointSubset": schema_k8sio_api_core_v1_EndpointSubset(ref), 304 "k8s.io/api/core/v1.Endpoints": schema_k8sio_api_core_v1_Endpoints(ref), 305 "k8s.io/api/core/v1.EndpointsList": schema_k8sio_api_core_v1_EndpointsList(ref), 306 "k8s.io/api/core/v1.EnvFromSource": schema_k8sio_api_core_v1_EnvFromSource(ref), 307 "k8s.io/api/core/v1.EnvVar": schema_k8sio_api_core_v1_EnvVar(ref), 308 "k8s.io/api/core/v1.EnvVarSource": schema_k8sio_api_core_v1_EnvVarSource(ref), 309 "k8s.io/api/core/v1.EphemeralContainer": schema_k8sio_api_core_v1_EphemeralContainer(ref), 310 "k8s.io/api/core/v1.EphemeralContainerCommon": schema_k8sio_api_core_v1_EphemeralContainerCommon(ref), 311 "k8s.io/api/core/v1.EphemeralVolumeSource": schema_k8sio_api_core_v1_EphemeralVolumeSource(ref), 312 "k8s.io/api/core/v1.Event": schema_k8sio_api_core_v1_Event(ref), 313 "k8s.io/api/core/v1.EventList": schema_k8sio_api_core_v1_EventList(ref), 314 "k8s.io/api/core/v1.EventSeries": schema_k8sio_api_core_v1_EventSeries(ref), 315 "k8s.io/api/core/v1.EventSource": schema_k8sio_api_core_v1_EventSource(ref), 316 "k8s.io/api/core/v1.ExecAction": schema_k8sio_api_core_v1_ExecAction(ref), 317 "k8s.io/api/core/v1.FCVolumeSource": schema_k8sio_api_core_v1_FCVolumeSource(ref), 318 "k8s.io/api/core/v1.FlexPersistentVolumeSource": schema_k8sio_api_core_v1_FlexPersistentVolumeSource(ref), 319 "k8s.io/api/core/v1.FlexVolumeSource": schema_k8sio_api_core_v1_FlexVolumeSource(ref), 320 "k8s.io/api/core/v1.FlockerVolumeSource": schema_k8sio_api_core_v1_FlockerVolumeSource(ref), 321 "k8s.io/api/core/v1.GCEPersistentDiskVolumeSource": schema_k8sio_api_core_v1_GCEPersistentDiskVolumeSource(ref), 322 "k8s.io/api/core/v1.GRPCAction": schema_k8sio_api_core_v1_GRPCAction(ref), 323 "k8s.io/api/core/v1.GitRepoVolumeSource": schema_k8sio_api_core_v1_GitRepoVolumeSource(ref), 324 "k8s.io/api/core/v1.GlusterfsPersistentVolumeSource": schema_k8sio_api_core_v1_GlusterfsPersistentVolumeSource(ref), 325 "k8s.io/api/core/v1.GlusterfsVolumeSource": schema_k8sio_api_core_v1_GlusterfsVolumeSource(ref), 326 "k8s.io/api/core/v1.HTTPGetAction": schema_k8sio_api_core_v1_HTTPGetAction(ref), 327 "k8s.io/api/core/v1.HTTPHeader": schema_k8sio_api_core_v1_HTTPHeader(ref), 328 "k8s.io/api/core/v1.HostAlias": schema_k8sio_api_core_v1_HostAlias(ref), 329 "k8s.io/api/core/v1.HostPathVolumeSource": schema_k8sio_api_core_v1_HostPathVolumeSource(ref), 330 "k8s.io/api/core/v1.ISCSIPersistentVolumeSource": schema_k8sio_api_core_v1_ISCSIPersistentVolumeSource(ref), 331 "k8s.io/api/core/v1.ISCSIVolumeSource": schema_k8sio_api_core_v1_ISCSIVolumeSource(ref), 332 "k8s.io/api/core/v1.KeyToPath": schema_k8sio_api_core_v1_KeyToPath(ref), 333 "k8s.io/api/core/v1.Lifecycle": schema_k8sio_api_core_v1_Lifecycle(ref), 334 "k8s.io/api/core/v1.LifecycleHandler": schema_k8sio_api_core_v1_LifecycleHandler(ref), 335 "k8s.io/api/core/v1.LimitRange": schema_k8sio_api_core_v1_LimitRange(ref), 336 "k8s.io/api/core/v1.LimitRangeItem": schema_k8sio_api_core_v1_LimitRangeItem(ref), 337 "k8s.io/api/core/v1.LimitRangeList": schema_k8sio_api_core_v1_LimitRangeList(ref), 338 "k8s.io/api/core/v1.LimitRangeSpec": schema_k8sio_api_core_v1_LimitRangeSpec(ref), 339 "k8s.io/api/core/v1.List": schema_k8sio_api_core_v1_List(ref), 340 "k8s.io/api/core/v1.LoadBalancerIngress": schema_k8sio_api_core_v1_LoadBalancerIngress(ref), 341 "k8s.io/api/core/v1.LoadBalancerStatus": schema_k8sio_api_core_v1_LoadBalancerStatus(ref), 342 "k8s.io/api/core/v1.LocalObjectReference": schema_k8sio_api_core_v1_LocalObjectReference(ref), 343 "k8s.io/api/core/v1.LocalVolumeSource": schema_k8sio_api_core_v1_LocalVolumeSource(ref), 344 "k8s.io/api/core/v1.NFSVolumeSource": schema_k8sio_api_core_v1_NFSVolumeSource(ref), 345 "k8s.io/api/core/v1.Namespace": schema_k8sio_api_core_v1_Namespace(ref), 346 "k8s.io/api/core/v1.NamespaceCondition": schema_k8sio_api_core_v1_NamespaceCondition(ref), 347 "k8s.io/api/core/v1.NamespaceList": schema_k8sio_api_core_v1_NamespaceList(ref), 348 "k8s.io/api/core/v1.NamespaceSpec": schema_k8sio_api_core_v1_NamespaceSpec(ref), 349 "k8s.io/api/core/v1.NamespaceStatus": schema_k8sio_api_core_v1_NamespaceStatus(ref), 350 "k8s.io/api/core/v1.Node": schema_k8sio_api_core_v1_Node(ref), 351 "k8s.io/api/core/v1.NodeAddress": schema_k8sio_api_core_v1_NodeAddress(ref), 352 "k8s.io/api/core/v1.NodeAffinity": schema_k8sio_api_core_v1_NodeAffinity(ref), 353 "k8s.io/api/core/v1.NodeCondition": schema_k8sio_api_core_v1_NodeCondition(ref), 354 "k8s.io/api/core/v1.NodeConfigSource": schema_k8sio_api_core_v1_NodeConfigSource(ref), 355 "k8s.io/api/core/v1.NodeConfigStatus": schema_k8sio_api_core_v1_NodeConfigStatus(ref), 356 "k8s.io/api/core/v1.NodeDaemonEndpoints": schema_k8sio_api_core_v1_NodeDaemonEndpoints(ref), 357 "k8s.io/api/core/v1.NodeList": schema_k8sio_api_core_v1_NodeList(ref), 358 "k8s.io/api/core/v1.NodeProxyOptions": schema_k8sio_api_core_v1_NodeProxyOptions(ref), 359 "k8s.io/api/core/v1.NodeResources": schema_k8sio_api_core_v1_NodeResources(ref), 360 "k8s.io/api/core/v1.NodeSelector": schema_k8sio_api_core_v1_NodeSelector(ref), 361 "k8s.io/api/core/v1.NodeSelectorRequirement": schema_k8sio_api_core_v1_NodeSelectorRequirement(ref), 362 "k8s.io/api/core/v1.NodeSelectorTerm": schema_k8sio_api_core_v1_NodeSelectorTerm(ref), 363 "k8s.io/api/core/v1.NodeSpec": schema_k8sio_api_core_v1_NodeSpec(ref), 364 "k8s.io/api/core/v1.NodeStatus": schema_k8sio_api_core_v1_NodeStatus(ref), 365 "k8s.io/api/core/v1.NodeSystemInfo": schema_k8sio_api_core_v1_NodeSystemInfo(ref), 366 "k8s.io/api/core/v1.ObjectFieldSelector": schema_k8sio_api_core_v1_ObjectFieldSelector(ref), 367 "k8s.io/api/core/v1.ObjectReference": schema_k8sio_api_core_v1_ObjectReference(ref), 368 "k8s.io/api/core/v1.PersistentVolume": schema_k8sio_api_core_v1_PersistentVolume(ref), 369 "k8s.io/api/core/v1.PersistentVolumeClaim": schema_k8sio_api_core_v1_PersistentVolumeClaim(ref), 370 "k8s.io/api/core/v1.PersistentVolumeClaimCondition": schema_k8sio_api_core_v1_PersistentVolumeClaimCondition(ref), 371 "k8s.io/api/core/v1.PersistentVolumeClaimList": schema_k8sio_api_core_v1_PersistentVolumeClaimList(ref), 372 "k8s.io/api/core/v1.PersistentVolumeClaimSpec": schema_k8sio_api_core_v1_PersistentVolumeClaimSpec(ref), 373 "k8s.io/api/core/v1.PersistentVolumeClaimStatus": schema_k8sio_api_core_v1_PersistentVolumeClaimStatus(ref), 374 "k8s.io/api/core/v1.PersistentVolumeClaimTemplate": schema_k8sio_api_core_v1_PersistentVolumeClaimTemplate(ref), 375 "k8s.io/api/core/v1.PersistentVolumeClaimVolumeSource": schema_k8sio_api_core_v1_PersistentVolumeClaimVolumeSource(ref), 376 "k8s.io/api/core/v1.PersistentVolumeList": schema_k8sio_api_core_v1_PersistentVolumeList(ref), 377 "k8s.io/api/core/v1.PersistentVolumeSource": schema_k8sio_api_core_v1_PersistentVolumeSource(ref), 378 "k8s.io/api/core/v1.PersistentVolumeSpec": schema_k8sio_api_core_v1_PersistentVolumeSpec(ref), 379 "k8s.io/api/core/v1.PersistentVolumeStatus": schema_k8sio_api_core_v1_PersistentVolumeStatus(ref), 380 "k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource": schema_k8sio_api_core_v1_PhotonPersistentDiskVolumeSource(ref), 381 "k8s.io/api/core/v1.Pod": schema_k8sio_api_core_v1_Pod(ref), 382 "k8s.io/api/core/v1.PodAffinity": schema_k8sio_api_core_v1_PodAffinity(ref), 383 "k8s.io/api/core/v1.PodAffinityTerm": schema_k8sio_api_core_v1_PodAffinityTerm(ref), 384 "k8s.io/api/core/v1.PodAntiAffinity": schema_k8sio_api_core_v1_PodAntiAffinity(ref), 385 "k8s.io/api/core/v1.PodAttachOptions": schema_k8sio_api_core_v1_PodAttachOptions(ref), 386 "k8s.io/api/core/v1.PodCondition": schema_k8sio_api_core_v1_PodCondition(ref), 387 "k8s.io/api/core/v1.PodDNSConfig": schema_k8sio_api_core_v1_PodDNSConfig(ref), 388 "k8s.io/api/core/v1.PodDNSConfigOption": schema_k8sio_api_core_v1_PodDNSConfigOption(ref), 389 "k8s.io/api/core/v1.PodExecOptions": schema_k8sio_api_core_v1_PodExecOptions(ref), 390 "k8s.io/api/core/v1.PodIP": schema_k8sio_api_core_v1_PodIP(ref), 391 "k8s.io/api/core/v1.PodList": schema_k8sio_api_core_v1_PodList(ref), 392 "k8s.io/api/core/v1.PodLogOptions": schema_k8sio_api_core_v1_PodLogOptions(ref), 393 "k8s.io/api/core/v1.PodOS": schema_k8sio_api_core_v1_PodOS(ref), 394 "k8s.io/api/core/v1.PodPortForwardOptions": schema_k8sio_api_core_v1_PodPortForwardOptions(ref), 395 "k8s.io/api/core/v1.PodProxyOptions": schema_k8sio_api_core_v1_PodProxyOptions(ref), 396 "k8s.io/api/core/v1.PodReadinessGate": schema_k8sio_api_core_v1_PodReadinessGate(ref), 397 "k8s.io/api/core/v1.PodResourceClaim": schema_k8sio_api_core_v1_PodResourceClaim(ref), 398 "k8s.io/api/core/v1.PodSchedulingGate": schema_k8sio_api_core_v1_PodSchedulingGate(ref), 399 "k8s.io/api/core/v1.PodSecurityContext": schema_k8sio_api_core_v1_PodSecurityContext(ref), 400 "k8s.io/api/core/v1.PodSignature": schema_k8sio_api_core_v1_PodSignature(ref), 401 "k8s.io/api/core/v1.PodSpec": schema_k8sio_api_core_v1_PodSpec(ref), 402 "k8s.io/api/core/v1.PodStatus": schema_k8sio_api_core_v1_PodStatus(ref), 403 "k8s.io/api/core/v1.PodStatusResult": schema_k8sio_api_core_v1_PodStatusResult(ref), 404 "k8s.io/api/core/v1.PodTemplate": schema_k8sio_api_core_v1_PodTemplate(ref), 405 "k8s.io/api/core/v1.PodTemplateList": schema_k8sio_api_core_v1_PodTemplateList(ref), 406 "k8s.io/api/core/v1.PodTemplateSpec": schema_k8sio_api_core_v1_PodTemplateSpec(ref), 407 "k8s.io/api/core/v1.PortStatus": schema_k8sio_api_core_v1_PortStatus(ref), 408 "k8s.io/api/core/v1.PortworxVolumeSource": schema_k8sio_api_core_v1_PortworxVolumeSource(ref), 409 "k8s.io/api/core/v1.PreferAvoidPodsEntry": schema_k8sio_api_core_v1_PreferAvoidPodsEntry(ref), 410 "k8s.io/api/core/v1.PreferredSchedulingTerm": schema_k8sio_api_core_v1_PreferredSchedulingTerm(ref), 411 "k8s.io/api/core/v1.Probe": schema_k8sio_api_core_v1_Probe(ref), 412 "k8s.io/api/core/v1.ProbeHandler": schema_k8sio_api_core_v1_ProbeHandler(ref), 413 "k8s.io/api/core/v1.ProjectedVolumeSource": schema_k8sio_api_core_v1_ProjectedVolumeSource(ref), 414 "k8s.io/api/core/v1.QuobyteVolumeSource": schema_k8sio_api_core_v1_QuobyteVolumeSource(ref), 415 "k8s.io/api/core/v1.RBDPersistentVolumeSource": schema_k8sio_api_core_v1_RBDPersistentVolumeSource(ref), 416 "k8s.io/api/core/v1.RBDVolumeSource": schema_k8sio_api_core_v1_RBDVolumeSource(ref), 417 "k8s.io/api/core/v1.RangeAllocation": schema_k8sio_api_core_v1_RangeAllocation(ref), 418 "k8s.io/api/core/v1.ReplicationController": schema_k8sio_api_core_v1_ReplicationController(ref), 419 "k8s.io/api/core/v1.ReplicationControllerCondition": schema_k8sio_api_core_v1_ReplicationControllerCondition(ref), 420 "k8s.io/api/core/v1.ReplicationControllerList": schema_k8sio_api_core_v1_ReplicationControllerList(ref), 421 "k8s.io/api/core/v1.ReplicationControllerSpec": schema_k8sio_api_core_v1_ReplicationControllerSpec(ref), 422 "k8s.io/api/core/v1.ReplicationControllerStatus": schema_k8sio_api_core_v1_ReplicationControllerStatus(ref), 423 "k8s.io/api/core/v1.ResourceClaim": schema_k8sio_api_core_v1_ResourceClaim(ref), 424 "k8s.io/api/core/v1.ResourceFieldSelector": schema_k8sio_api_core_v1_ResourceFieldSelector(ref), 425 "k8s.io/api/core/v1.ResourceQuota": schema_k8sio_api_core_v1_ResourceQuota(ref), 426 "k8s.io/api/core/v1.ResourceQuotaList": schema_k8sio_api_core_v1_ResourceQuotaList(ref), 427 "k8s.io/api/core/v1.ResourceQuotaSpec": schema_k8sio_api_core_v1_ResourceQuotaSpec(ref), 428 "k8s.io/api/core/v1.ResourceQuotaStatus": schema_k8sio_api_core_v1_ResourceQuotaStatus(ref), 429 "k8s.io/api/core/v1.ResourceRequirements": schema_k8sio_api_core_v1_ResourceRequirements(ref), 430 "k8s.io/api/core/v1.SELinuxOptions": schema_k8sio_api_core_v1_SELinuxOptions(ref), 431 "k8s.io/api/core/v1.ScaleIOPersistentVolumeSource": schema_k8sio_api_core_v1_ScaleIOPersistentVolumeSource(ref), 432 "k8s.io/api/core/v1.ScaleIOVolumeSource": schema_k8sio_api_core_v1_ScaleIOVolumeSource(ref), 433 "k8s.io/api/core/v1.ScopeSelector": schema_k8sio_api_core_v1_ScopeSelector(ref), 434 "k8s.io/api/core/v1.ScopedResourceSelectorRequirement": schema_k8sio_api_core_v1_ScopedResourceSelectorRequirement(ref), 435 "k8s.io/api/core/v1.SeccompProfile": schema_k8sio_api_core_v1_SeccompProfile(ref), 436 "k8s.io/api/core/v1.Secret": schema_k8sio_api_core_v1_Secret(ref), 437 "k8s.io/api/core/v1.SecretEnvSource": schema_k8sio_api_core_v1_SecretEnvSource(ref), 438 "k8s.io/api/core/v1.SecretKeySelector": schema_k8sio_api_core_v1_SecretKeySelector(ref), 439 "k8s.io/api/core/v1.SecretList": schema_k8sio_api_core_v1_SecretList(ref), 440 "k8s.io/api/core/v1.SecretProjection": schema_k8sio_api_core_v1_SecretProjection(ref), 441 "k8s.io/api/core/v1.SecretReference": schema_k8sio_api_core_v1_SecretReference(ref), 442 "k8s.io/api/core/v1.SecretVolumeSource": schema_k8sio_api_core_v1_SecretVolumeSource(ref), 443 "k8s.io/api/core/v1.SecurityContext": schema_k8sio_api_core_v1_SecurityContext(ref), 444 "k8s.io/api/core/v1.SerializedReference": schema_k8sio_api_core_v1_SerializedReference(ref), 445 "k8s.io/api/core/v1.Service": schema_k8sio_api_core_v1_Service(ref), 446 "k8s.io/api/core/v1.ServiceAccount": schema_k8sio_api_core_v1_ServiceAccount(ref), 447 "k8s.io/api/core/v1.ServiceAccountList": schema_k8sio_api_core_v1_ServiceAccountList(ref), 448 "k8s.io/api/core/v1.ServiceAccountTokenProjection": schema_k8sio_api_core_v1_ServiceAccountTokenProjection(ref), 449 "k8s.io/api/core/v1.ServiceList": schema_k8sio_api_core_v1_ServiceList(ref), 450 "k8s.io/api/core/v1.ServicePort": schema_k8sio_api_core_v1_ServicePort(ref), 451 "k8s.io/api/core/v1.ServiceProxyOptions": schema_k8sio_api_core_v1_ServiceProxyOptions(ref), 452 "k8s.io/api/core/v1.ServiceSpec": schema_k8sio_api_core_v1_ServiceSpec(ref), 453 "k8s.io/api/core/v1.ServiceStatus": schema_k8sio_api_core_v1_ServiceStatus(ref), 454 "k8s.io/api/core/v1.SessionAffinityConfig": schema_k8sio_api_core_v1_SessionAffinityConfig(ref), 455 "k8s.io/api/core/v1.StorageOSPersistentVolumeSource": schema_k8sio_api_core_v1_StorageOSPersistentVolumeSource(ref), 456 "k8s.io/api/core/v1.StorageOSVolumeSource": schema_k8sio_api_core_v1_StorageOSVolumeSource(ref), 457 "k8s.io/api/core/v1.Sysctl": schema_k8sio_api_core_v1_Sysctl(ref), 458 "k8s.io/api/core/v1.TCPSocketAction": schema_k8sio_api_core_v1_TCPSocketAction(ref), 459 "k8s.io/api/core/v1.Taint": schema_k8sio_api_core_v1_Taint(ref), 460 "k8s.io/api/core/v1.Toleration": schema_k8sio_api_core_v1_Toleration(ref), 461 "k8s.io/api/core/v1.TopologySelectorLabelRequirement": schema_k8sio_api_core_v1_TopologySelectorLabelRequirement(ref), 462 "k8s.io/api/core/v1.TopologySelectorTerm": schema_k8sio_api_core_v1_TopologySelectorTerm(ref), 463 "k8s.io/api/core/v1.TopologySpreadConstraint": schema_k8sio_api_core_v1_TopologySpreadConstraint(ref), 464 "k8s.io/api/core/v1.TypedLocalObjectReference": schema_k8sio_api_core_v1_TypedLocalObjectReference(ref), 465 "k8s.io/api/core/v1.TypedObjectReference": schema_k8sio_api_core_v1_TypedObjectReference(ref), 466 "k8s.io/api/core/v1.Volume": schema_k8sio_api_core_v1_Volume(ref), 467 "k8s.io/api/core/v1.VolumeDevice": schema_k8sio_api_core_v1_VolumeDevice(ref), 468 "k8s.io/api/core/v1.VolumeMount": schema_k8sio_api_core_v1_VolumeMount(ref), 469 "k8s.io/api/core/v1.VolumeNodeAffinity": schema_k8sio_api_core_v1_VolumeNodeAffinity(ref), 470 "k8s.io/api/core/v1.VolumeProjection": schema_k8sio_api_core_v1_VolumeProjection(ref), 471 "k8s.io/api/core/v1.VolumeSource": schema_k8sio_api_core_v1_VolumeSource(ref), 472 "k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource": schema_k8sio_api_core_v1_VsphereVirtualDiskVolumeSource(ref), 473 "k8s.io/api/core/v1.WeightedPodAffinityTerm": schema_k8sio_api_core_v1_WeightedPodAffinityTerm(ref), 474 "k8s.io/api/core/v1.WindowsSecurityContextOptions": schema_k8sio_api_core_v1_WindowsSecurityContextOptions(ref), 475 "k8s.io/api/networking/v1.HTTPIngressPath": schema_k8sio_api_networking_v1_HTTPIngressPath(ref), 476 "k8s.io/api/networking/v1.HTTPIngressRuleValue": schema_k8sio_api_networking_v1_HTTPIngressRuleValue(ref), 477 "k8s.io/api/networking/v1.IPBlock": schema_k8sio_api_networking_v1_IPBlock(ref), 478 "k8s.io/api/networking/v1.Ingress": schema_k8sio_api_networking_v1_Ingress(ref), 479 "k8s.io/api/networking/v1.IngressBackend": schema_k8sio_api_networking_v1_IngressBackend(ref), 480 "k8s.io/api/networking/v1.IngressClass": schema_k8sio_api_networking_v1_IngressClass(ref), 481 "k8s.io/api/networking/v1.IngressClassList": schema_k8sio_api_networking_v1_IngressClassList(ref), 482 "k8s.io/api/networking/v1.IngressClassParametersReference": schema_k8sio_api_networking_v1_IngressClassParametersReference(ref), 483 "k8s.io/api/networking/v1.IngressClassSpec": schema_k8sio_api_networking_v1_IngressClassSpec(ref), 484 "k8s.io/api/networking/v1.IngressList": schema_k8sio_api_networking_v1_IngressList(ref), 485 "k8s.io/api/networking/v1.IngressLoadBalancerIngress": schema_k8sio_api_networking_v1_IngressLoadBalancerIngress(ref), 486 "k8s.io/api/networking/v1.IngressLoadBalancerStatus": schema_k8sio_api_networking_v1_IngressLoadBalancerStatus(ref), 487 "k8s.io/api/networking/v1.IngressPortStatus": schema_k8sio_api_networking_v1_IngressPortStatus(ref), 488 "k8s.io/api/networking/v1.IngressRule": schema_k8sio_api_networking_v1_IngressRule(ref), 489 "k8s.io/api/networking/v1.IngressRuleValue": schema_k8sio_api_networking_v1_IngressRuleValue(ref), 490 "k8s.io/api/networking/v1.IngressServiceBackend": schema_k8sio_api_networking_v1_IngressServiceBackend(ref), 491 "k8s.io/api/networking/v1.IngressSpec": schema_k8sio_api_networking_v1_IngressSpec(ref), 492 "k8s.io/api/networking/v1.IngressStatus": schema_k8sio_api_networking_v1_IngressStatus(ref), 493 "k8s.io/api/networking/v1.IngressTLS": schema_k8sio_api_networking_v1_IngressTLS(ref), 494 "k8s.io/api/networking/v1.NetworkPolicy": schema_k8sio_api_networking_v1_NetworkPolicy(ref), 495 "k8s.io/api/networking/v1.NetworkPolicyEgressRule": schema_k8sio_api_networking_v1_NetworkPolicyEgressRule(ref), 496 "k8s.io/api/networking/v1.NetworkPolicyIngressRule": schema_k8sio_api_networking_v1_NetworkPolicyIngressRule(ref), 497 "k8s.io/api/networking/v1.NetworkPolicyList": schema_k8sio_api_networking_v1_NetworkPolicyList(ref), 498 "k8s.io/api/networking/v1.NetworkPolicyPeer": schema_k8sio_api_networking_v1_NetworkPolicyPeer(ref), 499 "k8s.io/api/networking/v1.NetworkPolicyPort": schema_k8sio_api_networking_v1_NetworkPolicyPort(ref), 500 "k8s.io/api/networking/v1.NetworkPolicySpec": schema_k8sio_api_networking_v1_NetworkPolicySpec(ref), 501 "k8s.io/api/networking/v1.NetworkPolicyStatus": schema_k8sio_api_networking_v1_NetworkPolicyStatus(ref), 502 "k8s.io/api/networking/v1.ServiceBackendPort": schema_k8sio_api_networking_v1_ServiceBackendPort(ref), 503 "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup": schema_pkg_apis_meta_v1_APIGroup(ref), 504 "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroupList": schema_pkg_apis_meta_v1_APIGroupList(ref), 505 "k8s.io/apimachinery/pkg/apis/meta/v1.APIResource": schema_pkg_apis_meta_v1_APIResource(ref), 506 "k8s.io/apimachinery/pkg/apis/meta/v1.APIResourceList": schema_pkg_apis_meta_v1_APIResourceList(ref), 507 "k8s.io/apimachinery/pkg/apis/meta/v1.APIVersions": schema_pkg_apis_meta_v1_APIVersions(ref), 508 "k8s.io/apimachinery/pkg/apis/meta/v1.ApplyOptions": schema_pkg_apis_meta_v1_ApplyOptions(ref), 509 "k8s.io/apimachinery/pkg/apis/meta/v1.Condition": schema_pkg_apis_meta_v1_Condition(ref), 510 "k8s.io/apimachinery/pkg/apis/meta/v1.CreateOptions": schema_pkg_apis_meta_v1_CreateOptions(ref), 511 "k8s.io/apimachinery/pkg/apis/meta/v1.DeleteOptions": schema_pkg_apis_meta_v1_DeleteOptions(ref), 512 "k8s.io/apimachinery/pkg/apis/meta/v1.Duration": schema_pkg_apis_meta_v1_Duration(ref), 513 "k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1": schema_pkg_apis_meta_v1_FieldsV1(ref), 514 "k8s.io/apimachinery/pkg/apis/meta/v1.GetOptions": schema_pkg_apis_meta_v1_GetOptions(ref), 515 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupKind": schema_pkg_apis_meta_v1_GroupKind(ref), 516 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupResource": schema_pkg_apis_meta_v1_GroupResource(ref), 517 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersion": schema_pkg_apis_meta_v1_GroupVersion(ref), 518 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery": schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref), 519 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionKind": schema_pkg_apis_meta_v1_GroupVersionKind(ref), 520 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionResource": schema_pkg_apis_meta_v1_GroupVersionResource(ref), 521 "k8s.io/apimachinery/pkg/apis/meta/v1.InternalEvent": schema_pkg_apis_meta_v1_InternalEvent(ref), 522 "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector": schema_pkg_apis_meta_v1_LabelSelector(ref), 523 "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement": schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref), 524 "k8s.io/apimachinery/pkg/apis/meta/v1.List": schema_pkg_apis_meta_v1_List(ref), 525 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta": schema_pkg_apis_meta_v1_ListMeta(ref), 526 "k8s.io/apimachinery/pkg/apis/meta/v1.ListOptions": schema_pkg_apis_meta_v1_ListOptions(ref), 527 "k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry": schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref), 528 "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime": schema_pkg_apis_meta_v1_MicroTime(ref), 529 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta": schema_pkg_apis_meta_v1_ObjectMeta(ref), 530 "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference": schema_pkg_apis_meta_v1_OwnerReference(ref), 531 "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata": schema_pkg_apis_meta_v1_PartialObjectMetadata(ref), 532 "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadataList": schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref), 533 "k8s.io/apimachinery/pkg/apis/meta/v1.Patch": schema_pkg_apis_meta_v1_Patch(ref), 534 "k8s.io/apimachinery/pkg/apis/meta/v1.PatchOptions": schema_pkg_apis_meta_v1_PatchOptions(ref), 535 "k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions": schema_pkg_apis_meta_v1_Preconditions(ref), 536 "k8s.io/apimachinery/pkg/apis/meta/v1.RootPaths": schema_pkg_apis_meta_v1_RootPaths(ref), 537 "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR": schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref), 538 "k8s.io/apimachinery/pkg/apis/meta/v1.Status": schema_pkg_apis_meta_v1_Status(ref), 539 "k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause": schema_pkg_apis_meta_v1_StatusCause(ref), 540 "k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails": schema_pkg_apis_meta_v1_StatusDetails(ref), 541 "k8s.io/apimachinery/pkg/apis/meta/v1.Table": schema_pkg_apis_meta_v1_Table(ref), 542 "k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition": schema_pkg_apis_meta_v1_TableColumnDefinition(ref), 543 "k8s.io/apimachinery/pkg/apis/meta/v1.TableOptions": schema_pkg_apis_meta_v1_TableOptions(ref), 544 "k8s.io/apimachinery/pkg/apis/meta/v1.TableRow": schema_pkg_apis_meta_v1_TableRow(ref), 545 "k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition": schema_pkg_apis_meta_v1_TableRowCondition(ref), 546 "k8s.io/apimachinery/pkg/apis/meta/v1.Time": schema_pkg_apis_meta_v1_Time(ref), 547 "k8s.io/apimachinery/pkg/apis/meta/v1.Timestamp": schema_pkg_apis_meta_v1_Timestamp(ref), 548 "k8s.io/apimachinery/pkg/apis/meta/v1.TypeMeta": schema_pkg_apis_meta_v1_TypeMeta(ref), 549 "k8s.io/apimachinery/pkg/apis/meta/v1.UpdateOptions": schema_pkg_apis_meta_v1_UpdateOptions(ref), 550 "k8s.io/apimachinery/pkg/apis/meta/v1.WatchEvent": schema_pkg_apis_meta_v1_WatchEvent(ref), 551 "k8s.io/apimachinery/pkg/runtime.RawExtension": schema_k8sio_apimachinery_pkg_runtime_RawExtension(ref), 552 "k8s.io/apimachinery/pkg/runtime.TypeMeta": schema_k8sio_apimachinery_pkg_runtime_TypeMeta(ref), 553 "k8s.io/apimachinery/pkg/runtime.Unknown": schema_k8sio_apimachinery_pkg_runtime_Unknown(ref), 554 "k8s.io/apimachinery/pkg/util/intstr.IntOrString": schema_apimachinery_pkg_util_intstr_IntOrString(ref), 555 "k8s.io/apimachinery/pkg/version.Info": schema_k8sio_apimachinery_pkg_version_Info(ref), 556 } 557 } 558 559 func schema_pkg_apis_projectcalico_v3_AlertException(ref common.ReferenceCallback) common.OpenAPIDefinition { 560 return common.OpenAPIDefinition{ 561 Schema: spec.Schema{ 562 SchemaProps: spec.SchemaProps{ 563 Description: "AlertException defines exceptions for alert events.", 564 Type: []string{"object"}, 565 Properties: map[string]spec.Schema{ 566 "kind": { 567 SchemaProps: spec.SchemaProps{ 568 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 569 Type: []string{"string"}, 570 Format: "", 571 }, 572 }, 573 "apiVersion": { 574 SchemaProps: spec.SchemaProps{ 575 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 576 Type: []string{"string"}, 577 Format: "", 578 }, 579 }, 580 "metadata": { 581 SchemaProps: spec.SchemaProps{ 582 Default: map[string]interface{}{}, 583 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 584 }, 585 }, 586 "spec": { 587 SchemaProps: spec.SchemaProps{ 588 Default: map[string]interface{}{}, 589 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.AlertExceptionSpec"), 590 }, 591 }, 592 "status": { 593 SchemaProps: spec.SchemaProps{ 594 Default: map[string]interface{}{}, 595 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.AlertExceptionStatus"), 596 }, 597 }, 598 }, 599 }, 600 }, 601 Dependencies: []string{ 602 "github.com/tigera/api/pkg/apis/projectcalico/v3.AlertExceptionSpec", "github.com/tigera/api/pkg/apis/projectcalico/v3.AlertExceptionStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 603 } 604 } 605 606 func schema_pkg_apis_projectcalico_v3_AlertExceptionList(ref common.ReferenceCallback) common.OpenAPIDefinition { 607 return common.OpenAPIDefinition{ 608 Schema: spec.Schema{ 609 SchemaProps: spec.SchemaProps{ 610 Description: "AlertExceptionList contains a list of AlertException resources.", 611 Type: []string{"object"}, 612 Properties: map[string]spec.Schema{ 613 "kind": { 614 SchemaProps: spec.SchemaProps{ 615 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 616 Type: []string{"string"}, 617 Format: "", 618 }, 619 }, 620 "apiVersion": { 621 SchemaProps: spec.SchemaProps{ 622 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 623 Type: []string{"string"}, 624 Format: "", 625 }, 626 }, 627 "metadata": { 628 SchemaProps: spec.SchemaProps{ 629 Default: map[string]interface{}{}, 630 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 631 }, 632 }, 633 "items": { 634 SchemaProps: spec.SchemaProps{ 635 Type: []string{"array"}, 636 Items: &spec.SchemaOrArray{ 637 Schema: &spec.Schema{ 638 SchemaProps: spec.SchemaProps{ 639 Default: map[string]interface{}{}, 640 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.AlertException"), 641 }, 642 }, 643 }, 644 }, 645 }, 646 }, 647 Required: []string{"metadata", "items"}, 648 }, 649 }, 650 Dependencies: []string{ 651 "github.com/tigera/api/pkg/apis/projectcalico/v3.AlertException", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 652 } 653 } 654 655 func schema_pkg_apis_projectcalico_v3_AlertExceptionSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 656 return common.OpenAPIDefinition{ 657 Schema: spec.Schema{ 658 SchemaProps: spec.SchemaProps{ 659 Description: "AlertExceptionSpec contains the specification for an alert exception resource.", 660 Type: []string{"object"}, 661 Properties: map[string]spec.Schema{ 662 "description": { 663 SchemaProps: spec.SchemaProps{ 664 Description: "The description is displayed by the UI.", 665 Default: "", 666 Type: []string{"string"}, 667 Format: "", 668 }, 669 }, 670 "selector": { 671 SchemaProps: spec.SchemaProps{ 672 Description: "Selector defines a query string for alert events to be excluded from UI search results.", 673 Default: "", 674 Type: []string{"string"}, 675 Format: "", 676 }, 677 }, 678 "startTime": { 679 SchemaProps: spec.SchemaProps{ 680 Description: "StartTime defines the start time from which this alert exception will take effect. If the value is in the past, matched alerts will be filtered immediately. If the value is changed to a future time, alert exceptions will restart at that time.", 681 Default: map[string]interface{}{}, 682 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 683 }, 684 }, 685 "endTime": { 686 SchemaProps: spec.SchemaProps{ 687 Description: "EndTime defines the end time at which this alert exception will expire. If omitted the alert exception filtering will continue indefinitely.", 688 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 689 }, 690 }, 691 }, 692 Required: []string{"description", "selector", "startTime"}, 693 }, 694 }, 695 Dependencies: []string{ 696 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 697 } 698 } 699 700 func schema_pkg_apis_projectcalico_v3_AlertExceptionStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 701 return common.OpenAPIDefinition{ 702 Schema: spec.Schema{ 703 SchemaProps: spec.SchemaProps{ 704 Description: "AlertExceptionStatus contains the status of an alert exception.", 705 Type: []string{"object"}, 706 }, 707 }, 708 } 709 } 710 711 func schema_pkg_apis_projectcalico_v3_AuditEventsSelection(ref common.ReferenceCallback) common.OpenAPIDefinition { 712 return common.OpenAPIDefinition{ 713 Schema: spec.Schema{ 714 SchemaProps: spec.SchemaProps{ 715 Description: "AuditEventsSelection defines which set of resources should be audited.", 716 Type: []string{"object"}, 717 Properties: map[string]spec.Schema{ 718 "resources": { 719 SchemaProps: spec.SchemaProps{ 720 Description: "Resources lists the resources that will be included in the audit logs in the ReportData. Blank fields in the listed ResourceID structs are treated as wildcards.", 721 Type: []string{"array"}, 722 Items: &spec.SchemaOrArray{ 723 Schema: &spec.Schema{ 724 SchemaProps: spec.SchemaProps{ 725 Default: map[string]interface{}{}, 726 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.AuditResource"), 727 }, 728 }, 729 }, 730 }, 731 }, 732 }, 733 }, 734 }, 735 Dependencies: []string{ 736 "github.com/tigera/api/pkg/apis/projectcalico/v3.AuditResource"}, 737 } 738 } 739 740 func schema_pkg_apis_projectcalico_v3_AuditResource(ref common.ReferenceCallback) common.OpenAPIDefinition { 741 return common.OpenAPIDefinition{ 742 Schema: spec.Schema{ 743 SchemaProps: spec.SchemaProps{ 744 Description: "AuditResource is used to filter Audit events in the Report configuration.\n\nAn empty field value indicates a wildcard. For example, if Resource is set to \"networkpolicies\" and all other fields are blank then this filter would include all NetworkPolicy resources across all namespaces, and would include both Calico and Kubernetes resource types.", 745 Type: []string{"object"}, 746 Properties: map[string]spec.Schema{ 747 "resource": { 748 SchemaProps: spec.SchemaProps{ 749 Description: "The resource type. The format is the lowercase plural as used in audit event selection and RBAC configuration.", 750 Type: []string{"string"}, 751 Format: "", 752 }, 753 }, 754 "apiGroup": { 755 SchemaProps: spec.SchemaProps{ 756 Description: "APIGroup is the name of the API group that contains the referred object (e.g. projectcalico.org).", 757 Type: []string{"string"}, 758 Format: "", 759 }, 760 }, 761 "apiVersion": { 762 SchemaProps: spec.SchemaProps{ 763 Description: "APIVersion is the version of the API group that contains the referred object (e.g. v3).", 764 Type: []string{"string"}, 765 Format: "", 766 }, 767 }, 768 "name": { 769 SchemaProps: spec.SchemaProps{ 770 Description: "The resource name.", 771 Type: []string{"string"}, 772 Format: "", 773 }, 774 }, 775 "namespace": { 776 SchemaProps: spec.SchemaProps{ 777 Description: "The resource namespace.", 778 Type: []string{"string"}, 779 Format: "", 780 }, 781 }, 782 }, 783 }, 784 }, 785 } 786 } 787 788 func schema_pkg_apis_projectcalico_v3_AuditSummary(ref common.ReferenceCallback) common.OpenAPIDefinition { 789 return common.OpenAPIDefinition{ 790 Schema: spec.Schema{ 791 SchemaProps: spec.SchemaProps{ 792 Type: []string{"object"}, 793 Properties: map[string]spec.Schema{ 794 "numTotal": { 795 SchemaProps: spec.SchemaProps{ 796 Description: "The total number of in-scope audit logs.", 797 Type: []string{"integer"}, 798 Format: "int32", 799 }, 800 }, 801 "numCreate": { 802 SchemaProps: spec.SchemaProps{ 803 Description: "The number of in-scope audit log create events.", 804 Type: []string{"integer"}, 805 Format: "int32", 806 }, 807 }, 808 "numModify": { 809 SchemaProps: spec.SchemaProps{ 810 Description: "The number of in-scope audit log patch or replace events.", 811 Type: []string{"integer"}, 812 Format: "int32", 813 }, 814 }, 815 "numDelete": { 816 SchemaProps: spec.SchemaProps{ 817 Description: "The number of in-scope audit log delete events.", 818 Type: []string{"integer"}, 819 Format: "int32", 820 }, 821 }, 822 }, 823 }, 824 }, 825 } 826 } 827 828 func schema_pkg_apis_projectcalico_v3_AuthenticationReview(ref common.ReferenceCallback) common.OpenAPIDefinition { 829 return common.OpenAPIDefinition{ 830 Schema: spec.Schema{ 831 SchemaProps: spec.SchemaProps{ 832 Type: []string{"object"}, 833 Properties: map[string]spec.Schema{ 834 "kind": { 835 SchemaProps: spec.SchemaProps{ 836 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 837 Type: []string{"string"}, 838 Format: "", 839 }, 840 }, 841 "apiVersion": { 842 SchemaProps: spec.SchemaProps{ 843 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 844 Type: []string{"string"}, 845 Format: "", 846 }, 847 }, 848 "metadata": { 849 SchemaProps: spec.SchemaProps{ 850 Default: map[string]interface{}{}, 851 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 852 }, 853 }, 854 "status": { 855 SchemaProps: spec.SchemaProps{ 856 Default: map[string]interface{}{}, 857 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.AuthenticationReviewStatus"), 858 }, 859 }, 860 }, 861 }, 862 }, 863 Dependencies: []string{ 864 "github.com/tigera/api/pkg/apis/projectcalico/v3.AuthenticationReviewStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 865 } 866 } 867 868 func schema_pkg_apis_projectcalico_v3_AuthenticationReviewList(ref common.ReferenceCallback) common.OpenAPIDefinition { 869 return common.OpenAPIDefinition{ 870 Schema: spec.Schema{ 871 SchemaProps: spec.SchemaProps{ 872 Description: "AuthenticationReviewList is a list of AuthenticationReview objects.", 873 Type: []string{"object"}, 874 Properties: map[string]spec.Schema{ 875 "kind": { 876 SchemaProps: spec.SchemaProps{ 877 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 878 Type: []string{"string"}, 879 Format: "", 880 }, 881 }, 882 "apiVersion": { 883 SchemaProps: spec.SchemaProps{ 884 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 885 Type: []string{"string"}, 886 Format: "", 887 }, 888 }, 889 "metadata": { 890 SchemaProps: spec.SchemaProps{ 891 Default: map[string]interface{}{}, 892 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 893 }, 894 }, 895 "items": { 896 SchemaProps: spec.SchemaProps{ 897 Type: []string{"array"}, 898 Items: &spec.SchemaOrArray{ 899 Schema: &spec.Schema{ 900 SchemaProps: spec.SchemaProps{ 901 Default: map[string]interface{}{}, 902 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.AuthenticationReview"), 903 }, 904 }, 905 }, 906 }, 907 }, 908 }, 909 Required: []string{"items"}, 910 }, 911 }, 912 Dependencies: []string{ 913 "github.com/tigera/api/pkg/apis/projectcalico/v3.AuthenticationReview", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 914 } 915 } 916 917 func schema_pkg_apis_projectcalico_v3_AuthenticationReviewStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 918 return common.OpenAPIDefinition{ 919 Schema: spec.Schema{ 920 SchemaProps: spec.SchemaProps{ 921 Type: []string{"object"}, 922 Properties: map[string]spec.Schema{ 923 "name": { 924 SchemaProps: spec.SchemaProps{ 925 Type: []string{"string"}, 926 Format: "", 927 }, 928 }, 929 "uid": { 930 SchemaProps: spec.SchemaProps{ 931 Type: []string{"string"}, 932 Format: "", 933 }, 934 }, 935 "groups": { 936 SchemaProps: spec.SchemaProps{ 937 Type: []string{"array"}, 938 Items: &spec.SchemaOrArray{ 939 Schema: &spec.Schema{ 940 SchemaProps: spec.SchemaProps{ 941 Default: "", 942 Type: []string{"string"}, 943 Format: "", 944 }, 945 }, 946 }, 947 }, 948 }, 949 "extra": { 950 SchemaProps: spec.SchemaProps{ 951 Type: []string{"object"}, 952 AdditionalProperties: &spec.SchemaOrBool{ 953 Allows: true, 954 Schema: &spec.Schema{ 955 SchemaProps: spec.SchemaProps{ 956 Type: []string{"array"}, 957 Items: &spec.SchemaOrArray{ 958 Schema: &spec.Schema{ 959 SchemaProps: spec.SchemaProps{ 960 Default: "", 961 Type: []string{"string"}, 962 Format: "", 963 }, 964 }, 965 }, 966 }, 967 }, 968 }, 969 }, 970 }, 971 }, 972 }, 973 }, 974 } 975 } 976 977 func schema_pkg_apis_projectcalico_v3_AuthorizationReview(ref common.ReferenceCallback) common.OpenAPIDefinition { 978 return common.OpenAPIDefinition{ 979 Schema: spec.Schema{ 980 SchemaProps: spec.SchemaProps{ 981 Type: []string{"object"}, 982 Properties: map[string]spec.Schema{ 983 "kind": { 984 SchemaProps: spec.SchemaProps{ 985 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 986 Type: []string{"string"}, 987 Format: "", 988 }, 989 }, 990 "apiVersion": { 991 SchemaProps: spec.SchemaProps{ 992 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 993 Type: []string{"string"}, 994 Format: "", 995 }, 996 }, 997 "metadata": { 998 SchemaProps: spec.SchemaProps{ 999 Default: map[string]interface{}{}, 1000 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 1001 }, 1002 }, 1003 "spec": { 1004 SchemaProps: spec.SchemaProps{ 1005 Default: map[string]interface{}{}, 1006 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.AuthorizationReviewSpec"), 1007 }, 1008 }, 1009 "status": { 1010 SchemaProps: spec.SchemaProps{ 1011 Default: map[string]interface{}{}, 1012 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.AuthorizationReviewStatus"), 1013 }, 1014 }, 1015 }, 1016 }, 1017 }, 1018 Dependencies: []string{ 1019 "github.com/tigera/api/pkg/apis/projectcalico/v3.AuthorizationReviewSpec", "github.com/tigera/api/pkg/apis/projectcalico/v3.AuthorizationReviewStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 1020 } 1021 } 1022 1023 func schema_pkg_apis_projectcalico_v3_AuthorizationReviewList(ref common.ReferenceCallback) common.OpenAPIDefinition { 1024 return common.OpenAPIDefinition{ 1025 Schema: spec.Schema{ 1026 SchemaProps: spec.SchemaProps{ 1027 Description: "AuthorizationReviewList is a list of AuthorizationReview objects.", 1028 Type: []string{"object"}, 1029 Properties: map[string]spec.Schema{ 1030 "kind": { 1031 SchemaProps: spec.SchemaProps{ 1032 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1033 Type: []string{"string"}, 1034 Format: "", 1035 }, 1036 }, 1037 "apiVersion": { 1038 SchemaProps: spec.SchemaProps{ 1039 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 1040 Type: []string{"string"}, 1041 Format: "", 1042 }, 1043 }, 1044 "metadata": { 1045 SchemaProps: spec.SchemaProps{ 1046 Default: map[string]interface{}{}, 1047 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 1048 }, 1049 }, 1050 "items": { 1051 SchemaProps: spec.SchemaProps{ 1052 Type: []string{"array"}, 1053 Items: &spec.SchemaOrArray{ 1054 Schema: &spec.Schema{ 1055 SchemaProps: spec.SchemaProps{ 1056 Default: map[string]interface{}{}, 1057 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.AuthorizationReview"), 1058 }, 1059 }, 1060 }, 1061 }, 1062 }, 1063 }, 1064 Required: []string{"items"}, 1065 }, 1066 }, 1067 Dependencies: []string{ 1068 "github.com/tigera/api/pkg/apis/projectcalico/v3.AuthorizationReview", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 1069 } 1070 } 1071 1072 func schema_pkg_apis_projectcalico_v3_AuthorizationReviewResourceAttributes(ref common.ReferenceCallback) common.OpenAPIDefinition { 1073 return common.OpenAPIDefinition{ 1074 Schema: spec.Schema{ 1075 SchemaProps: spec.SchemaProps{ 1076 Type: []string{"object"}, 1077 Properties: map[string]spec.Schema{ 1078 "apiGroup": { 1079 SchemaProps: spec.SchemaProps{ 1080 Description: "The API Group to check.", 1081 Type: []string{"string"}, 1082 Format: "", 1083 }, 1084 }, 1085 "resources": { 1086 SchemaProps: spec.SchemaProps{ 1087 Description: "The set of resources to check within the same API Group.", 1088 Type: []string{"array"}, 1089 Items: &spec.SchemaOrArray{ 1090 Schema: &spec.Schema{ 1091 SchemaProps: spec.SchemaProps{ 1092 Default: "", 1093 Type: []string{"string"}, 1094 Format: "", 1095 }, 1096 }, 1097 }, 1098 }, 1099 }, 1100 "verbs": { 1101 SchemaProps: spec.SchemaProps{ 1102 Description: "The set of verbs to check. This is expanded for each resource and within the same API Group.", 1103 Type: []string{"array"}, 1104 Items: &spec.SchemaOrArray{ 1105 Schema: &spec.Schema{ 1106 SchemaProps: spec.SchemaProps{ 1107 Default: "", 1108 Type: []string{"string"}, 1109 Format: "", 1110 }, 1111 }, 1112 }, 1113 }, 1114 }, 1115 }, 1116 }, 1117 }, 1118 } 1119 } 1120 1121 func schema_pkg_apis_projectcalico_v3_AuthorizationReviewSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 1122 return common.OpenAPIDefinition{ 1123 Schema: spec.Schema{ 1124 SchemaProps: spec.SchemaProps{ 1125 Type: []string{"object"}, 1126 Properties: map[string]spec.Schema{ 1127 "resourceAttributes": { 1128 SchemaProps: spec.SchemaProps{ 1129 Description: "The set of resource attributes that are being checked. Each resource attribute is expanded into individual kind/resource and verbs.", 1130 Type: []string{"array"}, 1131 Items: &spec.SchemaOrArray{ 1132 Schema: &spec.Schema{ 1133 SchemaProps: spec.SchemaProps{ 1134 Default: map[string]interface{}{}, 1135 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.AuthorizationReviewResourceAttributes"), 1136 }, 1137 }, 1138 }, 1139 }, 1140 }, 1141 }, 1142 }, 1143 }, 1144 Dependencies: []string{ 1145 "github.com/tigera/api/pkg/apis/projectcalico/v3.AuthorizationReviewResourceAttributes"}, 1146 } 1147 } 1148 1149 func schema_pkg_apis_projectcalico_v3_AuthorizationReviewStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 1150 return common.OpenAPIDefinition{ 1151 Schema: spec.Schema{ 1152 SchemaProps: spec.SchemaProps{ 1153 Type: []string{"object"}, 1154 Properties: map[string]spec.Schema{ 1155 "authorizedResourceVerbs": { 1156 SchemaProps: spec.SchemaProps{ 1157 Description: "The set of authorized resource actions. A given API Group and resource combination will appear at most once in this slice.", 1158 Type: []string{"array"}, 1159 Items: &spec.SchemaOrArray{ 1160 Schema: &spec.Schema{ 1161 SchemaProps: spec.SchemaProps{ 1162 Default: map[string]interface{}{}, 1163 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.AuthorizedResourceVerbs"), 1164 }, 1165 }, 1166 }, 1167 }, 1168 }, 1169 }, 1170 }, 1171 }, 1172 Dependencies: []string{ 1173 "github.com/tigera/api/pkg/apis/projectcalico/v3.AuthorizedResourceVerbs"}, 1174 } 1175 } 1176 1177 func schema_pkg_apis_projectcalico_v3_AuthorizedResourceGroup(ref common.ReferenceCallback) common.OpenAPIDefinition { 1178 return common.OpenAPIDefinition{ 1179 Schema: spec.Schema{ 1180 SchemaProps: spec.SchemaProps{ 1181 Type: []string{"object"}, 1182 Properties: map[string]spec.Schema{ 1183 "tier": { 1184 SchemaProps: spec.SchemaProps{ 1185 Description: "The tier. This is only valid for tiered policies, and tiers.", 1186 Type: []string{"string"}, 1187 Format: "", 1188 }, 1189 }, 1190 "namespace": { 1191 SchemaProps: spec.SchemaProps{ 1192 Description: "The namespace. If this is empty then the user is authorized cluster-wide (i.e. across all namespaces). This will always be empty for cluster-scoped resources when the user is authorized.", 1193 Default: "", 1194 Type: []string{"string"}, 1195 Format: "", 1196 }, 1197 }, 1198 "uiSettingsGroup": { 1199 SchemaProps: spec.SchemaProps{ 1200 Description: "The UISettingsGroup name. This is only valid for uisettingsgroup/data sub resources.", 1201 Default: "", 1202 Type: []string{"string"}, 1203 Format: "", 1204 }, 1205 }, 1206 "managedCluster": { 1207 SchemaProps: spec.SchemaProps{ 1208 Description: "ManagedCluster is the name of the ManagedCluster. This is only valid for managedclusters.", 1209 Default: "", 1210 Type: []string{"string"}, 1211 Format: "", 1212 }, 1213 }, 1214 }, 1215 Required: []string{"namespace", "uiSettingsGroup", "managedCluster"}, 1216 }, 1217 }, 1218 } 1219 } 1220 1221 func schema_pkg_apis_projectcalico_v3_AuthorizedResourceVerb(ref common.ReferenceCallback) common.OpenAPIDefinition { 1222 return common.OpenAPIDefinition{ 1223 Schema: spec.Schema{ 1224 SchemaProps: spec.SchemaProps{ 1225 Type: []string{"object"}, 1226 Properties: map[string]spec.Schema{ 1227 "verb": { 1228 SchemaProps: spec.SchemaProps{ 1229 Description: "The verb.", 1230 Default: "", 1231 Type: []string{"string"}, 1232 Format: "", 1233 }, 1234 }, 1235 "resourceGroups": { 1236 SchemaProps: spec.SchemaProps{ 1237 Description: "The group of resource instances that are authorized for this verb.", 1238 Type: []string{"array"}, 1239 Items: &spec.SchemaOrArray{ 1240 Schema: &spec.Schema{ 1241 SchemaProps: spec.SchemaProps{ 1242 Default: map[string]interface{}{}, 1243 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.AuthorizedResourceGroup"), 1244 }, 1245 }, 1246 }, 1247 }, 1248 }, 1249 }, 1250 Required: []string{"verb", "resourceGroups"}, 1251 }, 1252 }, 1253 Dependencies: []string{ 1254 "github.com/tigera/api/pkg/apis/projectcalico/v3.AuthorizedResourceGroup"}, 1255 } 1256 } 1257 1258 func schema_pkg_apis_projectcalico_v3_AuthorizedResourceVerbs(ref common.ReferenceCallback) common.OpenAPIDefinition { 1259 return common.OpenAPIDefinition{ 1260 Schema: spec.Schema{ 1261 SchemaProps: spec.SchemaProps{ 1262 Type: []string{"object"}, 1263 Properties: map[string]spec.Schema{ 1264 "apiGroup": { 1265 SchemaProps: spec.SchemaProps{ 1266 Description: "The API group.", 1267 Type: []string{"string"}, 1268 Format: "", 1269 }, 1270 }, 1271 "resource": { 1272 SchemaProps: spec.SchemaProps{ 1273 Description: "The resource.", 1274 Type: []string{"string"}, 1275 Format: "", 1276 }, 1277 }, 1278 "verbs": { 1279 SchemaProps: spec.SchemaProps{ 1280 Description: "The set of authorized actions for this resource. For a specific verb, this contains the set of resources for which the user is authorized to perform that action. This is calculated to avoid duplication such that a single resource instance can only be associated with a single entry in this slice. This allows a consumer of this API to issue a minimal set of queries (e.g. watches) that cover, uniquely, the authorized set of resources.", 1281 Type: []string{"array"}, 1282 Items: &spec.SchemaOrArray{ 1283 Schema: &spec.Schema{ 1284 SchemaProps: spec.SchemaProps{ 1285 Default: map[string]interface{}{}, 1286 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.AuthorizedResourceVerb"), 1287 }, 1288 }, 1289 }, 1290 }, 1291 }, 1292 }, 1293 }, 1294 }, 1295 Dependencies: []string{ 1296 "github.com/tigera/api/pkg/apis/projectcalico/v3.AuthorizedResourceVerb"}, 1297 } 1298 } 1299 1300 func schema_pkg_apis_projectcalico_v3_AutoHostEndpointConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 1301 return common.OpenAPIDefinition{ 1302 Schema: spec.Schema{ 1303 SchemaProps: spec.SchemaProps{ 1304 Type: []string{"object"}, 1305 Properties: map[string]spec.Schema{ 1306 "autoCreate": { 1307 SchemaProps: spec.SchemaProps{ 1308 Description: "AutoCreate enables automatic creation of host endpoints for every node. [Default: Disabled]", 1309 Type: []string{"string"}, 1310 Format: "", 1311 }, 1312 }, 1313 }, 1314 }, 1315 }, 1316 } 1317 } 1318 1319 func schema_pkg_apis_projectcalico_v3_BGPConfiguration(ref common.ReferenceCallback) common.OpenAPIDefinition { 1320 return common.OpenAPIDefinition{ 1321 Schema: spec.Schema{ 1322 SchemaProps: spec.SchemaProps{ 1323 Type: []string{"object"}, 1324 Properties: map[string]spec.Schema{ 1325 "kind": { 1326 SchemaProps: spec.SchemaProps{ 1327 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1328 Type: []string{"string"}, 1329 Format: "", 1330 }, 1331 }, 1332 "apiVersion": { 1333 SchemaProps: spec.SchemaProps{ 1334 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 1335 Type: []string{"string"}, 1336 Format: "", 1337 }, 1338 }, 1339 "metadata": { 1340 SchemaProps: spec.SchemaProps{ 1341 Default: map[string]interface{}{}, 1342 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 1343 }, 1344 }, 1345 "spec": { 1346 SchemaProps: spec.SchemaProps{ 1347 Default: map[string]interface{}{}, 1348 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.BGPConfigurationSpec"), 1349 }, 1350 }, 1351 }, 1352 }, 1353 }, 1354 Dependencies: []string{ 1355 "github.com/tigera/api/pkg/apis/projectcalico/v3.BGPConfigurationSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 1356 } 1357 } 1358 1359 func schema_pkg_apis_projectcalico_v3_BGPConfigurationList(ref common.ReferenceCallback) common.OpenAPIDefinition { 1360 return common.OpenAPIDefinition{ 1361 Schema: spec.Schema{ 1362 SchemaProps: spec.SchemaProps{ 1363 Description: "BGPConfigurationList is a list of BGPConfiguration resources.", 1364 Type: []string{"object"}, 1365 Properties: map[string]spec.Schema{ 1366 "kind": { 1367 SchemaProps: spec.SchemaProps{ 1368 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1369 Type: []string{"string"}, 1370 Format: "", 1371 }, 1372 }, 1373 "apiVersion": { 1374 SchemaProps: spec.SchemaProps{ 1375 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 1376 Type: []string{"string"}, 1377 Format: "", 1378 }, 1379 }, 1380 "metadata": { 1381 SchemaProps: spec.SchemaProps{ 1382 Default: map[string]interface{}{}, 1383 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 1384 }, 1385 }, 1386 "items": { 1387 SchemaProps: spec.SchemaProps{ 1388 Type: []string{"array"}, 1389 Items: &spec.SchemaOrArray{ 1390 Schema: &spec.Schema{ 1391 SchemaProps: spec.SchemaProps{ 1392 Default: map[string]interface{}{}, 1393 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.BGPConfiguration"), 1394 }, 1395 }, 1396 }, 1397 }, 1398 }, 1399 }, 1400 Required: []string{"items"}, 1401 }, 1402 }, 1403 Dependencies: []string{ 1404 "github.com/tigera/api/pkg/apis/projectcalico/v3.BGPConfiguration", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 1405 } 1406 } 1407 1408 func schema_pkg_apis_projectcalico_v3_BGPConfigurationSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 1409 return common.OpenAPIDefinition{ 1410 Schema: spec.Schema{ 1411 SchemaProps: spec.SchemaProps{ 1412 Description: "BGPConfigurationSpec contains the values of the BGP configuration.", 1413 Type: []string{"object"}, 1414 Properties: map[string]spec.Schema{ 1415 "logSeverityScreen": { 1416 SchemaProps: spec.SchemaProps{ 1417 Description: "LogSeverityScreen is the log severity above which logs are sent to the stdout. [Default: INFO]", 1418 Type: []string{"string"}, 1419 Format: "", 1420 }, 1421 }, 1422 "nodeToNodeMeshEnabled": { 1423 SchemaProps: spec.SchemaProps{ 1424 Description: "NodeToNodeMeshEnabled sets whether full node to node BGP mesh is enabled. [Default: true]", 1425 Type: []string{"boolean"}, 1426 Format: "", 1427 }, 1428 }, 1429 "asNumber": { 1430 SchemaProps: spec.SchemaProps{ 1431 Description: "ASNumber is the default AS number used by a node. [Default: 64512]", 1432 Type: []string{"integer"}, 1433 Format: "int64", 1434 }, 1435 }, 1436 "extensions": { 1437 SchemaProps: spec.SchemaProps{ 1438 Description: "Extensions is a mapping of keys to values that can be used in custom BGP templates", 1439 Type: []string{"object"}, 1440 AdditionalProperties: &spec.SchemaOrBool{ 1441 Allows: true, 1442 Schema: &spec.Schema{ 1443 SchemaProps: spec.SchemaProps{ 1444 Default: "", 1445 Type: []string{"string"}, 1446 Format: "", 1447 }, 1448 }, 1449 }, 1450 }, 1451 }, 1452 "serviceLoadBalancerIPs": { 1453 SchemaProps: spec.SchemaProps{ 1454 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.", 1455 Type: []string{"array"}, 1456 Items: &spec.SchemaOrArray{ 1457 Schema: &spec.Schema{ 1458 SchemaProps: spec.SchemaProps{ 1459 Default: map[string]interface{}{}, 1460 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ServiceLoadBalancerIPBlock"), 1461 }, 1462 }, 1463 }, 1464 }, 1465 }, 1466 "serviceExternalIPs": { 1467 SchemaProps: spec.SchemaProps{ 1468 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.", 1469 Type: []string{"array"}, 1470 Items: &spec.SchemaOrArray{ 1471 Schema: &spec.Schema{ 1472 SchemaProps: spec.SchemaProps{ 1473 Default: map[string]interface{}{}, 1474 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ServiceExternalIPBlock"), 1475 }, 1476 }, 1477 }, 1478 }, 1479 }, 1480 "serviceClusterIPs": { 1481 SchemaProps: spec.SchemaProps{ 1482 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.", 1483 Type: []string{"array"}, 1484 Items: &spec.SchemaOrArray{ 1485 Schema: &spec.Schema{ 1486 SchemaProps: spec.SchemaProps{ 1487 Default: map[string]interface{}{}, 1488 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ServiceClusterIPBlock"), 1489 }, 1490 }, 1491 }, 1492 }, 1493 }, 1494 "communities": { 1495 SchemaProps: spec.SchemaProps{ 1496 Description: "Communities is a list of BGP community values and their arbitrary names for tagging routes.", 1497 Type: []string{"array"}, 1498 Items: &spec.SchemaOrArray{ 1499 Schema: &spec.Schema{ 1500 SchemaProps: spec.SchemaProps{ 1501 Default: map[string]interface{}{}, 1502 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.Community"), 1503 }, 1504 }, 1505 }, 1506 }, 1507 }, 1508 "prefixAdvertisements": { 1509 SchemaProps: spec.SchemaProps{ 1510 Description: "PrefixAdvertisements contains per-prefix advertisement configuration.", 1511 Type: []string{"array"}, 1512 Items: &spec.SchemaOrArray{ 1513 Schema: &spec.Schema{ 1514 SchemaProps: spec.SchemaProps{ 1515 Default: map[string]interface{}{}, 1516 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.PrefixAdvertisement"), 1517 }, 1518 }, 1519 }, 1520 }, 1521 }, 1522 "listenPort": { 1523 SchemaProps: spec.SchemaProps{ 1524 Description: "ListenPort is the port where BGP protocol should listen. Defaults to 179", 1525 Type: []string{"integer"}, 1526 Format: "int32", 1527 }, 1528 }, 1529 "nodeMeshPassword": { 1530 SchemaProps: spec.SchemaProps{ 1531 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", 1532 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.BGPPassword"), 1533 }, 1534 }, 1535 "nodeMeshMaxRestartTime": { 1536 SchemaProps: spec.SchemaProps{ 1537 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", 1538 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 1539 }, 1540 }, 1541 "bindMode": { 1542 SchemaProps: spec.SchemaProps{ 1543 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.", 1544 Type: []string{"string"}, 1545 Format: "", 1546 }, 1547 }, 1548 "ignoredInterfaces": { 1549 SchemaProps: spec.SchemaProps{ 1550 Description: "IgnoredInterfaces indicates the network interfaces that needs to be excluded when reading device routes.", 1551 Type: []string{"array"}, 1552 Items: &spec.SchemaOrArray{ 1553 Schema: &spec.Schema{ 1554 SchemaProps: spec.SchemaProps{ 1555 Default: "", 1556 Type: []string{"string"}, 1557 Format: "", 1558 }, 1559 }, 1560 }, 1561 }, 1562 }, 1563 }, 1564 }, 1565 }, 1566 Dependencies: []string{ 1567 "github.com/tigera/api/pkg/apis/projectcalico/v3.BGPPassword", "github.com/tigera/api/pkg/apis/projectcalico/v3.Community", "github.com/tigera/api/pkg/apis/projectcalico/v3.PrefixAdvertisement", "github.com/tigera/api/pkg/apis/projectcalico/v3.ServiceClusterIPBlock", "github.com/tigera/api/pkg/apis/projectcalico/v3.ServiceExternalIPBlock", "github.com/tigera/api/pkg/apis/projectcalico/v3.ServiceLoadBalancerIPBlock", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration"}, 1568 } 1569 } 1570 1571 func schema_pkg_apis_projectcalico_v3_BGPDaemonStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 1572 return common.OpenAPIDefinition{ 1573 Schema: spec.Schema{ 1574 SchemaProps: spec.SchemaProps{ 1575 Description: "BGPDaemonStatus defines the observed state of BGP daemon.", 1576 Type: []string{"object"}, 1577 Properties: map[string]spec.Schema{ 1578 "state": { 1579 SchemaProps: spec.SchemaProps{ 1580 Description: "The state of the BGP Daemon.", 1581 Type: []string{"string"}, 1582 Format: "", 1583 }, 1584 }, 1585 "version": { 1586 SchemaProps: spec.SchemaProps{ 1587 Description: "Version of the BGP daemon", 1588 Type: []string{"string"}, 1589 Format: "", 1590 }, 1591 }, 1592 "routerID": { 1593 SchemaProps: spec.SchemaProps{ 1594 Description: "Router ID used by bird.", 1595 Type: []string{"string"}, 1596 Format: "", 1597 }, 1598 }, 1599 "lastBootTime": { 1600 SchemaProps: spec.SchemaProps{ 1601 Description: "LastBootTime holds the value of lastBootTime from bird.ctl output.", 1602 Type: []string{"string"}, 1603 Format: "", 1604 }, 1605 }, 1606 "lastReconfigurationTime": { 1607 SchemaProps: spec.SchemaProps{ 1608 Description: "LastReconfigurationTime holds the value of lastReconfigTime from bird.ctl output.", 1609 Type: []string{"string"}, 1610 Format: "", 1611 }, 1612 }, 1613 }, 1614 }, 1615 }, 1616 } 1617 } 1618 1619 func schema_pkg_apis_projectcalico_v3_BGPFilter(ref common.ReferenceCallback) common.OpenAPIDefinition { 1620 return common.OpenAPIDefinition{ 1621 Schema: spec.Schema{ 1622 SchemaProps: spec.SchemaProps{ 1623 Type: []string{"object"}, 1624 Properties: map[string]spec.Schema{ 1625 "kind": { 1626 SchemaProps: spec.SchemaProps{ 1627 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1628 Type: []string{"string"}, 1629 Format: "", 1630 }, 1631 }, 1632 "apiVersion": { 1633 SchemaProps: spec.SchemaProps{ 1634 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 1635 Type: []string{"string"}, 1636 Format: "", 1637 }, 1638 }, 1639 "metadata": { 1640 SchemaProps: spec.SchemaProps{ 1641 Default: map[string]interface{}{}, 1642 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 1643 }, 1644 }, 1645 "spec": { 1646 SchemaProps: spec.SchemaProps{ 1647 Default: map[string]interface{}{}, 1648 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.BGPFilterSpec"), 1649 }, 1650 }, 1651 }, 1652 }, 1653 }, 1654 Dependencies: []string{ 1655 "github.com/tigera/api/pkg/apis/projectcalico/v3.BGPFilterSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 1656 } 1657 } 1658 1659 func schema_pkg_apis_projectcalico_v3_BGPFilterList(ref common.ReferenceCallback) common.OpenAPIDefinition { 1660 return common.OpenAPIDefinition{ 1661 Schema: spec.Schema{ 1662 SchemaProps: spec.SchemaProps{ 1663 Description: "BGPFilterList is a list of BGPFilter resources.", 1664 Type: []string{"object"}, 1665 Properties: map[string]spec.Schema{ 1666 "kind": { 1667 SchemaProps: spec.SchemaProps{ 1668 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1669 Type: []string{"string"}, 1670 Format: "", 1671 }, 1672 }, 1673 "apiVersion": { 1674 SchemaProps: spec.SchemaProps{ 1675 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 1676 Type: []string{"string"}, 1677 Format: "", 1678 }, 1679 }, 1680 "metadata": { 1681 SchemaProps: spec.SchemaProps{ 1682 Default: map[string]interface{}{}, 1683 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 1684 }, 1685 }, 1686 "items": { 1687 SchemaProps: spec.SchemaProps{ 1688 Type: []string{"array"}, 1689 Items: &spec.SchemaOrArray{ 1690 Schema: &spec.Schema{ 1691 SchemaProps: spec.SchemaProps{ 1692 Default: map[string]interface{}{}, 1693 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.BGPFilter"), 1694 }, 1695 }, 1696 }, 1697 }, 1698 }, 1699 }, 1700 Required: []string{"items"}, 1701 }, 1702 }, 1703 Dependencies: []string{ 1704 "github.com/tigera/api/pkg/apis/projectcalico/v3.BGPFilter", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 1705 } 1706 } 1707 1708 func schema_pkg_apis_projectcalico_v3_BGPFilterRuleV4(ref common.ReferenceCallback) common.OpenAPIDefinition { 1709 return common.OpenAPIDefinition{ 1710 Schema: spec.Schema{ 1711 SchemaProps: spec.SchemaProps{ 1712 Description: "BGPFilterRuleV4 defines a BGP filter rule consisting a single IPv4 CIDR block and a filter action for this CIDR.", 1713 Type: []string{"object"}, 1714 Properties: map[string]spec.Schema{ 1715 "cidr": { 1716 SchemaProps: spec.SchemaProps{ 1717 Type: []string{"string"}, 1718 Format: "", 1719 }, 1720 }, 1721 "source": { 1722 SchemaProps: spec.SchemaProps{ 1723 Type: []string{"string"}, 1724 Format: "", 1725 }, 1726 }, 1727 "interface": { 1728 SchemaProps: spec.SchemaProps{ 1729 Type: []string{"string"}, 1730 Format: "", 1731 }, 1732 }, 1733 "matchOperator": { 1734 SchemaProps: spec.SchemaProps{ 1735 Type: []string{"string"}, 1736 Format: "", 1737 }, 1738 }, 1739 "action": { 1740 SchemaProps: spec.SchemaProps{ 1741 Default: "", 1742 Type: []string{"string"}, 1743 Format: "", 1744 }, 1745 }, 1746 }, 1747 Required: []string{"action"}, 1748 }, 1749 }, 1750 } 1751 } 1752 1753 func schema_pkg_apis_projectcalico_v3_BGPFilterRuleV6(ref common.ReferenceCallback) common.OpenAPIDefinition { 1754 return common.OpenAPIDefinition{ 1755 Schema: spec.Schema{ 1756 SchemaProps: spec.SchemaProps{ 1757 Description: "BGPFilterRuleV6 defines a BGP filter rule consisting a single IPv6 CIDR block and a filter action for this CIDR.", 1758 Type: []string{"object"}, 1759 Properties: map[string]spec.Schema{ 1760 "cidr": { 1761 SchemaProps: spec.SchemaProps{ 1762 Type: []string{"string"}, 1763 Format: "", 1764 }, 1765 }, 1766 "source": { 1767 SchemaProps: spec.SchemaProps{ 1768 Type: []string{"string"}, 1769 Format: "", 1770 }, 1771 }, 1772 "interface": { 1773 SchemaProps: spec.SchemaProps{ 1774 Type: []string{"string"}, 1775 Format: "", 1776 }, 1777 }, 1778 "matchOperator": { 1779 SchemaProps: spec.SchemaProps{ 1780 Type: []string{"string"}, 1781 Format: "", 1782 }, 1783 }, 1784 "action": { 1785 SchemaProps: spec.SchemaProps{ 1786 Default: "", 1787 Type: []string{"string"}, 1788 Format: "", 1789 }, 1790 }, 1791 }, 1792 Required: []string{"action"}, 1793 }, 1794 }, 1795 } 1796 } 1797 1798 func schema_pkg_apis_projectcalico_v3_BGPFilterSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 1799 return common.OpenAPIDefinition{ 1800 Schema: spec.Schema{ 1801 SchemaProps: spec.SchemaProps{ 1802 Description: "BGPFilterSpec contains the IPv4 and IPv6 filter rules of the BGP Filter.", 1803 Type: []string{"object"}, 1804 Properties: map[string]spec.Schema{ 1805 "exportV4": { 1806 SchemaProps: spec.SchemaProps{ 1807 Description: "The ordered set of IPv4 BGPFilter rules acting on exporting routes to a peer.", 1808 Type: []string{"array"}, 1809 Items: &spec.SchemaOrArray{ 1810 Schema: &spec.Schema{ 1811 SchemaProps: spec.SchemaProps{ 1812 Default: map[string]interface{}{}, 1813 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.BGPFilterRuleV4"), 1814 }, 1815 }, 1816 }, 1817 }, 1818 }, 1819 "importV4": { 1820 SchemaProps: spec.SchemaProps{ 1821 Description: "The ordered set of IPv4 BGPFilter rules acting on importing routes from a peer.", 1822 Type: []string{"array"}, 1823 Items: &spec.SchemaOrArray{ 1824 Schema: &spec.Schema{ 1825 SchemaProps: spec.SchemaProps{ 1826 Default: map[string]interface{}{}, 1827 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.BGPFilterRuleV4"), 1828 }, 1829 }, 1830 }, 1831 }, 1832 }, 1833 "exportV6": { 1834 SchemaProps: spec.SchemaProps{ 1835 Description: "The ordered set of IPv6 BGPFilter rules acting on exporting routes to a peer.", 1836 Type: []string{"array"}, 1837 Items: &spec.SchemaOrArray{ 1838 Schema: &spec.Schema{ 1839 SchemaProps: spec.SchemaProps{ 1840 Default: map[string]interface{}{}, 1841 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.BGPFilterRuleV6"), 1842 }, 1843 }, 1844 }, 1845 }, 1846 }, 1847 "importV6": { 1848 SchemaProps: spec.SchemaProps{ 1849 Description: "The ordered set of IPv6 BGPFilter rules acting on importing routes from a peer.", 1850 Type: []string{"array"}, 1851 Items: &spec.SchemaOrArray{ 1852 Schema: &spec.Schema{ 1853 SchemaProps: spec.SchemaProps{ 1854 Default: map[string]interface{}{}, 1855 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.BGPFilterRuleV6"), 1856 }, 1857 }, 1858 }, 1859 }, 1860 }, 1861 }, 1862 }, 1863 }, 1864 Dependencies: []string{ 1865 "github.com/tigera/api/pkg/apis/projectcalico/v3.BGPFilterRuleV4", "github.com/tigera/api/pkg/apis/projectcalico/v3.BGPFilterRuleV6"}, 1866 } 1867 } 1868 1869 func schema_pkg_apis_projectcalico_v3_BGPPassword(ref common.ReferenceCallback) common.OpenAPIDefinition { 1870 return common.OpenAPIDefinition{ 1871 Schema: spec.Schema{ 1872 SchemaProps: spec.SchemaProps{ 1873 Description: "BGPPassword contains ways to specify a BGP password.", 1874 Type: []string{"object"}, 1875 Properties: map[string]spec.Schema{ 1876 "secretKeyRef": { 1877 SchemaProps: spec.SchemaProps{ 1878 Description: "Selects a key of a secret in the node pod's namespace.", 1879 Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), 1880 }, 1881 }, 1882 }, 1883 }, 1884 }, 1885 Dependencies: []string{ 1886 "k8s.io/api/core/v1.SecretKeySelector"}, 1887 } 1888 } 1889 1890 func schema_pkg_apis_projectcalico_v3_BGPPeer(ref common.ReferenceCallback) common.OpenAPIDefinition { 1891 return common.OpenAPIDefinition{ 1892 Schema: spec.Schema{ 1893 SchemaProps: spec.SchemaProps{ 1894 Type: []string{"object"}, 1895 Properties: map[string]spec.Schema{ 1896 "kind": { 1897 SchemaProps: spec.SchemaProps{ 1898 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1899 Type: []string{"string"}, 1900 Format: "", 1901 }, 1902 }, 1903 "apiVersion": { 1904 SchemaProps: spec.SchemaProps{ 1905 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 1906 Type: []string{"string"}, 1907 Format: "", 1908 }, 1909 }, 1910 "metadata": { 1911 SchemaProps: spec.SchemaProps{ 1912 Default: map[string]interface{}{}, 1913 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 1914 }, 1915 }, 1916 "spec": { 1917 SchemaProps: spec.SchemaProps{ 1918 Default: map[string]interface{}{}, 1919 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.BGPPeerSpec"), 1920 }, 1921 }, 1922 }, 1923 }, 1924 }, 1925 Dependencies: []string{ 1926 "github.com/tigera/api/pkg/apis/projectcalico/v3.BGPPeerSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 1927 } 1928 } 1929 1930 func schema_pkg_apis_projectcalico_v3_BGPPeerList(ref common.ReferenceCallback) common.OpenAPIDefinition { 1931 return common.OpenAPIDefinition{ 1932 Schema: spec.Schema{ 1933 SchemaProps: spec.SchemaProps{ 1934 Description: "BGPPeerList is a list of BGPPeer resources.", 1935 Type: []string{"object"}, 1936 Properties: map[string]spec.Schema{ 1937 "kind": { 1938 SchemaProps: spec.SchemaProps{ 1939 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1940 Type: []string{"string"}, 1941 Format: "", 1942 }, 1943 }, 1944 "apiVersion": { 1945 SchemaProps: spec.SchemaProps{ 1946 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 1947 Type: []string{"string"}, 1948 Format: "", 1949 }, 1950 }, 1951 "metadata": { 1952 SchemaProps: spec.SchemaProps{ 1953 Default: map[string]interface{}{}, 1954 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 1955 }, 1956 }, 1957 "items": { 1958 SchemaProps: spec.SchemaProps{ 1959 Type: []string{"array"}, 1960 Items: &spec.SchemaOrArray{ 1961 Schema: &spec.Schema{ 1962 SchemaProps: spec.SchemaProps{ 1963 Default: map[string]interface{}{}, 1964 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.BGPPeer"), 1965 }, 1966 }, 1967 }, 1968 }, 1969 }, 1970 }, 1971 Required: []string{"items"}, 1972 }, 1973 }, 1974 Dependencies: []string{ 1975 "github.com/tigera/api/pkg/apis/projectcalico/v3.BGPPeer", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 1976 } 1977 } 1978 1979 func schema_pkg_apis_projectcalico_v3_BGPPeerSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 1980 return common.OpenAPIDefinition{ 1981 Schema: spec.Schema{ 1982 SchemaProps: spec.SchemaProps{ 1983 Description: "BGPPeerSpec contains the specification for a BGPPeer resource.", 1984 Type: []string{"object"}, 1985 Properties: map[string]spec.Schema{ 1986 "node": { 1987 SchemaProps: spec.SchemaProps{ 1988 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.", 1989 Type: []string{"string"}, 1990 Format: "", 1991 }, 1992 }, 1993 "nodeSelector": { 1994 SchemaProps: spec.SchemaProps{ 1995 Description: "Selector for the nodes that should have this peering. When this is set, the Node field must be empty.", 1996 Type: []string{"string"}, 1997 Format: "", 1998 }, 1999 }, 2000 "peerIP": { 2001 SchemaProps: spec.SchemaProps{ 2002 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.", 2003 Type: []string{"string"}, 2004 Format: "", 2005 }, 2006 }, 2007 "asNumber": { 2008 SchemaProps: spec.SchemaProps{ 2009 Description: "The AS Number of the peer.", 2010 Type: []string{"integer"}, 2011 Format: "int64", 2012 }, 2013 }, 2014 "extensions": { 2015 SchemaProps: spec.SchemaProps{ 2016 Description: "Extensions is a mapping of keys to values that can be used in custom BGP templates", 2017 Type: []string{"object"}, 2018 AdditionalProperties: &spec.SchemaOrBool{ 2019 Allows: true, 2020 Schema: &spec.Schema{ 2021 SchemaProps: spec.SchemaProps{ 2022 Default: "", 2023 Type: []string{"string"}, 2024 Format: "", 2025 }, 2026 }, 2027 }, 2028 }, 2029 }, 2030 "peerSelector": { 2031 SchemaProps: spec.SchemaProps{ 2032 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.", 2033 Type: []string{"string"}, 2034 Format: "", 2035 }, 2036 }, 2037 "keepOriginalNextHop": { 2038 SchemaProps: spec.SchemaProps{ 2039 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\".", 2040 Type: []string{"boolean"}, 2041 Format: "", 2042 }, 2043 }, 2044 "password": { 2045 SchemaProps: spec.SchemaProps{ 2046 Description: "Optional BGP password for the peerings generated by this BGPPeer resource.", 2047 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.BGPPassword"), 2048 }, 2049 }, 2050 "sourceAddress": { 2051 SchemaProps: spec.SchemaProps{ 2052 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.", 2053 Type: []string{"string"}, 2054 Format: "", 2055 }, 2056 }, 2057 "failureDetectionMode": { 2058 SchemaProps: spec.SchemaProps{ 2059 Description: "Specifies whether and how to detect loss of connectivity on the peerings generated by this BGPPeer resource. Default value \"None\" means nothing beyond BGP's own (slow) hold timer. \"BFDIfDirectlyConnected\" means to use BFD when the peer is directly connected.", 2060 Type: []string{"string"}, 2061 Format: "", 2062 }, 2063 }, 2064 "restartMode": { 2065 SchemaProps: spec.SchemaProps{ 2066 Description: "Specifies restart behaviour to configure on the peerings generated by this BGPPeer resource. Default value \"GracefulRestart\" means traditional graceful restart. \"LongLivedGracefulRestart\" means LLGR according to draft-uttaro-idr-bgp-persistence-05.", 2067 Type: []string{"string"}, 2068 Format: "", 2069 }, 2070 }, 2071 "maxRestartTime": { 2072 SchemaProps: spec.SchemaProps{ 2073 Description: "Time to allow for software restart. When specified, this is configured as the graceful restart timeout when RestartMode is \"GracefulRestart\", and as the LLGR stale time when RestartMode is \"LongLivedGracefulRestart\". When not specified, the BIRD defaults are used, which are 120s for \"GracefulRestart\" and 3600s for \"LongLivedGracefulRestart\".", 2074 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 2075 }, 2076 }, 2077 "birdGatewayMode": { 2078 SchemaProps: spec.SchemaProps{ 2079 Description: "Specifies the BIRD \"gateway\" mode, i.e. method for computing the immediate next hop for each received route, for peerings generated by this BGPPeer resource. Default value \"Recursive\" means \"gateway recursive\". \"DirectIfDirectlyConnected\" means to configure \"gateway direct\" when the peer is directly connected.", 2080 Type: []string{"string"}, 2081 Format: "", 2082 }, 2083 }, 2084 "numAllowedLocalASNumbers": { 2085 SchemaProps: spec.SchemaProps{ 2086 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.", 2087 Type: []string{"integer"}, 2088 Format: "int32", 2089 }, 2090 }, 2091 "ttlSecurity": { 2092 SchemaProps: spec.SchemaProps{ 2093 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.", 2094 Type: []string{"integer"}, 2095 Format: "byte", 2096 }, 2097 }, 2098 "filters": { 2099 SchemaProps: spec.SchemaProps{ 2100 Description: "The ordered set of BGPFilters applied on this BGP peer.", 2101 Type: []string{"array"}, 2102 Items: &spec.SchemaOrArray{ 2103 Schema: &spec.Schema{ 2104 SchemaProps: spec.SchemaProps{ 2105 Default: "", 2106 Type: []string{"string"}, 2107 Format: "", 2108 }, 2109 }, 2110 }, 2111 }, 2112 }, 2113 "externalNetwork": { 2114 SchemaProps: spec.SchemaProps{ 2115 Description: "Name of the external network to which this peer belongs.", 2116 Type: []string{"string"}, 2117 Format: "", 2118 }, 2119 }, 2120 "reachableBy": { 2121 SchemaProps: spec.SchemaProps{ 2122 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.", 2123 Type: []string{"string"}, 2124 Format: "", 2125 }, 2126 }, 2127 }, 2128 }, 2129 }, 2130 Dependencies: []string{ 2131 "github.com/tigera/api/pkg/apis/projectcalico/v3.BGPPassword", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration"}, 2132 } 2133 } 2134 2135 func schema_pkg_apis_projectcalico_v3_BlockAffinity(ref common.ReferenceCallback) common.OpenAPIDefinition { 2136 return common.OpenAPIDefinition{ 2137 Schema: spec.Schema{ 2138 SchemaProps: spec.SchemaProps{ 2139 Description: "BlockAffinity maintains a block affinity's state", 2140 Type: []string{"object"}, 2141 Properties: map[string]spec.Schema{ 2142 "kind": { 2143 SchemaProps: spec.SchemaProps{ 2144 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 2145 Type: []string{"string"}, 2146 Format: "", 2147 }, 2148 }, 2149 "apiVersion": { 2150 SchemaProps: spec.SchemaProps{ 2151 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 2152 Type: []string{"string"}, 2153 Format: "", 2154 }, 2155 }, 2156 "metadata": { 2157 SchemaProps: spec.SchemaProps{ 2158 Description: "Standard object's metadata.", 2159 Default: map[string]interface{}{}, 2160 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 2161 }, 2162 }, 2163 "spec": { 2164 SchemaProps: spec.SchemaProps{ 2165 Description: "Specification of the BlockAffinity.", 2166 Default: map[string]interface{}{}, 2167 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.BlockAffinitySpec"), 2168 }, 2169 }, 2170 }, 2171 }, 2172 }, 2173 Dependencies: []string{ 2174 "github.com/tigera/api/pkg/apis/projectcalico/v3.BlockAffinitySpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 2175 } 2176 } 2177 2178 func schema_pkg_apis_projectcalico_v3_BlockAffinityList(ref common.ReferenceCallback) common.OpenAPIDefinition { 2179 return common.OpenAPIDefinition{ 2180 Schema: spec.Schema{ 2181 SchemaProps: spec.SchemaProps{ 2182 Description: "BlockAffinityList contains a list of BlockAffinity resources.", 2183 Type: []string{"object"}, 2184 Properties: map[string]spec.Schema{ 2185 "kind": { 2186 SchemaProps: spec.SchemaProps{ 2187 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 2188 Type: []string{"string"}, 2189 Format: "", 2190 }, 2191 }, 2192 "apiVersion": { 2193 SchemaProps: spec.SchemaProps{ 2194 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 2195 Type: []string{"string"}, 2196 Format: "", 2197 }, 2198 }, 2199 "metadata": { 2200 SchemaProps: spec.SchemaProps{ 2201 Default: map[string]interface{}{}, 2202 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 2203 }, 2204 }, 2205 "items": { 2206 SchemaProps: spec.SchemaProps{ 2207 Type: []string{"array"}, 2208 Items: &spec.SchemaOrArray{ 2209 Schema: &spec.Schema{ 2210 SchemaProps: spec.SchemaProps{ 2211 Default: map[string]interface{}{}, 2212 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.BlockAffinity"), 2213 }, 2214 }, 2215 }, 2216 }, 2217 }, 2218 }, 2219 Required: []string{"metadata", "items"}, 2220 }, 2221 }, 2222 Dependencies: []string{ 2223 "github.com/tigera/api/pkg/apis/projectcalico/v3.BlockAffinity", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 2224 } 2225 } 2226 2227 func schema_pkg_apis_projectcalico_v3_BlockAffinitySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 2228 return common.OpenAPIDefinition{ 2229 Schema: spec.Schema{ 2230 SchemaProps: spec.SchemaProps{ 2231 Description: "BlockAffinitySpec contains the specification for a BlockAffinity resource.", 2232 Type: []string{"object"}, 2233 Properties: map[string]spec.Schema{ 2234 "state": { 2235 SchemaProps: spec.SchemaProps{ 2236 Description: "The state of the block affinity with regard to any referenced IPAM blocks.", 2237 Default: "", 2238 Type: []string{"string"}, 2239 Format: "", 2240 }, 2241 }, 2242 "node": { 2243 SchemaProps: spec.SchemaProps{ 2244 Description: "The node that this block affinity is assigned to.", 2245 Default: "", 2246 Type: []string{"string"}, 2247 Format: "", 2248 }, 2249 }, 2250 "cidr": { 2251 SchemaProps: spec.SchemaProps{ 2252 Description: "The CIDR range this block affinity references.", 2253 Default: "", 2254 Type: []string{"string"}, 2255 Format: "", 2256 }, 2257 }, 2258 "deleted": { 2259 SchemaProps: spec.SchemaProps{ 2260 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.", 2261 Type: []string{"boolean"}, 2262 Format: "", 2263 }, 2264 }, 2265 }, 2266 Required: []string{"state", "node", "cidr"}, 2267 }, 2268 }, 2269 } 2270 } 2271 2272 func schema_pkg_apis_projectcalico_v3_CISBenchmarkFilter(ref common.ReferenceCallback) common.OpenAPIDefinition { 2273 return common.OpenAPIDefinition{ 2274 Schema: spec.Schema{ 2275 SchemaProps: spec.SchemaProps{ 2276 Description: "CISBenchmarkFilter provides filters for a set of benchmarks that match particular selection criteria.", 2277 Type: []string{"object"}, 2278 Properties: map[string]spec.Schema{ 2279 "benchmarkSelection": { 2280 SchemaProps: spec.SchemaProps{ 2281 Description: "BenchmarkSelection specifies which benchmarks this filter applies to. If not specified, applies to all.", 2282 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.CISBenchmarkSelection"), 2283 }, 2284 }, 2285 "exclude": { 2286 SchemaProps: spec.SchemaProps{ 2287 Description: "Exclude is an array of test indices to exclude from the report.", 2288 Type: []string{"array"}, 2289 Items: &spec.SchemaOrArray{ 2290 Schema: &spec.Schema{ 2291 SchemaProps: spec.SchemaProps{ 2292 Default: "", 2293 Type: []string{"string"}, 2294 Format: "", 2295 }, 2296 }, 2297 }, 2298 }, 2299 }, 2300 "include": { 2301 SchemaProps: spec.SchemaProps{ 2302 Description: "Include is an array of test indices to show in the report. Is additive if IncludeUnscoredTests is true. Takes precedence over Exclude.", 2303 Type: []string{"array"}, 2304 Items: &spec.SchemaOrArray{ 2305 Schema: &spec.Schema{ 2306 SchemaProps: spec.SchemaProps{ 2307 Default: "", 2308 Type: []string{"string"}, 2309 Format: "", 2310 }, 2311 }, 2312 }, 2313 }, 2314 }, 2315 }, 2316 }, 2317 }, 2318 Dependencies: []string{ 2319 "github.com/tigera/api/pkg/apis/projectcalico/v3.CISBenchmarkSelection"}, 2320 } 2321 } 2322 2323 func schema_pkg_apis_projectcalico_v3_CISBenchmarkNode(ref common.ReferenceCallback) common.OpenAPIDefinition { 2324 return common.OpenAPIDefinition{ 2325 Schema: spec.Schema{ 2326 SchemaProps: spec.SchemaProps{ 2327 Description: "CISBenchmarkNode describes a CIS benchmarking result on a single node.", 2328 Type: []string{"object"}, 2329 Properties: map[string]spec.Schema{ 2330 "nodeName": { 2331 SchemaProps: spec.SchemaProps{ 2332 Description: "NodeName is the name of the node the this set of benchmark results is from.", 2333 Default: "", 2334 Type: []string{"string"}, 2335 Format: "", 2336 }, 2337 }, 2338 "kubernetesVersion": { 2339 SchemaProps: spec.SchemaProps{ 2340 Description: "KubernetesVersion is the version of the kubelet running on this node.", 2341 Default: "", 2342 Type: []string{"string"}, 2343 Format: "", 2344 }, 2345 }, 2346 "benchmarksVersion": { 2347 SchemaProps: spec.SchemaProps{ 2348 Description: "BenchmarksVersion is the version of the benchmarks that ran on this node.", 2349 Default: "", 2350 Type: []string{"string"}, 2351 Format: "", 2352 }, 2353 }, 2354 "summary": { 2355 SchemaProps: spec.SchemaProps{ 2356 Description: "Summary is a set of summary stats for this set of node-specific benchmarks.", 2357 Default: map[string]interface{}{}, 2358 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.CISBenchmarkNodeSummary"), 2359 }, 2360 }, 2361 "results": { 2362 SchemaProps: spec.SchemaProps{ 2363 Description: "Results is the detailed set of results for this set of node-specific benchmarks.", 2364 Type: []string{"array"}, 2365 Items: &spec.SchemaOrArray{ 2366 Schema: &spec.Schema{ 2367 SchemaProps: spec.SchemaProps{ 2368 Default: map[string]interface{}{}, 2369 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.CISBenchmarkSectionResult"), 2370 }, 2371 }, 2372 }, 2373 }, 2374 }, 2375 }, 2376 Required: []string{"nodeName", "kubernetesVersion", "benchmarksVersion", "summary", "results"}, 2377 }, 2378 }, 2379 Dependencies: []string{ 2380 "github.com/tigera/api/pkg/apis/projectcalico/v3.CISBenchmarkNodeSummary", "github.com/tigera/api/pkg/apis/projectcalico/v3.CISBenchmarkSectionResult"}, 2381 } 2382 } 2383 2384 func schema_pkg_apis_projectcalico_v3_CISBenchmarkNodeSummary(ref common.ReferenceCallback) common.OpenAPIDefinition { 2385 return common.OpenAPIDefinition{ 2386 Schema: spec.Schema{ 2387 SchemaProps: spec.SchemaProps{ 2388 Description: "CISBenchmarkNodeSummary keeps count of tests passed, failed, and marked as info on a single node. Also has a status field to describe whether it is in HIGH, MED, or LOW status (based on [high|med]Threshold).", 2389 Type: []string{"object"}, 2390 Properties: map[string]spec.Schema{ 2391 "status": { 2392 SchemaProps: spec.SchemaProps{ 2393 Default: "", 2394 Type: []string{"string"}, 2395 Format: "", 2396 }, 2397 }, 2398 "totalPass": { 2399 SchemaProps: spec.SchemaProps{ 2400 Default: 0, 2401 Type: []string{"integer"}, 2402 Format: "int32", 2403 }, 2404 }, 2405 "totalFail": { 2406 SchemaProps: spec.SchemaProps{ 2407 Default: 0, 2408 Type: []string{"integer"}, 2409 Format: "int32", 2410 }, 2411 }, 2412 "totalInfo": { 2413 SchemaProps: spec.SchemaProps{ 2414 Default: 0, 2415 Type: []string{"integer"}, 2416 Format: "int32", 2417 }, 2418 }, 2419 "total": { 2420 SchemaProps: spec.SchemaProps{ 2421 Default: 0, 2422 Type: []string{"integer"}, 2423 Format: "int32", 2424 }, 2425 }, 2426 }, 2427 Required: []string{"status", "totalPass", "totalFail", "totalInfo", "total"}, 2428 }, 2429 }, 2430 } 2431 } 2432 2433 func schema_pkg_apis_projectcalico_v3_CISBenchmarkParams(ref common.ReferenceCallback) common.OpenAPIDefinition { 2434 return common.OpenAPIDefinition{ 2435 Schema: spec.Schema{ 2436 SchemaProps: spec.SchemaProps{ 2437 Description: "CISBenchmarkParams contains the parameters for configuring a CIS benchmark report.", 2438 Type: []string{"object"}, 2439 Properties: map[string]spec.Schema{ 2440 "includeUnscoredTests": { 2441 SchemaProps: spec.SchemaProps{ 2442 Description: "Specifies if the report should also show results for scored/not-scored tests.", 2443 Type: []string{"boolean"}, 2444 Format: "", 2445 }, 2446 }, 2447 "numFailedTests": { 2448 SchemaProps: spec.SchemaProps{ 2449 Description: "Configure the number of top failed tests to show up on the report.", 2450 Type: []string{"integer"}, 2451 Format: "int32", 2452 }, 2453 }, 2454 "resultsFilters": { 2455 SchemaProps: spec.SchemaProps{ 2456 Description: "Benchmark results filters. The first matching set of filters is applied to each set of benchmark results. If there are no matching filters, the full set of benchmark results will be included in the report.", 2457 Type: []string{"array"}, 2458 Items: &spec.SchemaOrArray{ 2459 Schema: &spec.Schema{ 2460 SchemaProps: spec.SchemaProps{ 2461 Default: map[string]interface{}{}, 2462 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.CISBenchmarkFilter"), 2463 }, 2464 }, 2465 }, 2466 }, 2467 }, 2468 "highThreshold": { 2469 SchemaProps: spec.SchemaProps{ 2470 Description: "Interpretted as a percentage to indicate at what levels of passing tests a node should be considered HIGH, MED, and LOW. - If >= HighThreshold flag as high - Otherwise, if > MedThreshold flag as med - Otherwise flag as low.", 2471 Type: []string{"integer"}, 2472 Format: "int32", 2473 }, 2474 }, 2475 "medThreshold": { 2476 SchemaProps: spec.SchemaProps{ 2477 Type: []string{"integer"}, 2478 Format: "int32", 2479 }, 2480 }, 2481 }, 2482 }, 2483 }, 2484 Dependencies: []string{ 2485 "github.com/tigera/api/pkg/apis/projectcalico/v3.CISBenchmarkFilter"}, 2486 } 2487 } 2488 2489 func schema_pkg_apis_projectcalico_v3_CISBenchmarkResult(ref common.ReferenceCallback) common.OpenAPIDefinition { 2490 return common.OpenAPIDefinition{ 2491 Schema: spec.Schema{ 2492 SchemaProps: spec.SchemaProps{ 2493 Description: "CISBenchmarkResult describes the result of a single CIS benchmark check.", 2494 Type: []string{"object"}, 2495 Properties: map[string]spec.Schema{ 2496 "testNumber": { 2497 SchemaProps: spec.SchemaProps{ 2498 Default: "", 2499 Type: []string{"string"}, 2500 Format: "", 2501 }, 2502 }, 2503 "testDesc": { 2504 SchemaProps: spec.SchemaProps{ 2505 Default: "", 2506 Type: []string{"string"}, 2507 Format: "", 2508 }, 2509 }, 2510 "testInfo": { 2511 SchemaProps: spec.SchemaProps{ 2512 Default: "", 2513 Type: []string{"string"}, 2514 Format: "", 2515 }, 2516 }, 2517 "status": { 2518 SchemaProps: spec.SchemaProps{ 2519 Default: "", 2520 Type: []string{"string"}, 2521 Format: "", 2522 }, 2523 }, 2524 "scored": { 2525 SchemaProps: spec.SchemaProps{ 2526 Default: false, 2527 Type: []string{"boolean"}, 2528 Format: "", 2529 }, 2530 }, 2531 }, 2532 Required: []string{"testNumber", "testDesc", "testInfo", "status", "scored"}, 2533 }, 2534 }, 2535 } 2536 } 2537 2538 func schema_pkg_apis_projectcalico_v3_CISBenchmarkResultCount(ref common.ReferenceCallback) common.OpenAPIDefinition { 2539 return common.OpenAPIDefinition{ 2540 Schema: spec.Schema{ 2541 SchemaProps: spec.SchemaProps{ 2542 Description: "CISBenchmarkResultCount keeps track of how many nodes had a certain test result.", 2543 Type: []string{"object"}, 2544 Properties: map[string]spec.Schema{ 2545 "CISBenchmarkResult": { 2546 SchemaProps: spec.SchemaProps{ 2547 Default: map[string]interface{}{}, 2548 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.CISBenchmarkResult"), 2549 }, 2550 }, 2551 "count": { 2552 SchemaProps: spec.SchemaProps{ 2553 Default: 0, 2554 Type: []string{"integer"}, 2555 Format: "int32", 2556 }, 2557 }, 2558 }, 2559 Required: []string{"CISBenchmarkResult", "count"}, 2560 }, 2561 }, 2562 Dependencies: []string{ 2563 "github.com/tigera/api/pkg/apis/projectcalico/v3.CISBenchmarkResult"}, 2564 } 2565 } 2566 2567 func schema_pkg_apis_projectcalico_v3_CISBenchmarkSectionResult(ref common.ReferenceCallback) common.OpenAPIDefinition { 2568 return common.OpenAPIDefinition{ 2569 Schema: spec.Schema{ 2570 SchemaProps: spec.SchemaProps{ 2571 Description: "CISBenchmarkSectionResult describes the result of running the CIS benchmark on a single component.", 2572 Type: []string{"object"}, 2573 Properties: map[string]spec.Schema{ 2574 "status": { 2575 SchemaProps: spec.SchemaProps{ 2576 Default: "", 2577 Type: []string{"string"}, 2578 Format: "", 2579 }, 2580 }, 2581 "section": { 2582 SchemaProps: spec.SchemaProps{ 2583 Default: "", 2584 Type: []string{"string"}, 2585 Format: "", 2586 }, 2587 }, 2588 "desc": { 2589 SchemaProps: spec.SchemaProps{ 2590 Default: "", 2591 Type: []string{"string"}, 2592 Format: "", 2593 }, 2594 }, 2595 "pass": { 2596 SchemaProps: spec.SchemaProps{ 2597 Default: 0, 2598 Type: []string{"integer"}, 2599 Format: "int32", 2600 }, 2601 }, 2602 "fail": { 2603 SchemaProps: spec.SchemaProps{ 2604 Default: 0, 2605 Type: []string{"integer"}, 2606 Format: "int32", 2607 }, 2608 }, 2609 "info": { 2610 SchemaProps: spec.SchemaProps{ 2611 Default: 0, 2612 Type: []string{"integer"}, 2613 Format: "int32", 2614 }, 2615 }, 2616 "results": { 2617 SchemaProps: spec.SchemaProps{ 2618 Type: []string{"array"}, 2619 Items: &spec.SchemaOrArray{ 2620 Schema: &spec.Schema{ 2621 SchemaProps: spec.SchemaProps{ 2622 Default: map[string]interface{}{}, 2623 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.CISBenchmarkResult"), 2624 }, 2625 }, 2626 }, 2627 }, 2628 }, 2629 }, 2630 Required: []string{"status", "section", "desc", "pass", "fail", "info", "results"}, 2631 }, 2632 }, 2633 Dependencies: []string{ 2634 "github.com/tigera/api/pkg/apis/projectcalico/v3.CISBenchmarkResult"}, 2635 } 2636 } 2637 2638 func schema_pkg_apis_projectcalico_v3_CISBenchmarkSelection(ref common.ReferenceCallback) common.OpenAPIDefinition { 2639 return common.OpenAPIDefinition{ 2640 Schema: spec.Schema{ 2641 SchemaProps: spec.SchemaProps{ 2642 Description: "CISBenchmarkSelection selects a particular set of benchmarks.", 2643 Type: []string{"object"}, 2644 Properties: map[string]spec.Schema{ 2645 "kubernetesVersion": { 2646 SchemaProps: spec.SchemaProps{ 2647 Description: "KubernetesVersion is used select nodes that are running a specific version of kubelet. The full version need not be fully specified down to the patch level, in which case the significant parts of the version are matched. e.g. \"1.0\" will match versions \"1.0.1\" and \"1.0.2\" If not specified, matches all versions.", 2648 Type: []string{"string"}, 2649 Format: "", 2650 }, 2651 }, 2652 }, 2653 }, 2654 }, 2655 } 2656 } 2657 2658 func schema_pkg_apis_projectcalico_v3_CISBenchmarkSummary(ref common.ReferenceCallback) common.OpenAPIDefinition { 2659 return common.OpenAPIDefinition{ 2660 Schema: spec.Schema{ 2661 SchemaProps: spec.SchemaProps{ 2662 Description: "CISBenchmarkSummary describes a CIS benchmarking result across an entire cluster.", 2663 Type: []string{"object"}, 2664 Properties: map[string]spec.Schema{ 2665 "type": { 2666 SchemaProps: spec.SchemaProps{ 2667 Default: "", 2668 Type: []string{"string"}, 2669 Format: "", 2670 }, 2671 }, 2672 "highCount": { 2673 SchemaProps: spec.SchemaProps{ 2674 Default: 0, 2675 Type: []string{"integer"}, 2676 Format: "int32", 2677 }, 2678 }, 2679 "medCount": { 2680 SchemaProps: spec.SchemaProps{ 2681 Default: 0, 2682 Type: []string{"integer"}, 2683 Format: "int32", 2684 }, 2685 }, 2686 "lowCount": { 2687 SchemaProps: spec.SchemaProps{ 2688 Default: 0, 2689 Type: []string{"integer"}, 2690 Format: "int32", 2691 }, 2692 }, 2693 }, 2694 Required: []string{"type", "highCount", "medCount", "lowCount"}, 2695 }, 2696 }, 2697 } 2698 } 2699 2700 func schema_pkg_apis_projectcalico_v3_CalicoNodeAgentStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 2701 return common.OpenAPIDefinition{ 2702 Schema: spec.Schema{ 2703 SchemaProps: spec.SchemaProps{ 2704 Description: "CalicoNodeAgentStatus defines the observed state of agent status on the node.", 2705 Type: []string{"object"}, 2706 Properties: map[string]spec.Schema{ 2707 "birdV4": { 2708 SchemaProps: spec.SchemaProps{ 2709 Description: "BIRDV4 represents the latest observed status of bird4.", 2710 Default: map[string]interface{}{}, 2711 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.BGPDaemonStatus"), 2712 }, 2713 }, 2714 "birdV6": { 2715 SchemaProps: spec.SchemaProps{ 2716 Description: "BIRDV6 represents the latest observed status of bird6.", 2717 Default: map[string]interface{}{}, 2718 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.BGPDaemonStatus"), 2719 }, 2720 }, 2721 }, 2722 }, 2723 }, 2724 Dependencies: []string{ 2725 "github.com/tigera/api/pkg/apis/projectcalico/v3.BGPDaemonStatus"}, 2726 } 2727 } 2728 2729 func schema_pkg_apis_projectcalico_v3_CalicoNodeBGPRouteStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 2730 return common.OpenAPIDefinition{ 2731 Schema: spec.Schema{ 2732 SchemaProps: spec.SchemaProps{ 2733 Description: "CalicoNodeBGPRouteStatus defines the observed state of routes status on the node.", 2734 Type: []string{"object"}, 2735 Properties: map[string]spec.Schema{ 2736 "routesV4": { 2737 SchemaProps: spec.SchemaProps{ 2738 Description: "RoutesV4 represents IPv4 routes on the node.", 2739 Type: []string{"array"}, 2740 Items: &spec.SchemaOrArray{ 2741 Schema: &spec.Schema{ 2742 SchemaProps: spec.SchemaProps{ 2743 Default: map[string]interface{}{}, 2744 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.CalicoNodeRoute"), 2745 }, 2746 }, 2747 }, 2748 }, 2749 }, 2750 "routesV6": { 2751 SchemaProps: spec.SchemaProps{ 2752 Description: "RoutesV6 represents IPv6 routes on the node.", 2753 Type: []string{"array"}, 2754 Items: &spec.SchemaOrArray{ 2755 Schema: &spec.Schema{ 2756 SchemaProps: spec.SchemaProps{ 2757 Default: map[string]interface{}{}, 2758 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.CalicoNodeRoute"), 2759 }, 2760 }, 2761 }, 2762 }, 2763 }, 2764 }, 2765 }, 2766 }, 2767 Dependencies: []string{ 2768 "github.com/tigera/api/pkg/apis/projectcalico/v3.CalicoNodeRoute"}, 2769 } 2770 } 2771 2772 func schema_pkg_apis_projectcalico_v3_CalicoNodeBGPStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 2773 return common.OpenAPIDefinition{ 2774 Schema: spec.Schema{ 2775 SchemaProps: spec.SchemaProps{ 2776 Description: "CalicoNodeBGPStatus defines the observed state of BGP status on the node.", 2777 Type: []string{"object"}, 2778 Properties: map[string]spec.Schema{ 2779 "numberEstablishedV4": { 2780 SchemaProps: spec.SchemaProps{ 2781 Description: "The total number of IPv4 established bgp sessions.", 2782 Default: 0, 2783 Type: []string{"integer"}, 2784 Format: "int32", 2785 }, 2786 }, 2787 "numberNotEstablishedV4": { 2788 SchemaProps: spec.SchemaProps{ 2789 Description: "The total number of IPv4 non-established bgp sessions.", 2790 Default: 0, 2791 Type: []string{"integer"}, 2792 Format: "int32", 2793 }, 2794 }, 2795 "numberEstablishedV6": { 2796 SchemaProps: spec.SchemaProps{ 2797 Description: "The total number of IPv6 established bgp sessions.", 2798 Default: 0, 2799 Type: []string{"integer"}, 2800 Format: "int32", 2801 }, 2802 }, 2803 "numberNotEstablishedV6": { 2804 SchemaProps: spec.SchemaProps{ 2805 Description: "The total number of IPv6 non-established bgp sessions.", 2806 Default: 0, 2807 Type: []string{"integer"}, 2808 Format: "int32", 2809 }, 2810 }, 2811 "peersV4": { 2812 SchemaProps: spec.SchemaProps{ 2813 Description: "PeersV4 represents IPv4 BGP peers status on the node.", 2814 Type: []string{"array"}, 2815 Items: &spec.SchemaOrArray{ 2816 Schema: &spec.Schema{ 2817 SchemaProps: spec.SchemaProps{ 2818 Default: map[string]interface{}{}, 2819 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.CalicoNodePeer"), 2820 }, 2821 }, 2822 }, 2823 }, 2824 }, 2825 "peersV6": { 2826 SchemaProps: spec.SchemaProps{ 2827 Description: "PeersV6 represents IPv6 BGP peers status on the node.", 2828 Type: []string{"array"}, 2829 Items: &spec.SchemaOrArray{ 2830 Schema: &spec.Schema{ 2831 SchemaProps: spec.SchemaProps{ 2832 Default: map[string]interface{}{}, 2833 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.CalicoNodePeer"), 2834 }, 2835 }, 2836 }, 2837 }, 2838 }, 2839 }, 2840 Required: []string{"numberEstablishedV4", "numberNotEstablishedV4", "numberEstablishedV6", "numberNotEstablishedV6"}, 2841 }, 2842 }, 2843 Dependencies: []string{ 2844 "github.com/tigera/api/pkg/apis/projectcalico/v3.CalicoNodePeer"}, 2845 } 2846 } 2847 2848 func schema_pkg_apis_projectcalico_v3_CalicoNodePeer(ref common.ReferenceCallback) common.OpenAPIDefinition { 2849 return common.OpenAPIDefinition{ 2850 Schema: spec.Schema{ 2851 SchemaProps: spec.SchemaProps{ 2852 Description: "CalicoNodePeer contains the status of BGP peers on the node.", 2853 Type: []string{"object"}, 2854 Properties: map[string]spec.Schema{ 2855 "peerIP": { 2856 SchemaProps: spec.SchemaProps{ 2857 Description: "IP address of the peer whose condition we are reporting.", 2858 Type: []string{"string"}, 2859 Format: "", 2860 }, 2861 }, 2862 "type": { 2863 SchemaProps: spec.SchemaProps{ 2864 Description: "Type indicates whether this peer is configured via the node-to-node mesh, or via en explicit global or per-node BGPPeer object.", 2865 Type: []string{"string"}, 2866 Format: "", 2867 }, 2868 }, 2869 "state": { 2870 SchemaProps: spec.SchemaProps{ 2871 Description: "State is the BGP session state.", 2872 Type: []string{"string"}, 2873 Format: "", 2874 }, 2875 }, 2876 "since": { 2877 SchemaProps: spec.SchemaProps{ 2878 Description: "Since the state or reason last changed.", 2879 Type: []string{"string"}, 2880 Format: "", 2881 }, 2882 }, 2883 }, 2884 }, 2885 }, 2886 } 2887 } 2888 2889 func schema_pkg_apis_projectcalico_v3_CalicoNodeRoute(ref common.ReferenceCallback) common.OpenAPIDefinition { 2890 return common.OpenAPIDefinition{ 2891 Schema: spec.Schema{ 2892 SchemaProps: spec.SchemaProps{ 2893 Description: "CalicoNodeRoute contains the status of BGP routes on the node.", 2894 Type: []string{"object"}, 2895 Properties: map[string]spec.Schema{ 2896 "type": { 2897 SchemaProps: spec.SchemaProps{ 2898 Description: "Type indicates if the route is being used for forwarding or not.", 2899 Type: []string{"string"}, 2900 Format: "", 2901 }, 2902 }, 2903 "destination": { 2904 SchemaProps: spec.SchemaProps{ 2905 Description: "Destination of the route.", 2906 Type: []string{"string"}, 2907 Format: "", 2908 }, 2909 }, 2910 "gateway": { 2911 SchemaProps: spec.SchemaProps{ 2912 Description: "Gateway for the destination.", 2913 Type: []string{"string"}, 2914 Format: "", 2915 }, 2916 }, 2917 "interface": { 2918 SchemaProps: spec.SchemaProps{ 2919 Description: "Interface for the destination", 2920 Type: []string{"string"}, 2921 Format: "", 2922 }, 2923 }, 2924 "learnedFrom": { 2925 SchemaProps: spec.SchemaProps{ 2926 Description: "LearnedFrom contains information regarding where this route originated.", 2927 Default: map[string]interface{}{}, 2928 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.CalicoNodeRouteLearnedFrom"), 2929 }, 2930 }, 2931 }, 2932 }, 2933 }, 2934 Dependencies: []string{ 2935 "github.com/tigera/api/pkg/apis/projectcalico/v3.CalicoNodeRouteLearnedFrom"}, 2936 } 2937 } 2938 2939 func schema_pkg_apis_projectcalico_v3_CalicoNodeRouteLearnedFrom(ref common.ReferenceCallback) common.OpenAPIDefinition { 2940 return common.OpenAPIDefinition{ 2941 Schema: spec.Schema{ 2942 SchemaProps: spec.SchemaProps{ 2943 Description: "CalicoNodeRouteLearnedFrom contains the information of the source from which a routes has been learned.", 2944 Type: []string{"object"}, 2945 Properties: map[string]spec.Schema{ 2946 "sourceType": { 2947 SchemaProps: spec.SchemaProps{ 2948 Description: "Type of the source where a route is learned from.", 2949 Type: []string{"string"}, 2950 Format: "", 2951 }, 2952 }, 2953 "peerIP": { 2954 SchemaProps: spec.SchemaProps{ 2955 Description: "If sourceType is NodeMesh or BGPPeer, IP address of the router that sent us this route.", 2956 Type: []string{"string"}, 2957 Format: "", 2958 }, 2959 }, 2960 }, 2961 }, 2962 }, 2963 } 2964 } 2965 2966 func schema_pkg_apis_projectcalico_v3_CalicoNodeStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 2967 return common.OpenAPIDefinition{ 2968 Schema: spec.Schema{ 2969 SchemaProps: spec.SchemaProps{ 2970 Type: []string{"object"}, 2971 Properties: map[string]spec.Schema{ 2972 "kind": { 2973 SchemaProps: spec.SchemaProps{ 2974 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 2975 Type: []string{"string"}, 2976 Format: "", 2977 }, 2978 }, 2979 "apiVersion": { 2980 SchemaProps: spec.SchemaProps{ 2981 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 2982 Type: []string{"string"}, 2983 Format: "", 2984 }, 2985 }, 2986 "metadata": { 2987 SchemaProps: spec.SchemaProps{ 2988 Default: map[string]interface{}{}, 2989 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 2990 }, 2991 }, 2992 "spec": { 2993 SchemaProps: spec.SchemaProps{ 2994 Default: map[string]interface{}{}, 2995 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.CalicoNodeStatusSpec"), 2996 }, 2997 }, 2998 "status": { 2999 SchemaProps: spec.SchemaProps{ 3000 Default: map[string]interface{}{}, 3001 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.CalicoNodeStatusStatus"), 3002 }, 3003 }, 3004 }, 3005 }, 3006 }, 3007 Dependencies: []string{ 3008 "github.com/tigera/api/pkg/apis/projectcalico/v3.CalicoNodeStatusSpec", "github.com/tigera/api/pkg/apis/projectcalico/v3.CalicoNodeStatusStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 3009 } 3010 } 3011 3012 func schema_pkg_apis_projectcalico_v3_CalicoNodeStatusList(ref common.ReferenceCallback) common.OpenAPIDefinition { 3013 return common.OpenAPIDefinition{ 3014 Schema: spec.Schema{ 3015 SchemaProps: spec.SchemaProps{ 3016 Description: "CalicoNodeStatusList is a list of CalicoNodeStatus resources.", 3017 Type: []string{"object"}, 3018 Properties: map[string]spec.Schema{ 3019 "kind": { 3020 SchemaProps: spec.SchemaProps{ 3021 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 3022 Type: []string{"string"}, 3023 Format: "", 3024 }, 3025 }, 3026 "apiVersion": { 3027 SchemaProps: spec.SchemaProps{ 3028 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 3029 Type: []string{"string"}, 3030 Format: "", 3031 }, 3032 }, 3033 "metadata": { 3034 SchemaProps: spec.SchemaProps{ 3035 Default: map[string]interface{}{}, 3036 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 3037 }, 3038 }, 3039 "items": { 3040 SchemaProps: spec.SchemaProps{ 3041 Type: []string{"array"}, 3042 Items: &spec.SchemaOrArray{ 3043 Schema: &spec.Schema{ 3044 SchemaProps: spec.SchemaProps{ 3045 Default: map[string]interface{}{}, 3046 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.CalicoNodeStatus"), 3047 }, 3048 }, 3049 }, 3050 }, 3051 }, 3052 }, 3053 Required: []string{"items"}, 3054 }, 3055 }, 3056 Dependencies: []string{ 3057 "github.com/tigera/api/pkg/apis/projectcalico/v3.CalicoNodeStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 3058 } 3059 } 3060 3061 func schema_pkg_apis_projectcalico_v3_CalicoNodeStatusSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 3062 return common.OpenAPIDefinition{ 3063 Schema: spec.Schema{ 3064 SchemaProps: spec.SchemaProps{ 3065 Description: "CalicoNodeStatusSpec contains the specification for a CalicoNodeStatus resource.", 3066 Type: []string{"object"}, 3067 Properties: map[string]spec.Schema{ 3068 "node": { 3069 SchemaProps: spec.SchemaProps{ 3070 Description: "The node name identifies the Calico node instance for node status.", 3071 Type: []string{"string"}, 3072 Format: "", 3073 }, 3074 }, 3075 "classes": { 3076 SchemaProps: spec.SchemaProps{ 3077 Description: "Classes declares the types of information to monitor for this calico/node, and allows for selective status reporting about certain subsets of information.", 3078 Type: []string{"array"}, 3079 Items: &spec.SchemaOrArray{ 3080 Schema: &spec.Schema{ 3081 SchemaProps: spec.SchemaProps{ 3082 Default: "", 3083 Type: []string{"string"}, 3084 Format: "", 3085 }, 3086 }, 3087 }, 3088 }, 3089 }, 3090 "updatePeriodSeconds": { 3091 SchemaProps: spec.SchemaProps{ 3092 Description: "UpdatePeriodSeconds is the period at which CalicoNodeStatus should be updated. Set to 0 to disable CalicoNodeStatus refresh. Maximum update period is one day.", 3093 Type: []string{"integer"}, 3094 Format: "int64", 3095 }, 3096 }, 3097 }, 3098 }, 3099 }, 3100 } 3101 } 3102 3103 func schema_pkg_apis_projectcalico_v3_CalicoNodeStatusStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 3104 return common.OpenAPIDefinition{ 3105 Schema: spec.Schema{ 3106 SchemaProps: spec.SchemaProps{ 3107 Description: "CalicoNodeStatusStatus defines the observed state of CalicoNodeStatus. No validation needed for status since it is updated by Calico.", 3108 Type: []string{"object"}, 3109 Properties: map[string]spec.Schema{ 3110 "lastUpdated": { 3111 SchemaProps: spec.SchemaProps{ 3112 Description: "LastUpdated is a timestamp representing the server time when CalicoNodeStatus object last updated. It is represented in RFC3339 form and is in UTC.", 3113 Default: map[string]interface{}{}, 3114 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 3115 }, 3116 }, 3117 "agent": { 3118 SchemaProps: spec.SchemaProps{ 3119 Description: "Agent holds agent status on the node.", 3120 Default: map[string]interface{}{}, 3121 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.CalicoNodeAgentStatus"), 3122 }, 3123 }, 3124 "bgp": { 3125 SchemaProps: spec.SchemaProps{ 3126 Description: "BGP holds node BGP status.", 3127 Default: map[string]interface{}{}, 3128 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.CalicoNodeBGPStatus"), 3129 }, 3130 }, 3131 "routes": { 3132 SchemaProps: spec.SchemaProps{ 3133 Description: "Routes reports routes known to the Calico BGP daemon on the node.", 3134 Default: map[string]interface{}{}, 3135 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.CalicoNodeBGPRouteStatus"), 3136 }, 3137 }, 3138 }, 3139 }, 3140 }, 3141 Dependencies: []string{ 3142 "github.com/tigera/api/pkg/apis/projectcalico/v3.CalicoNodeAgentStatus", "github.com/tigera/api/pkg/apis/projectcalico/v3.CalicoNodeBGPRouteStatus", "github.com/tigera/api/pkg/apis/projectcalico/v3.CalicoNodeBGPStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 3143 } 3144 } 3145 3146 func schema_pkg_apis_projectcalico_v3_ClusterInformation(ref common.ReferenceCallback) common.OpenAPIDefinition { 3147 return common.OpenAPIDefinition{ 3148 Schema: spec.Schema{ 3149 SchemaProps: spec.SchemaProps{ 3150 Type: []string{"object"}, 3151 Properties: map[string]spec.Schema{ 3152 "kind": { 3153 SchemaProps: spec.SchemaProps{ 3154 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 3155 Type: []string{"string"}, 3156 Format: "", 3157 }, 3158 }, 3159 "apiVersion": { 3160 SchemaProps: spec.SchemaProps{ 3161 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 3162 Type: []string{"string"}, 3163 Format: "", 3164 }, 3165 }, 3166 "metadata": { 3167 SchemaProps: spec.SchemaProps{ 3168 Default: map[string]interface{}{}, 3169 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 3170 }, 3171 }, 3172 "spec": { 3173 SchemaProps: spec.SchemaProps{ 3174 Default: map[string]interface{}{}, 3175 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ClusterInformationSpec"), 3176 }, 3177 }, 3178 }, 3179 }, 3180 }, 3181 Dependencies: []string{ 3182 "github.com/tigera/api/pkg/apis/projectcalico/v3.ClusterInformationSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 3183 } 3184 } 3185 3186 func schema_pkg_apis_projectcalico_v3_ClusterInformationList(ref common.ReferenceCallback) common.OpenAPIDefinition { 3187 return common.OpenAPIDefinition{ 3188 Schema: spec.Schema{ 3189 SchemaProps: spec.SchemaProps{ 3190 Description: "ClusterInformationList is a list of ClusterInformation objects.", 3191 Type: []string{"object"}, 3192 Properties: map[string]spec.Schema{ 3193 "kind": { 3194 SchemaProps: spec.SchemaProps{ 3195 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 3196 Type: []string{"string"}, 3197 Format: "", 3198 }, 3199 }, 3200 "apiVersion": { 3201 SchemaProps: spec.SchemaProps{ 3202 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 3203 Type: []string{"string"}, 3204 Format: "", 3205 }, 3206 }, 3207 "metadata": { 3208 SchemaProps: spec.SchemaProps{ 3209 Default: map[string]interface{}{}, 3210 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 3211 }, 3212 }, 3213 "items": { 3214 SchemaProps: spec.SchemaProps{ 3215 Type: []string{"array"}, 3216 Items: &spec.SchemaOrArray{ 3217 Schema: &spec.Schema{ 3218 SchemaProps: spec.SchemaProps{ 3219 Default: map[string]interface{}{}, 3220 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ClusterInformation"), 3221 }, 3222 }, 3223 }, 3224 }, 3225 }, 3226 }, 3227 Required: []string{"items"}, 3228 }, 3229 }, 3230 Dependencies: []string{ 3231 "github.com/tigera/api/pkg/apis/projectcalico/v3.ClusterInformation", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 3232 } 3233 } 3234 3235 func schema_pkg_apis_projectcalico_v3_ClusterInformationSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 3236 return common.OpenAPIDefinition{ 3237 Schema: spec.Schema{ 3238 SchemaProps: spec.SchemaProps{ 3239 Description: "ClusterInformationSpec contains the values of describing the cluster.", 3240 Type: []string{"object"}, 3241 Properties: map[string]spec.Schema{ 3242 "clusterGUID": { 3243 SchemaProps: spec.SchemaProps{ 3244 Description: "ClusterGUID is the GUID of the cluster", 3245 Type: []string{"string"}, 3246 Format: "", 3247 }, 3248 }, 3249 "clusterType": { 3250 SchemaProps: spec.SchemaProps{ 3251 Description: "ClusterType describes the type of the cluster", 3252 Type: []string{"string"}, 3253 Format: "", 3254 }, 3255 }, 3256 "calicoVersion": { 3257 SchemaProps: spec.SchemaProps{ 3258 Description: "CalicoVersion is the version of Calico that the cluster is running", 3259 Type: []string{"string"}, 3260 Format: "", 3261 }, 3262 }, 3263 "cnxVersion": { 3264 SchemaProps: spec.SchemaProps{ 3265 Description: "CNXVersion is the version of CNX that the cluster is running", 3266 Type: []string{"string"}, 3267 Format: "", 3268 }, 3269 }, 3270 "datastoreReady": { 3271 SchemaProps: spec.SchemaProps{ 3272 Description: "DatastoreReady is used during significant datastore migrations to signal to components such as Felix that it should wait before accessing the datastore.", 3273 Type: []string{"boolean"}, 3274 Format: "", 3275 }, 3276 }, 3277 "variant": { 3278 SchemaProps: spec.SchemaProps{ 3279 Description: "Variant declares which variant of Calico should be active.", 3280 Type: []string{"string"}, 3281 Format: "", 3282 }, 3283 }, 3284 }, 3285 }, 3286 }, 3287 } 3288 } 3289 3290 func schema_pkg_apis_projectcalico_v3_Community(ref common.ReferenceCallback) common.OpenAPIDefinition { 3291 return common.OpenAPIDefinition{ 3292 Schema: spec.Schema{ 3293 SchemaProps: spec.SchemaProps{ 3294 Description: "Community contains standard or large community value and its name.", 3295 Type: []string{"object"}, 3296 Properties: map[string]spec.Schema{ 3297 "name": { 3298 SchemaProps: spec.SchemaProps{ 3299 Description: "Name given to community value.", 3300 Type: []string{"string"}, 3301 Format: "", 3302 }, 3303 }, 3304 "value": { 3305 SchemaProps: spec.SchemaProps{ 3306 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.", 3307 Type: []string{"string"}, 3308 Format: "", 3309 }, 3310 }, 3311 }, 3312 }, 3313 }, 3314 } 3315 } 3316 3317 func schema_pkg_apis_projectcalico_v3_CompletedReportJob(ref common.ReferenceCallback) common.OpenAPIDefinition { 3318 return common.OpenAPIDefinition{ 3319 Schema: spec.Schema{ 3320 SchemaProps: spec.SchemaProps{ 3321 Description: "CompletedReportJob augments the ReportJob with completion details.", 3322 Type: []string{"object"}, 3323 Properties: map[string]spec.Schema{ 3324 "start": { 3325 SchemaProps: spec.SchemaProps{ 3326 Description: "The start time of the report.", 3327 Default: map[string]interface{}{}, 3328 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 3329 }, 3330 }, 3331 "end": { 3332 SchemaProps: spec.SchemaProps{ 3333 Description: "The end time of the report.", 3334 Default: map[string]interface{}{}, 3335 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 3336 }, 3337 }, 3338 "job": { 3339 SchemaProps: spec.SchemaProps{ 3340 Description: "A reference to the report creation job if known.", 3341 Ref: ref("k8s.io/api/core/v1.ObjectReference"), 3342 }, 3343 }, 3344 "jobCompletionTime": { 3345 SchemaProps: spec.SchemaProps{ 3346 Description: "The time the report job completed.", 3347 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 3348 }, 3349 }, 3350 }, 3351 Required: []string{"start", "end", "job"}, 3352 }, 3353 }, 3354 Dependencies: []string{ 3355 "k8s.io/api/core/v1.ObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 3356 } 3357 } 3358 3359 func schema_pkg_apis_projectcalico_v3_ControllersConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 3360 return common.OpenAPIDefinition{ 3361 Schema: spec.Schema{ 3362 SchemaProps: spec.SchemaProps{ 3363 Description: "ControllersConfig enables and configures individual Kubernetes controllers", 3364 Type: []string{"object"}, 3365 Properties: map[string]spec.Schema{ 3366 "node": { 3367 SchemaProps: spec.SchemaProps{ 3368 Description: "Node enables and configures the node controller. Enabled by default, set to nil to disable.", 3369 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.NodeControllerConfig"), 3370 }, 3371 }, 3372 "policy": { 3373 SchemaProps: spec.SchemaProps{ 3374 Description: "Policy enables and configures the policy controller. Enabled by default, set to nil to disable.", 3375 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.PolicyControllerConfig"), 3376 }, 3377 }, 3378 "workloadEndpoint": { 3379 SchemaProps: spec.SchemaProps{ 3380 Description: "WorkloadEndpoint enables and configures the workload endpoint controller. Enabled by default, set to nil to disable.", 3381 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.WorkloadEndpointControllerConfig"), 3382 }, 3383 }, 3384 "serviceAccount": { 3385 SchemaProps: spec.SchemaProps{ 3386 Description: "ServiceAccount enables and configures the service account controller. Enabled by default, set to nil to disable.", 3387 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ServiceAccountControllerConfig"), 3388 }, 3389 }, 3390 "namespace": { 3391 SchemaProps: spec.SchemaProps{ 3392 Description: "Namespace enables and configures the namespace controller. Enabled by default, set to nil to disable.", 3393 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.NamespaceControllerConfig"), 3394 }, 3395 }, 3396 "federatedServices": { 3397 SchemaProps: spec.SchemaProps{ 3398 Description: "FederatedServices enables and configures the federatedservices controller. Disabled by default.", 3399 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.FederatedServicesControllerConfig"), 3400 }, 3401 }, 3402 }, 3403 }, 3404 }, 3405 Dependencies: []string{ 3406 "github.com/tigera/api/pkg/apis/projectcalico/v3.FederatedServicesControllerConfig", "github.com/tigera/api/pkg/apis/projectcalico/v3.NamespaceControllerConfig", "github.com/tigera/api/pkg/apis/projectcalico/v3.NodeControllerConfig", "github.com/tigera/api/pkg/apis/projectcalico/v3.PolicyControllerConfig", "github.com/tigera/api/pkg/apis/projectcalico/v3.ServiceAccountControllerConfig", "github.com/tigera/api/pkg/apis/projectcalico/v3.WorkloadEndpointControllerConfig"}, 3407 } 3408 } 3409 3410 func schema_pkg_apis_projectcalico_v3_DPIActive(ref common.ReferenceCallback) common.OpenAPIDefinition { 3411 return common.OpenAPIDefinition{ 3412 Schema: spec.Schema{ 3413 SchemaProps: spec.SchemaProps{ 3414 Type: []string{"object"}, 3415 Properties: map[string]spec.Schema{ 3416 "success": { 3417 SchemaProps: spec.SchemaProps{ 3418 Description: "Success indicates if deep packet inspection is running on all workloads matching the selector.", 3419 Type: []string{"boolean"}, 3420 Format: "", 3421 }, 3422 }, 3423 "lastUpdated": { 3424 SchemaProps: spec.SchemaProps{ 3425 Description: "Timestamp of when the active status was last updated.", 3426 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 3427 }, 3428 }, 3429 }, 3430 }, 3431 }, 3432 Dependencies: []string{ 3433 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 3434 } 3435 } 3436 3437 func schema_pkg_apis_projectcalico_v3_DPIErrorCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 3438 return common.OpenAPIDefinition{ 3439 Schema: spec.Schema{ 3440 SchemaProps: spec.SchemaProps{ 3441 Type: []string{"object"}, 3442 Properties: map[string]spec.Schema{ 3443 "message": { 3444 SchemaProps: spec.SchemaProps{ 3445 Description: "Message from deep packet inspection error.", 3446 Type: []string{"string"}, 3447 Format: "", 3448 }, 3449 }, 3450 "lastUpdated": { 3451 SchemaProps: spec.SchemaProps{ 3452 Description: "Timestamp of when this error message was added.", 3453 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 3454 }, 3455 }, 3456 }, 3457 }, 3458 }, 3459 Dependencies: []string{ 3460 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 3461 } 3462 } 3463 3464 func schema_pkg_apis_projectcalico_v3_DPINode(ref common.ReferenceCallback) common.OpenAPIDefinition { 3465 return common.OpenAPIDefinition{ 3466 Schema: spec.Schema{ 3467 SchemaProps: spec.SchemaProps{ 3468 Type: []string{"object"}, 3469 Properties: map[string]spec.Schema{ 3470 "node": { 3471 SchemaProps: spec.SchemaProps{ 3472 Description: "Node identifies with a physical node from the cluster via its hostname.", 3473 Type: []string{"string"}, 3474 Format: "", 3475 }, 3476 }, 3477 "active": { 3478 SchemaProps: spec.SchemaProps{ 3479 Default: map[string]interface{}{}, 3480 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.DPIActive"), 3481 }, 3482 }, 3483 "errorConditions": { 3484 SchemaProps: spec.SchemaProps{ 3485 Type: []string{"array"}, 3486 Items: &spec.SchemaOrArray{ 3487 Schema: &spec.Schema{ 3488 SchemaProps: spec.SchemaProps{ 3489 Default: map[string]interface{}{}, 3490 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.DPIErrorCondition"), 3491 }, 3492 }, 3493 }, 3494 }, 3495 }, 3496 }, 3497 }, 3498 }, 3499 Dependencies: []string{ 3500 "github.com/tigera/api/pkg/apis/projectcalico/v3.DPIActive", "github.com/tigera/api/pkg/apis/projectcalico/v3.DPIErrorCondition"}, 3501 } 3502 } 3503 3504 func schema_pkg_apis_projectcalico_v3_DashboardData(ref common.ReferenceCallback) common.OpenAPIDefinition { 3505 return common.OpenAPIDefinition{ 3506 Schema: spec.Schema{ 3507 SchemaProps: spec.SchemaProps{ 3508 Type: []string{"object"}, 3509 Properties: map[string]spec.Schema{ 3510 "selectedNamespace": { 3511 SchemaProps: spec.SchemaProps{ 3512 Description: "Namespace user selected for the dashboard", 3513 Type: []string{"string"}, 3514 Format: "", 3515 }, 3516 }, 3517 "type": { 3518 SchemaProps: spec.SchemaProps{ 3519 Description: "Type of the dashboard", 3520 Type: []string{"string"}, 3521 Format: "", 3522 }, 3523 }, 3524 "layout": { 3525 SchemaProps: spec.SchemaProps{ 3526 Description: "Layout information of the dashboard card", 3527 Default: map[string]interface{}{}, 3528 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.DashboardLayout"), 3529 }, 3530 }, 3531 }, 3532 }, 3533 }, 3534 Dependencies: []string{ 3535 "github.com/tigera/api/pkg/apis/projectcalico/v3.DashboardLayout"}, 3536 } 3537 } 3538 3539 func schema_pkg_apis_projectcalico_v3_DashboardLayout(ref common.ReferenceCallback) common.OpenAPIDefinition { 3540 return common.OpenAPIDefinition{ 3541 Schema: spec.Schema{ 3542 SchemaProps: spec.SchemaProps{ 3543 Type: []string{"object"}, 3544 Properties: map[string]spec.Schema{ 3545 "index": { 3546 SchemaProps: spec.SchemaProps{ 3547 Description: "Index of the dashboard", 3548 Type: []string{"string"}, 3549 Format: "", 3550 }, 3551 }, 3552 "xPos": { 3553 SchemaProps: spec.SchemaProps{ 3554 Description: "X coordinate of the top-left corner of the dashboard card", 3555 Default: 0, 3556 Type: []string{"integer"}, 3557 Format: "int64", 3558 }, 3559 }, 3560 "yPos": { 3561 SchemaProps: spec.SchemaProps{ 3562 Description: "Y coordinate of the top-left corner of the dashboard card", 3563 Default: 0, 3564 Type: []string{"integer"}, 3565 Format: "int64", 3566 }, 3567 }, 3568 "width": { 3569 SchemaProps: spec.SchemaProps{ 3570 Description: "Width of the dashboard card", 3571 Default: 0, 3572 Type: []string{"integer"}, 3573 Format: "int64", 3574 }, 3575 }, 3576 "height": { 3577 SchemaProps: spec.SchemaProps{ 3578 Description: "Height of the dashboard card", 3579 Default: 0, 3580 Type: []string{"integer"}, 3581 Format: "int64", 3582 }, 3583 }, 3584 "minWidth": { 3585 SchemaProps: spec.SchemaProps{ 3586 Description: "Minimum limit set for the size of the dashboard card width", 3587 Type: []string{"integer"}, 3588 Format: "int64", 3589 }, 3590 }, 3591 "maxWidth": { 3592 SchemaProps: spec.SchemaProps{ 3593 Description: "Maximum limit set for the size of the dashboard card width", 3594 Type: []string{"integer"}, 3595 Format: "int64", 3596 }, 3597 }, 3598 "minHeight": { 3599 SchemaProps: spec.SchemaProps{ 3600 Description: "Minimum limit set for the size of the dashboard card height", 3601 Type: []string{"integer"}, 3602 Format: "int64", 3603 }, 3604 }, 3605 "maxHeight": { 3606 SchemaProps: spec.SchemaProps{ 3607 Description: "Maximum limit set for the size of the dashboard card height", 3608 Type: []string{"integer"}, 3609 Format: "int64", 3610 }, 3611 }, 3612 "isResizable": { 3613 SchemaProps: spec.SchemaProps{ 3614 Description: "Whether this dashboard card should be re-sizeable or not", 3615 Type: []string{"boolean"}, 3616 Format: "", 3617 }, 3618 }, 3619 "isVisible": { 3620 SchemaProps: spec.SchemaProps{ 3621 Description: "Whether this dashboard card should be visible or not", 3622 Type: []string{"boolean"}, 3623 Format: "", 3624 }, 3625 }, 3626 "isInNamespaceView": { 3627 SchemaProps: spec.SchemaProps{ 3628 Description: "Whether this dashboard is in namespace view or not", 3629 Type: []string{"boolean"}, 3630 Format: "", 3631 }, 3632 }, 3633 }, 3634 Required: []string{"xPos", "yPos", "width", "height"}, 3635 }, 3636 }, 3637 } 3638 } 3639 3640 func schema_pkg_apis_projectcalico_v3_DeepPacketInspection(ref common.ReferenceCallback) common.OpenAPIDefinition { 3641 return common.OpenAPIDefinition{ 3642 Schema: spec.Schema{ 3643 SchemaProps: spec.SchemaProps{ 3644 Type: []string{"object"}, 3645 Properties: map[string]spec.Schema{ 3646 "kind": { 3647 SchemaProps: spec.SchemaProps{ 3648 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 3649 Type: []string{"string"}, 3650 Format: "", 3651 }, 3652 }, 3653 "apiVersion": { 3654 SchemaProps: spec.SchemaProps{ 3655 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 3656 Type: []string{"string"}, 3657 Format: "", 3658 }, 3659 }, 3660 "metadata": { 3661 SchemaProps: spec.SchemaProps{ 3662 Description: "Standard object's metadata.", 3663 Default: map[string]interface{}{}, 3664 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 3665 }, 3666 }, 3667 "spec": { 3668 SchemaProps: spec.SchemaProps{ 3669 Description: "Specification of the DeepPacketInspection.", 3670 Default: map[string]interface{}{}, 3671 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.DeepPacketInspectionSpec"), 3672 }, 3673 }, 3674 "status": { 3675 SchemaProps: spec.SchemaProps{ 3676 Description: "Status of the DeepPacketInspection.", 3677 Default: map[string]interface{}{}, 3678 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.DeepPacketInspectionStatus"), 3679 }, 3680 }, 3681 }, 3682 }, 3683 }, 3684 Dependencies: []string{ 3685 "github.com/tigera/api/pkg/apis/projectcalico/v3.DeepPacketInspectionSpec", "github.com/tigera/api/pkg/apis/projectcalico/v3.DeepPacketInspectionStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 3686 } 3687 } 3688 3689 func schema_pkg_apis_projectcalico_v3_DeepPacketInspectionList(ref common.ReferenceCallback) common.OpenAPIDefinition { 3690 return common.OpenAPIDefinition{ 3691 Schema: spec.Schema{ 3692 SchemaProps: spec.SchemaProps{ 3693 Description: "DeepPacketInspectionList contains list of DeepPacketInspection resource.", 3694 Type: []string{"object"}, 3695 Properties: map[string]spec.Schema{ 3696 "kind": { 3697 SchemaProps: spec.SchemaProps{ 3698 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 3699 Type: []string{"string"}, 3700 Format: "", 3701 }, 3702 }, 3703 "apiVersion": { 3704 SchemaProps: spec.SchemaProps{ 3705 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 3706 Type: []string{"string"}, 3707 Format: "", 3708 }, 3709 }, 3710 "metadata": { 3711 SchemaProps: spec.SchemaProps{ 3712 Default: map[string]interface{}{}, 3713 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 3714 }, 3715 }, 3716 "items": { 3717 SchemaProps: spec.SchemaProps{ 3718 Type: []string{"array"}, 3719 Items: &spec.SchemaOrArray{ 3720 Schema: &spec.Schema{ 3721 SchemaProps: spec.SchemaProps{ 3722 Default: map[string]interface{}{}, 3723 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.DeepPacketInspection"), 3724 }, 3725 }, 3726 }, 3727 }, 3728 }, 3729 }, 3730 Required: []string{"metadata", "items"}, 3731 }, 3732 }, 3733 Dependencies: []string{ 3734 "github.com/tigera/api/pkg/apis/projectcalico/v3.DeepPacketInspection", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 3735 } 3736 } 3737 3738 func schema_pkg_apis_projectcalico_v3_DeepPacketInspectionSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 3739 return common.OpenAPIDefinition{ 3740 Schema: spec.Schema{ 3741 SchemaProps: spec.SchemaProps{ 3742 Description: "DeepPacketInspectionSpec contains the values of the deep packet inspection.", 3743 Type: []string{"object"}, 3744 Properties: map[string]spec.Schema{ 3745 "selector": { 3746 SchemaProps: spec.SchemaProps{ 3747 Description: "The selector is an expression used to pick out the endpoints for which deep packet inspection should be performed on. The selector will only match endpoints in the same namespace as the DeepPacketInspection resource.\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)", 3748 Type: []string{"string"}, 3749 Format: "", 3750 }, 3751 }, 3752 }, 3753 }, 3754 }, 3755 } 3756 } 3757 3758 func schema_pkg_apis_projectcalico_v3_DeepPacketInspectionStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 3759 return common.OpenAPIDefinition{ 3760 Schema: spec.Schema{ 3761 SchemaProps: spec.SchemaProps{ 3762 Description: "DeepPacketInspectionStatus contains status of deep packet inspection in each node.", 3763 Type: []string{"object"}, 3764 Properties: map[string]spec.Schema{ 3765 "nodes": { 3766 SchemaProps: spec.SchemaProps{ 3767 Type: []string{"array"}, 3768 Items: &spec.SchemaOrArray{ 3769 Schema: &spec.Schema{ 3770 SchemaProps: spec.SchemaProps{ 3771 Default: map[string]interface{}{}, 3772 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.DPINode"), 3773 }, 3774 }, 3775 }, 3776 }, 3777 }, 3778 }, 3779 }, 3780 }, 3781 Dependencies: []string{ 3782 "github.com/tigera/api/pkg/apis/projectcalico/v3.DPINode"}, 3783 } 3784 } 3785 3786 func schema_pkg_apis_projectcalico_v3_DetectorParams(ref common.ReferenceCallback) common.OpenAPIDefinition { 3787 return common.OpenAPIDefinition{ 3788 Schema: spec.Schema{ 3789 SchemaProps: spec.SchemaProps{ 3790 Type: []string{"object"}, 3791 Properties: map[string]spec.Schema{ 3792 "name": { 3793 SchemaProps: spec.SchemaProps{ 3794 Description: "Name specifies the AnomalyDetection Detector to run.", 3795 Default: "", 3796 Type: []string{"string"}, 3797 Format: "", 3798 }, 3799 }, 3800 }, 3801 Required: []string{"name"}, 3802 }, 3803 }, 3804 } 3805 } 3806 3807 func schema_pkg_apis_projectcalico_v3_EgressGatewayPolicy(ref common.ReferenceCallback) common.OpenAPIDefinition { 3808 return common.OpenAPIDefinition{ 3809 Schema: spec.Schema{ 3810 SchemaProps: spec.SchemaProps{ 3811 Type: []string{"object"}, 3812 Properties: map[string]spec.Schema{ 3813 "kind": { 3814 SchemaProps: spec.SchemaProps{ 3815 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 3816 Type: []string{"string"}, 3817 Format: "", 3818 }, 3819 }, 3820 "apiVersion": { 3821 SchemaProps: spec.SchemaProps{ 3822 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 3823 Type: []string{"string"}, 3824 Format: "", 3825 }, 3826 }, 3827 "metadata": { 3828 SchemaProps: spec.SchemaProps{ 3829 Default: map[string]interface{}{}, 3830 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 3831 }, 3832 }, 3833 "spec": { 3834 SchemaProps: spec.SchemaProps{ 3835 Default: map[string]interface{}{}, 3836 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.EgressGatewayPolicySpec"), 3837 }, 3838 }, 3839 }, 3840 }, 3841 }, 3842 Dependencies: []string{ 3843 "github.com/tigera/api/pkg/apis/projectcalico/v3.EgressGatewayPolicySpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 3844 } 3845 } 3846 3847 func schema_pkg_apis_projectcalico_v3_EgressGatewayPolicyDestinationSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 3848 return common.OpenAPIDefinition{ 3849 Schema: spec.Schema{ 3850 SchemaProps: spec.SchemaProps{ 3851 Description: "DestinationSpec define a destination network that can be reached via an egress gateway", 3852 Type: []string{"object"}, 3853 Properties: map[string]spec.Schema{ 3854 "cidr": { 3855 SchemaProps: spec.SchemaProps{ 3856 Description: "The destination network CIDR.", 3857 Type: []string{"string"}, 3858 Format: "", 3859 }, 3860 }, 3861 }, 3862 }, 3863 }, 3864 } 3865 } 3866 3867 func schema_pkg_apis_projectcalico_v3_EgressGatewayPolicyList(ref common.ReferenceCallback) common.OpenAPIDefinition { 3868 return common.OpenAPIDefinition{ 3869 Schema: spec.Schema{ 3870 SchemaProps: spec.SchemaProps{ 3871 Description: "EgressGatewayPolicyList is a list of EgressGatewayPolicy resources.", 3872 Type: []string{"object"}, 3873 Properties: map[string]spec.Schema{ 3874 "kind": { 3875 SchemaProps: spec.SchemaProps{ 3876 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 3877 Type: []string{"string"}, 3878 Format: "", 3879 }, 3880 }, 3881 "apiVersion": { 3882 SchemaProps: spec.SchemaProps{ 3883 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 3884 Type: []string{"string"}, 3885 Format: "", 3886 }, 3887 }, 3888 "metadata": { 3889 SchemaProps: spec.SchemaProps{ 3890 Default: map[string]interface{}{}, 3891 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 3892 }, 3893 }, 3894 "items": { 3895 SchemaProps: spec.SchemaProps{ 3896 Type: []string{"array"}, 3897 Items: &spec.SchemaOrArray{ 3898 Schema: &spec.Schema{ 3899 SchemaProps: spec.SchemaProps{ 3900 Default: map[string]interface{}{}, 3901 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.EgressGatewayPolicy"), 3902 }, 3903 }, 3904 }, 3905 }, 3906 }, 3907 }, 3908 Required: []string{"items"}, 3909 }, 3910 }, 3911 Dependencies: []string{ 3912 "github.com/tigera/api/pkg/apis/projectcalico/v3.EgressGatewayPolicy", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 3913 } 3914 } 3915 3916 func schema_pkg_apis_projectcalico_v3_EgressGatewayPolicySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 3917 return common.OpenAPIDefinition{ 3918 Schema: spec.Schema{ 3919 SchemaProps: spec.SchemaProps{ 3920 Description: "EgressGatewayPolicySpec contains the egress policy rules for each destination network", 3921 Type: []string{"object"}, 3922 Properties: map[string]spec.Schema{ 3923 "rules": { 3924 SchemaProps: spec.SchemaProps{ 3925 Description: "The ordered set of Egress Gateway Policies to define how traffic exit a cluster", 3926 Type: []string{"array"}, 3927 Items: &spec.SchemaOrArray{ 3928 Schema: &spec.Schema{ 3929 SchemaProps: spec.SchemaProps{ 3930 Default: map[string]interface{}{}, 3931 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.EgressGatewayRule"), 3932 }, 3933 }, 3934 }, 3935 }, 3936 }, 3937 }, 3938 }, 3939 }, 3940 Dependencies: []string{ 3941 "github.com/tigera/api/pkg/apis/projectcalico/v3.EgressGatewayRule"}, 3942 } 3943 } 3944 3945 func schema_pkg_apis_projectcalico_v3_EgressGatewayRule(ref common.ReferenceCallback) common.OpenAPIDefinition { 3946 return common.OpenAPIDefinition{ 3947 Schema: spec.Schema{ 3948 SchemaProps: spec.SchemaProps{ 3949 Description: "EgressGatewayRule defines an Egress Gateway to reach a destination network", 3950 Type: []string{"object"}, 3951 Properties: map[string]spec.Schema{ 3952 "destination": { 3953 SchemaProps: spec.SchemaProps{ 3954 Description: "The destination network that can be reached via egress gateway. If no destination is set, the default route, 0.0.0.0/0, is used instead.", 3955 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.EgressGatewayPolicyDestinationSpec"), 3956 }, 3957 }, 3958 "description": { 3959 SchemaProps: spec.SchemaProps{ 3960 Description: "The description of the EgressGatewayPolicy rule.", 3961 Type: []string{"string"}, 3962 Format: "", 3963 }, 3964 }, 3965 "gateway": { 3966 SchemaProps: spec.SchemaProps{ 3967 Description: "Gateway specifies the egress gateway that should be used for the specified destination. If no gateway is set then the destination is routed normally rather than via an egress gateway.", 3968 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.EgressSpec"), 3969 }, 3970 }, 3971 "gatewayPreference": { 3972 SchemaProps: spec.SchemaProps{ 3973 Description: "GatewayPreference specifies which egress gateways to use. If set to PreferNodeLocal, egress gateways in the same node as the client will be used if available. Otherwise all the active egress gateways will be used.", 3974 Type: []string{"string"}, 3975 Format: "", 3976 }, 3977 }, 3978 }, 3979 }, 3980 }, 3981 Dependencies: []string{ 3982 "github.com/tigera/api/pkg/apis/projectcalico/v3.EgressGatewayPolicyDestinationSpec", "github.com/tigera/api/pkg/apis/projectcalico/v3.EgressSpec"}, 3983 } 3984 } 3985 3986 func schema_pkg_apis_projectcalico_v3_EgressGatewaySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 3987 return common.OpenAPIDefinition{ 3988 Schema: spec.Schema{ 3989 SchemaProps: spec.SchemaProps{ 3990 Description: "EgressGatewaySpec allows to define an egress gateway directly, or to refer to an egress gateway policy resource.", 3991 Type: []string{"object"}, 3992 Properties: map[string]spec.Schema{ 3993 "policy": { 3994 SchemaProps: spec.SchemaProps{ 3995 Description: "Only one of these may be set. Reference to an EgressGatewayPolicy to use.", 3996 Type: []string{"string"}, 3997 Format: "", 3998 }, 3999 }, 4000 "gateway": { 4001 SchemaProps: spec.SchemaProps{ 4002 Description: "Reference to a specific EgressGateway to use.", 4003 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.EgressSpec"), 4004 }, 4005 }, 4006 }, 4007 }, 4008 }, 4009 Dependencies: []string{ 4010 "github.com/tigera/api/pkg/apis/projectcalico/v3.EgressSpec"}, 4011 } 4012 } 4013 4014 func schema_pkg_apis_projectcalico_v3_EgressSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 4015 return common.OpenAPIDefinition{ 4016 Schema: spec.Schema{ 4017 SchemaProps: spec.SchemaProps{ 4018 Description: "EgressSpec defines which egress gateway should be used.", 4019 Type: []string{"object"}, 4020 Properties: map[string]spec.Schema{ 4021 "namespaceSelector": { 4022 SchemaProps: spec.SchemaProps{ 4023 Description: "NamespaceSelector selects one or more namespaces containing an egress gateway deployment.", 4024 Type: []string{"string"}, 4025 Format: "", 4026 }, 4027 }, 4028 "selector": { 4029 SchemaProps: spec.SchemaProps{ 4030 Description: "Selector is an expression used to pick out the egress gateway that the destination can be reached via.", 4031 Type: []string{"string"}, 4032 Format: "", 4033 }, 4034 }, 4035 "maxNextHops": { 4036 SchemaProps: spec.SchemaProps{ 4037 Description: "MaxNextHops specifies the maximum number of egress gateway replicas from the selected deployment that a pod should depend on.", 4038 Type: []string{"integer"}, 4039 Format: "int32", 4040 }, 4041 }, 4042 }, 4043 }, 4044 }, 4045 } 4046 } 4047 4048 func schema_pkg_apis_projectcalico_v3_EndpointPort(ref common.ReferenceCallback) common.OpenAPIDefinition { 4049 return common.OpenAPIDefinition{ 4050 Schema: spec.Schema{ 4051 SchemaProps: spec.SchemaProps{ 4052 Type: []string{"object"}, 4053 Properties: map[string]spec.Schema{ 4054 "name": { 4055 SchemaProps: spec.SchemaProps{ 4056 Default: "", 4057 Type: []string{"string"}, 4058 Format: "", 4059 }, 4060 }, 4061 "protocol": { 4062 SchemaProps: spec.SchemaProps{ 4063 Default: map[string]interface{}{}, 4064 Ref: ref("github.com/tigera/api/pkg/lib/numorstring.Protocol"), 4065 }, 4066 }, 4067 "port": { 4068 SchemaProps: spec.SchemaProps{ 4069 Default: 0, 4070 Type: []string{"integer"}, 4071 Format: "int32", 4072 }, 4073 }, 4074 }, 4075 Required: []string{"name", "protocol", "port"}, 4076 }, 4077 }, 4078 Dependencies: []string{ 4079 "github.com/tigera/api/pkg/lib/numorstring.Protocol"}, 4080 } 4081 } 4082 4083 func schema_pkg_apis_projectcalico_v3_EndpointsReportEndpoint(ref common.ReferenceCallback) common.OpenAPIDefinition { 4084 return common.OpenAPIDefinition{ 4085 Schema: spec.Schema{ 4086 SchemaProps: spec.SchemaProps{ 4087 Type: []string{"object"}, 4088 Properties: map[string]spec.Schema{ 4089 "endpoint": { 4090 SchemaProps: spec.SchemaProps{ 4091 Default: map[string]interface{}{}, 4092 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ResourceID"), 4093 }, 4094 }, 4095 "ingressProtected": { 4096 SchemaProps: spec.SchemaProps{ 4097 Description: "Whether ingress traffic to this endpoint was always protected during the reporting interval.\n\nIngress protection is defined as denying ingress traffic unless explicitly whitelisted. This is translated as the endpoint having some explicit ingress policy applied to it.\n\nSource: Calculated from the set of ingress policies that apply to each endpoint.\n\nSet to: - false if there are no ingress policies applied to the endpoint at any point during the reporting interval. - true otherwise.\n\nNote: Policy is not inspected for protection bypass: for example match-all-and-allow rules which would effectively\n short-circuit the default tier-drop behavior, in this case the match-all-and-allow would be considered to be\n an explicit whitelist of all traffic. We could include simplistic all-match rules and check that they\n don't result in an allow. To check for more circuitous match-all allows is much trickier (e.g. you have one\n rule that allows for src!=1.2.3.0/24 and another rule that allows for src==1.2.3.0/24, which combined\n is essentially an allow-all).", 4098 Type: []string{"boolean"}, 4099 Format: "", 4100 }, 4101 }, 4102 "egressProtected": { 4103 SchemaProps: spec.SchemaProps{ 4104 Description: "Whether egress traffic to this endpoint was always protected during the reporting interval.\n\nEgress protection is defined as denying egress traffic unless explicitly whitelisted. This is translated as the endpoint having some explicit egress policy applied to it.\n\nSource: Calculated from the set of egress policies that apply to each endpoint.\n\nSet to: - false if there are no egress policies applied to the endpoint at any point during the reporting interval. - true otherwise.\n\nNote: Policy is not inspected for protection bypass: for example match-all-and-allow rules which would effectively\n short-circuit the default tier-drop behavior, in this case the match-all-and-allow would be considered to be\n an explicit whitelist of all traffic. We could include simplistic all-match rules and check that they\n don't result in an allow. To check for more circuitous match-all allows is much trickier (e.g. you have one\n rule that allows for src!=1.2.3.0/24 and another rule that allows for src==1.2.3.0/24, which combined\n is essentially an allow-all). Similarly, policy that only contains pass rules would still count as being\n protected.", 4105 Type: []string{"boolean"}, 4106 Format: "", 4107 }, 4108 }, 4109 "ingressFromInternet": { 4110 SchemaProps: spec.SchemaProps{ 4111 Description: "Whether the matching policy has any ingress allow rules from a public IP address (as defined by the complement of the private addresses; private addresses default to those defined in RFC 1918, but may also be configured separately).\n\nSource: Calculated from the policies applied to the endpoint. The ingress allow rules in each policy are checked\n to determine if any CIDR specified in the rule, either directly or through a matching network set, is an\n internet address. Endpoint addresses are not included - therefore ingress from a pod that has a public\n IP address will not be considered as “from internet”.\n\nNote: This is a simplification since it does not examine the policies to determine if it's actually possible to\n hit one of these allow rules (e.g. a previous rule may be a match-all-deny).", 4112 Type: []string{"boolean"}, 4113 Format: "", 4114 }, 4115 }, 4116 "egressToInternet": { 4117 SchemaProps: spec.SchemaProps{ 4118 Description: "Whether the matching policy has any egress allow rules to a public IP address (as defined by the complement of the private addresses; private addresses default to those defined in RFC 1918, but may also be configured separately).\n\nSource: Calculated from the policies applied to the endpoint. The egress allow rules in each policy are checked\n to determine if any CIDR specified in the rule, either directly or through a matching network set, is an\n internet address. Endpoint addresses are not included - therefore egress to a pod that has a public\n IP address will not be considered as “to internet”.\n\nNote 1: This is a simplification since it does not examine the policies to determine if it's actually possible to\n hit one of these allow rules (e.g. a previous rule may be a match-all-deny).", 4119 Type: []string{"boolean"}, 4120 Format: "", 4121 }, 4122 }, 4123 "ingressFromOtherNamespace": { 4124 SchemaProps: spec.SchemaProps{ 4125 Description: "Whether the matching policy has any ingress allow rules from another namespace.\n\nSource: Calculated from the policies applied to the endpoint.\n\nSet to true if: - this is a pod (i.e. namespaced) with an applied GlobalNetworkPolicy with an ingress allow rule with no CIDR match. - this is a pod with an applied NetworkPolicy with an ingress allow rule with a non-empty NamespaceSelector.\n\nNote: This is a simplification since it does not examine the policies to determine if it's actually possible to\n hit one of these allow rules (e.g. a previous rule may be a match-all-deny, or endpoint selector may not\n match any endpoints within the namespace).", 4126 Type: []string{"boolean"}, 4127 Format: "", 4128 }, 4129 }, 4130 "egressToOtherNamespace": { 4131 SchemaProps: spec.SchemaProps{ 4132 Description: "Whether the matching policy has any egress allow rules to another namespace.\n\nSource: Calculated from the policies applied to the endpoint.\n\nSet to true if: - this is a pod endpoint (i.e. namespaced) matches a GlobalNetworkPolicy with an egress allow rule with no CIDR match. - this is a pod endpoint which matches a NetworkPolicy with an egress allow rule with a non-empty NamespaceSelector.\n\nNote: This is a simplification since it does not examine the policies to determine if it's actually possible to\n hit one of these allow rules (e.g. a previous rule may be a match-all-deny, or endpoint selector may not\n match any endpoints within the namespace).", 4133 Type: []string{"boolean"}, 4134 Format: "", 4135 }, 4136 }, 4137 "envoyEnabled": { 4138 SchemaProps: spec.SchemaProps{ 4139 Description: "Whether this pod is envoy-enabled. This is simply an indicator of whether an Envoy container is running within the pod. Provided Istio is configured appropriately, this can provide a simplistic determination of whether the pod is mTLS enabled.\n\nSource: Pod spec.\n\nSet to: - true if envoy is running within the pod - false if envoy is not running within the pod", 4140 Type: []string{"boolean"}, 4141 Format: "", 4142 }, 4143 }, 4144 "appliedPolicies": { 4145 SchemaProps: spec.SchemaProps{ 4146 Description: "The set of policies that apply to an endpoint may change within the reporting interval, this is the superset of all policies that applied to the endpoint during that interval.", 4147 Type: []string{"array"}, 4148 Items: &spec.SchemaOrArray{ 4149 Schema: &spec.Schema{ 4150 SchemaProps: spec.SchemaProps{ 4151 Default: map[string]interface{}{}, 4152 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ResourceID"), 4153 }, 4154 }, 4155 }, 4156 }, 4157 }, 4158 "services": { 4159 SchemaProps: spec.SchemaProps{ 4160 Description: "The list of services that exposed this endpoint at any moment during the reporting interval.\n\nSource: Determined from the Kubernetes endpoints resource associated with the service.", 4161 Type: []string{"array"}, 4162 Items: &spec.SchemaOrArray{ 4163 Schema: &spec.Schema{ 4164 SchemaProps: spec.SchemaProps{ 4165 Default: map[string]interface{}{}, 4166 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ResourceID"), 4167 }, 4168 }, 4169 }, 4170 }, 4171 }, 4172 "serviceAccount": { 4173 SchemaProps: spec.SchemaProps{ 4174 Description: "The ServiceAccount configured on this endpoint.", 4175 Type: []string{"string"}, 4176 Format: "", 4177 }, 4178 }, 4179 "flowLogAggregationName": { 4180 SchemaProps: spec.SchemaProps{ 4181 Description: "The flow log aggregation name. This is used to locate flow logs associated with this endpoint when flow log aggregation is turned on.", 4182 Type: []string{"string"}, 4183 Format: "", 4184 }, 4185 }, 4186 }, 4187 }, 4188 }, 4189 Dependencies: []string{ 4190 "github.com/tigera/api/pkg/apis/projectcalico/v3.ResourceID"}, 4191 } 4192 } 4193 4194 func schema_pkg_apis_projectcalico_v3_EndpointsReportFlow(ref common.ReferenceCallback) common.OpenAPIDefinition { 4195 return common.OpenAPIDefinition{ 4196 Schema: spec.Schema{ 4197 SchemaProps: spec.SchemaProps{ 4198 Type: []string{"object"}, 4199 Properties: map[string]spec.Schema{ 4200 "source": { 4201 SchemaProps: spec.SchemaProps{ 4202 Description: "The source of the flow log.", 4203 Default: map[string]interface{}{}, 4204 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.FlowEndpoint"), 4205 }, 4206 }, 4207 "destination": { 4208 SchemaProps: spec.SchemaProps{ 4209 Description: "The destination of the flow log.", 4210 Default: map[string]interface{}{}, 4211 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.FlowEndpoint"), 4212 }, 4213 }, 4214 }, 4215 Required: []string{"source", "destination"}, 4216 }, 4217 }, 4218 Dependencies: []string{ 4219 "github.com/tigera/api/pkg/apis/projectcalico/v3.FlowEndpoint"}, 4220 } 4221 } 4222 4223 func schema_pkg_apis_projectcalico_v3_EndpointsReportNamespace(ref common.ReferenceCallback) common.OpenAPIDefinition { 4224 return common.OpenAPIDefinition{ 4225 Schema: spec.Schema{ 4226 SchemaProps: spec.SchemaProps{ 4227 Type: []string{"object"}, 4228 Properties: map[string]spec.Schema{ 4229 "namespace": { 4230 SchemaProps: spec.SchemaProps{ 4231 Default: map[string]interface{}{}, 4232 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ResourceID"), 4233 }, 4234 }, 4235 "ingressProtected": { 4236 SchemaProps: spec.SchemaProps{ 4237 Description: "Whether ingress traffic was protected for all endpoints within this namespace within the reporting interval. This is a summary of information contained in the endpoints data.", 4238 Type: []string{"boolean"}, 4239 Format: "", 4240 }, 4241 }, 4242 "egressProtected": { 4243 SchemaProps: spec.SchemaProps{ 4244 Description: "Whether egress traffic was protected for all endpoints within this namespace within the reporting interval. This is a summary of information contained in the endpoints data.", 4245 Type: []string{"boolean"}, 4246 Format: "", 4247 }, 4248 }, 4249 "ingressFromInternet": { 4250 SchemaProps: spec.SchemaProps{ 4251 Description: "Whether ingress traffic was allowed from the internet for any endpoint within this namespace within the reporting interval.", 4252 Type: []string{"boolean"}, 4253 Format: "", 4254 }, 4255 }, 4256 "egressToInternet": { 4257 SchemaProps: spec.SchemaProps{ 4258 Description: "Whether ingress traffic was allowed from the internet for any endpoint within this namespace within the reporting interval.", 4259 Type: []string{"boolean"}, 4260 Format: "", 4261 }, 4262 }, 4263 "ingressFromOtherNamespace": { 4264 SchemaProps: spec.SchemaProps{ 4265 Description: "Whether ingress traffic was allowed from another namespace for any endpoint within this namespace within the reporting interval.", 4266 Type: []string{"boolean"}, 4267 Format: "", 4268 }, 4269 }, 4270 "egressToOtherNamespace": { 4271 SchemaProps: spec.SchemaProps{ 4272 Description: "Whether ingress traffic was allowed from another namespace for any endpoint within this namespace within the reporting interval.", 4273 Type: []string{"boolean"}, 4274 Format: "", 4275 }, 4276 }, 4277 "envoyEnabled": { 4278 SchemaProps: spec.SchemaProps{ 4279 Description: "Whether envoy was enabled for all endpoints within this namespace within the reporting interval. This is a summary of information contained in the endpoints data.", 4280 Type: []string{"boolean"}, 4281 Format: "", 4282 }, 4283 }, 4284 }, 4285 }, 4286 }, 4287 Dependencies: []string{ 4288 "github.com/tigera/api/pkg/apis/projectcalico/v3.ResourceID"}, 4289 } 4290 } 4291 4292 func schema_pkg_apis_projectcalico_v3_EndpointsReportService(ref common.ReferenceCallback) common.OpenAPIDefinition { 4293 return common.OpenAPIDefinition{ 4294 Schema: spec.Schema{ 4295 SchemaProps: spec.SchemaProps{ 4296 Type: []string{"object"}, 4297 Properties: map[string]spec.Schema{ 4298 "service": { 4299 SchemaProps: spec.SchemaProps{ 4300 Default: map[string]interface{}{}, 4301 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ResourceID"), 4302 }, 4303 }, 4304 "ingressProtected": { 4305 SchemaProps: spec.SchemaProps{ 4306 Description: "Whether ingress traffic was protected for all endpoints within this namespace within the reporting interval. This is a summary of information contained in the endpoints data.", 4307 Type: []string{"boolean"}, 4308 Format: "", 4309 }, 4310 }, 4311 "ingressFromInternet": { 4312 SchemaProps: spec.SchemaProps{ 4313 Description: "Whether ingress traffic was allowed from the internet for any endpoint exposed by this service within the reporting interval.", 4314 Type: []string{"boolean"}, 4315 Format: "", 4316 }, 4317 }, 4318 "ingressFromOtherNamespace": { 4319 SchemaProps: spec.SchemaProps{ 4320 Description: "Whether ingress traffic was allowed from another namespace for any endpoint exposed by this service within the reporting interval.", 4321 Type: []string{"boolean"}, 4322 Format: "", 4323 }, 4324 }, 4325 "envoyEnabled": { 4326 SchemaProps: spec.SchemaProps{ 4327 Description: "Whether envoy was enabled for all endpoints that were exposed by this service within the reporting interval. This is a summary of information contained in the endpoints data.", 4328 Type: []string{"boolean"}, 4329 Format: "", 4330 }, 4331 }, 4332 }, 4333 }, 4334 }, 4335 Dependencies: []string{ 4336 "github.com/tigera/api/pkg/apis/projectcalico/v3.ResourceID"}, 4337 } 4338 } 4339 4340 func schema_pkg_apis_projectcalico_v3_EndpointsSelection(ref common.ReferenceCallback) common.OpenAPIDefinition { 4341 return common.OpenAPIDefinition{ 4342 Schema: spec.Schema{ 4343 SchemaProps: spec.SchemaProps{ 4344 Description: "EndpointsSelection is a set of selectors used to select the endpoints that are considered to be in-scope for the report. An empty selector is equivalent to all(). All three selectors are ANDed together.", 4345 Type: []string{"object"}, 4346 Properties: map[string]spec.Schema{ 4347 "selector": { 4348 SchemaProps: spec.SchemaProps{ 4349 Description: "Selector, selects endpoints by endpoint labels. If omitted, all endpoints are included in the report data.", 4350 Type: []string{"string"}, 4351 Format: "", 4352 }, 4353 }, 4354 "namespaces": { 4355 SchemaProps: spec.SchemaProps{ 4356 Description: "Namespace match restricts endpoint selection to those in the selected namespaces.", 4357 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.NamesAndLabelsMatch"), 4358 }, 4359 }, 4360 "serviceAccounts": { 4361 SchemaProps: spec.SchemaProps{ 4362 Description: "ServiceAccount match restricts endpoint selection to those in the selected service accounts.", 4363 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.NamesAndLabelsMatch"), 4364 }, 4365 }, 4366 }, 4367 }, 4368 }, 4369 Dependencies: []string{ 4370 "github.com/tigera/api/pkg/apis/projectcalico/v3.NamesAndLabelsMatch"}, 4371 } 4372 } 4373 4374 func schema_pkg_apis_projectcalico_v3_EndpointsSummary(ref common.ReferenceCallback) common.OpenAPIDefinition { 4375 return common.OpenAPIDefinition{ 4376 Schema: spec.Schema{ 4377 SchemaProps: spec.SchemaProps{ 4378 Description: "This tracks different statistics for Endpoints, Summary and Services.", 4379 Type: []string{"object"}, 4380 Properties: map[string]spec.Schema{ 4381 "numTotal": { 4382 SchemaProps: spec.SchemaProps{ 4383 Description: "For endpoints: the total number of in-scope endpoints.\n Namespaces: the total number of namespaces containing in-scope endpoints.\n Services: the total number of services containing in-scope endpoints.\n\nSource: Calculated from pod/wep, hep, namespace and service account labels.", 4384 Type: []string{"integer"}, 4385 Format: "int32", 4386 }, 4387 }, 4388 "numServiceAccounts": { 4389 SchemaProps: spec.SchemaProps{ 4390 Description: "For endpoints: the total number of service accounts for in-scope endpoints.\n Namespaces: n/a.\n Services: n/a.", 4391 Type: []string{"integer"}, 4392 Format: "int32", 4393 }, 4394 }, 4395 "numIngressProtected": { 4396 SchemaProps: spec.SchemaProps{ 4397 Description: "For endpoints: the number of in-scope endpoints that were ingress protected during the reporting interval.\n Namespaces: the number of namespaces whose in-scope endpoints were ingress protected during\n the reporting interval.\n Services: the number of services whose in-scope endpoints were ingress protected during the reporting\n interval.\n\nSee below for defn of ingress-protected.", 4398 Type: []string{"integer"}, 4399 Format: "int32", 4400 }, 4401 }, 4402 "numEgressProtected": { 4403 SchemaProps: spec.SchemaProps{ 4404 Description: "For endpoints: the number of in-scope endpoints that were egress protected during the reporting interval.\n Namespaces: the number of namespaces whose in-scope endpoints were egress protected during the reporting\n interval.\n\nSee below for defn of egress-protected.", 4405 Type: []string{"integer"}, 4406 Format: "int32", 4407 }, 4408 }, 4409 "numIngressFromInternet": { 4410 SchemaProps: spec.SchemaProps{ 4411 Description: "For endpoints: the number of in-scope endpoints whose policy would allow ingress traffic from the Internet\n for *any* period within the reporting interval.\n (See below for how this is calculated for an endpoint.)\n Namespaces: the number of namespaces that contained in-scope endpoints that would allow ingress traffic\n from the Internet for *any* period within the reporting interval.\n Services: the number of services that contained in-scope endpoints that would allow ingress traffic\n from the Internet for *any* period within the reporting interval.", 4412 Type: []string{"integer"}, 4413 Format: "int32", 4414 }, 4415 }, 4416 "numEgressToInternet": { 4417 SchemaProps: spec.SchemaProps{ 4418 Description: "For endpoints: the number of in-scope endpoints whose policy would allow egress traffic to the Internet\n for *any* period within the reporting interval.\n (See below for how this is calculated for an endpoint.)\n Namespaces: the number of namespaces that contained in-scope endpoints that would allow egress traffic\n to the Internet for *any* period within the reporting interval.", 4419 Type: []string{"integer"}, 4420 Format: "int32", 4421 }, 4422 }, 4423 "numIngressFromOtherNamespace": { 4424 SchemaProps: spec.SchemaProps{ 4425 Description: "For endpoints: the number of in-scope endpoints whose policy would allow ingress traffic from a\n different namespace for *any* period within the reporting interval.\n (See below for how this is calculated for an endpoint.)\n Namespaces: the number of namespaces that contained in-scope endpoints that would allow ingress\n traffic from another namespace for *any* period within the reporting interval.\n Services: the number of services that contained in-scope endpoints that would allow ingress\n traffic from another namespace for *any* period within the reporting interval.", 4426 Type: []string{"integer"}, 4427 Format: "int32", 4428 }, 4429 }, 4430 "numEgressToOtherNamespace": { 4431 SchemaProps: spec.SchemaProps{ 4432 Description: "For endpoints: the number of in-scope endpoints whose policy would allow ingress traffic from\n a different namespace for *any* period within the reporting interval.\n (See below for how this is calculated for an endpoint.)\n Namespaces: the number of namespaces that contained in-scope endpoints that would allow egress\n traffic to another namespace for *any* period within the reporting interval.", 4433 Type: []string{"integer"}, 4434 Format: "int32", 4435 }, 4436 }, 4437 "numEnvoyEnabled": { 4438 SchemaProps: spec.SchemaProps{ 4439 Description: "For endpoints: the number of in-scope endpoints that were envoy-enabled within the reporting interval.\n Namespaces: the number of namespaces whose in-scope endpoints were always Envoy-enabled\n Services: the number of services whose in-scope endpoints were always Envoy-enabled\n\nSee below for defn of envoy-enabled", 4440 Type: []string{"integer"}, 4441 Format: "int32", 4442 }, 4443 }, 4444 }, 4445 }, 4446 }, 4447 } 4448 } 4449 4450 func schema_pkg_apis_projectcalico_v3_EntityRule(ref common.ReferenceCallback) common.OpenAPIDefinition { 4451 return common.OpenAPIDefinition{ 4452 Schema: spec.Schema{ 4453 SchemaProps: spec.SchemaProps{ 4454 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.", 4455 Type: []string{"object"}, 4456 Properties: map[string]spec.Schema{ 4457 "nets": { 4458 SchemaProps: spec.SchemaProps{ 4459 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.", 4460 Type: []string{"array"}, 4461 Items: &spec.SchemaOrArray{ 4462 Schema: &spec.Schema{ 4463 SchemaProps: spec.SchemaProps{ 4464 Default: "", 4465 Type: []string{"string"}, 4466 Format: "", 4467 }, 4468 }, 4469 }, 4470 }, 4471 }, 4472 "selector": { 4473 SchemaProps: spec.SchemaProps{ 4474 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.", 4475 Type: []string{"string"}, 4476 Format: "", 4477 }, 4478 }, 4479 "namespaceSelector": { 4480 SchemaProps: spec.SchemaProps{ 4481 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.", 4482 Type: []string{"string"}, 4483 Format: "", 4484 }, 4485 }, 4486 "services": { 4487 SchemaProps: spec.SchemaProps{ 4488 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.", 4489 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ServiceMatch"), 4490 }, 4491 }, 4492 "ports": { 4493 SchemaProps: spec.SchemaProps{ 4494 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\".", 4495 Type: []string{"array"}, 4496 Items: &spec.SchemaOrArray{ 4497 Schema: &spec.Schema{ 4498 SchemaProps: spec.SchemaProps{ 4499 Default: map[string]interface{}{}, 4500 Ref: ref("github.com/tigera/api/pkg/lib/numorstring.Port"), 4501 }, 4502 }, 4503 }, 4504 }, 4505 }, 4506 "domains": { 4507 SchemaProps: spec.SchemaProps{ 4508 Description: "Domains is an optional field, valid for egress Allow rules only, that restricts the rule to apply only to traffic to one of the specified domains. If this field is specified, Action must be Allow, and Nets and Selector must both be left empty.", 4509 Type: []string{"array"}, 4510 Items: &spec.SchemaOrArray{ 4511 Schema: &spec.Schema{ 4512 SchemaProps: spec.SchemaProps{ 4513 Default: "", 4514 Type: []string{"string"}, 4515 Format: "", 4516 }, 4517 }, 4518 }, 4519 }, 4520 }, 4521 "notNets": { 4522 SchemaProps: spec.SchemaProps{ 4523 Description: "NotNets is the negated version of the Nets field.", 4524 Type: []string{"array"}, 4525 Items: &spec.SchemaOrArray{ 4526 Schema: &spec.Schema{ 4527 SchemaProps: spec.SchemaProps{ 4528 Default: "", 4529 Type: []string{"string"}, 4530 Format: "", 4531 }, 4532 }, 4533 }, 4534 }, 4535 }, 4536 "notSelector": { 4537 SchemaProps: spec.SchemaProps{ 4538 Description: "NotSelector is the negated version of the Selector field. See Selector field for subtleties with negated selectors.", 4539 Type: []string{"string"}, 4540 Format: "", 4541 }, 4542 }, 4543 "notPorts": { 4544 SchemaProps: spec.SchemaProps{ 4545 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\".", 4546 Type: []string{"array"}, 4547 Items: &spec.SchemaOrArray{ 4548 Schema: &spec.Schema{ 4549 SchemaProps: spec.SchemaProps{ 4550 Default: map[string]interface{}{}, 4551 Ref: ref("github.com/tigera/api/pkg/lib/numorstring.Port"), 4552 }, 4553 }, 4554 }, 4555 }, 4556 }, 4557 "serviceAccounts": { 4558 SchemaProps: spec.SchemaProps{ 4559 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.", 4560 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ServiceAccountMatch"), 4561 }, 4562 }, 4563 }, 4564 }, 4565 }, 4566 Dependencies: []string{ 4567 "github.com/tigera/api/pkg/apis/projectcalico/v3.ServiceAccountMatch", "github.com/tigera/api/pkg/apis/projectcalico/v3.ServiceMatch", "github.com/tigera/api/pkg/lib/numorstring.Port"}, 4568 } 4569 } 4570 4571 func schema_pkg_apis_projectcalico_v3_ErrorCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 4572 return common.OpenAPIDefinition{ 4573 Schema: spec.Schema{ 4574 SchemaProps: spec.SchemaProps{ 4575 Type: []string{"object"}, 4576 Properties: map[string]spec.Schema{ 4577 "type": { 4578 SchemaProps: spec.SchemaProps{ 4579 Default: "", 4580 Type: []string{"string"}, 4581 Format: "", 4582 }, 4583 }, 4584 "message": { 4585 SchemaProps: spec.SchemaProps{ 4586 Default: "", 4587 Type: []string{"string"}, 4588 Format: "", 4589 }, 4590 }, 4591 }, 4592 Required: []string{"type", "message"}, 4593 }, 4594 }, 4595 } 4596 } 4597 4598 func schema_pkg_apis_projectcalico_v3_EtcdConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 4599 return common.OpenAPIDefinition{ 4600 Schema: spec.Schema{ 4601 SchemaProps: spec.SchemaProps{ 4602 Type: []string{"object"}, 4603 Properties: map[string]spec.Schema{ 4604 "etcdEndpoints": { 4605 SchemaProps: spec.SchemaProps{ 4606 Description: "A comma separated list of etcd endpoints. Valid if DatastoreType is etcdv3. [Default: ]", 4607 Type: []string{"string"}, 4608 Format: "", 4609 }, 4610 }, 4611 "etcdUsername": { 4612 SchemaProps: spec.SchemaProps{ 4613 Description: "User name for RBAC. Valid if DatastoreType is etcdv3.", 4614 Type: []string{"string"}, 4615 Format: "", 4616 }, 4617 }, 4618 "etcdPassword": { 4619 SchemaProps: spec.SchemaProps{ 4620 Description: "Password for the given user name. Valid if DatastoreType is etcdv3.", 4621 Type: []string{"string"}, 4622 Format: "", 4623 }, 4624 }, 4625 "etcdKeyFile": { 4626 SchemaProps: spec.SchemaProps{ 4627 Description: "Path to the etcd key file. Valid if DatastoreType is etcdv3.", 4628 Type: []string{"string"}, 4629 Format: "", 4630 }, 4631 }, 4632 "etcdCertFile": { 4633 SchemaProps: spec.SchemaProps{ 4634 Description: "Path to the etcd client certificate. Valid if DatastoreType is etcdv3.", 4635 Type: []string{"string"}, 4636 Format: "", 4637 }, 4638 }, 4639 "etcdCACertFile": { 4640 SchemaProps: spec.SchemaProps{ 4641 Description: "Path to the etcd Certificate Authority file. Valid if DatastoreType is etcdv3.", 4642 Type: []string{"string"}, 4643 Format: "", 4644 }, 4645 }, 4646 "etcdKey": { 4647 SchemaProps: spec.SchemaProps{ 4648 Description: "These config file parameters are to support inline certificates, keys and CA / Trusted certificate.", 4649 Type: []string{"string"}, 4650 Format: "", 4651 }, 4652 }, 4653 "etcdCert": { 4654 SchemaProps: spec.SchemaProps{ 4655 Type: []string{"string"}, 4656 Format: "", 4657 }, 4658 }, 4659 "etcdCACert": { 4660 SchemaProps: spec.SchemaProps{ 4661 Type: []string{"string"}, 4662 Format: "", 4663 }, 4664 }, 4665 }, 4666 }, 4667 }, 4668 } 4669 } 4670 4671 func schema_pkg_apis_projectcalico_v3_ExternalNetwork(ref common.ReferenceCallback) common.OpenAPIDefinition { 4672 return common.OpenAPIDefinition{ 4673 Schema: spec.Schema{ 4674 SchemaProps: spec.SchemaProps{ 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.ObjectMeta"), 4695 }, 4696 }, 4697 "spec": { 4698 SchemaProps: spec.SchemaProps{ 4699 Default: map[string]interface{}{}, 4700 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ExternalNetworkSpec"), 4701 }, 4702 }, 4703 }, 4704 }, 4705 }, 4706 Dependencies: []string{ 4707 "github.com/tigera/api/pkg/apis/projectcalico/v3.ExternalNetworkSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 4708 } 4709 } 4710 4711 func schema_pkg_apis_projectcalico_v3_ExternalNetworkList(ref common.ReferenceCallback) common.OpenAPIDefinition { 4712 return common.OpenAPIDefinition{ 4713 Schema: spec.Schema{ 4714 SchemaProps: spec.SchemaProps{ 4715 Description: "ExternalNetworkList is a list of ExternalNetwork resources.", 4716 Type: []string{"object"}, 4717 Properties: map[string]spec.Schema{ 4718 "kind": { 4719 SchemaProps: spec.SchemaProps{ 4720 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 4721 Type: []string{"string"}, 4722 Format: "", 4723 }, 4724 }, 4725 "apiVersion": { 4726 SchemaProps: spec.SchemaProps{ 4727 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 4728 Type: []string{"string"}, 4729 Format: "", 4730 }, 4731 }, 4732 "metadata": { 4733 SchemaProps: spec.SchemaProps{ 4734 Default: map[string]interface{}{}, 4735 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 4736 }, 4737 }, 4738 "items": { 4739 SchemaProps: spec.SchemaProps{ 4740 Type: []string{"array"}, 4741 Items: &spec.SchemaOrArray{ 4742 Schema: &spec.Schema{ 4743 SchemaProps: spec.SchemaProps{ 4744 Default: map[string]interface{}{}, 4745 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ExternalNetwork"), 4746 }, 4747 }, 4748 }, 4749 }, 4750 }, 4751 }, 4752 Required: []string{"items"}, 4753 }, 4754 }, 4755 Dependencies: []string{ 4756 "github.com/tigera/api/pkg/apis/projectcalico/v3.ExternalNetwork", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 4757 } 4758 } 4759 4760 func schema_pkg_apis_projectcalico_v3_ExternalNetworkSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 4761 return common.OpenAPIDefinition{ 4762 Schema: spec.Schema{ 4763 SchemaProps: spec.SchemaProps{ 4764 Description: "ExternalNetworkSpec contains the specification for a external network resource.", 4765 Type: []string{"object"}, 4766 Properties: map[string]spec.Schema{ 4767 "routeTableIndex": { 4768 SchemaProps: spec.SchemaProps{ 4769 Description: "The index of a linux kernel routing table that should be used for the routes associated with the external network. The value should be unique for each external network. The value should not be in the range of `RouteTableRanges` field in FelixConfiguration. The kernel routing table index should not be used by other processes on the node.", 4770 Type: []string{"integer"}, 4771 Format: "int64", 4772 }, 4773 }, 4774 }, 4775 Required: []string{"routeTableIndex"}, 4776 }, 4777 }, 4778 } 4779 } 4780 4781 func schema_pkg_apis_projectcalico_v3_FederatedServicesControllerConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 4782 return common.OpenAPIDefinition{ 4783 Schema: spec.Schema{ 4784 SchemaProps: spec.SchemaProps{ 4785 Description: "FederatedServicesControllerConfig configures the federated services controller, which syncs Kubernetes services from remote clusters.", 4786 Type: []string{"object"}, 4787 Properties: map[string]spec.Schema{ 4788 "reconcilerPeriod": { 4789 SchemaProps: spec.SchemaProps{ 4790 Description: "ReconcilerPeriod is the period to perform reconciliation. [Default: 5m]", 4791 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 4792 }, 4793 }, 4794 }, 4795 }, 4796 }, 4797 Dependencies: []string{ 4798 "k8s.io/apimachinery/pkg/apis/meta/v1.Duration"}, 4799 } 4800 } 4801 4802 func schema_pkg_apis_projectcalico_v3_FelixConfiguration(ref common.ReferenceCallback) common.OpenAPIDefinition { 4803 return common.OpenAPIDefinition{ 4804 Schema: spec.Schema{ 4805 SchemaProps: spec.SchemaProps{ 4806 Type: []string{"object"}, 4807 Properties: map[string]spec.Schema{ 4808 "kind": { 4809 SchemaProps: spec.SchemaProps{ 4810 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 4811 Type: []string{"string"}, 4812 Format: "", 4813 }, 4814 }, 4815 "apiVersion": { 4816 SchemaProps: spec.SchemaProps{ 4817 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 4818 Type: []string{"string"}, 4819 Format: "", 4820 }, 4821 }, 4822 "metadata": { 4823 SchemaProps: spec.SchemaProps{ 4824 Default: map[string]interface{}{}, 4825 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 4826 }, 4827 }, 4828 "spec": { 4829 SchemaProps: spec.SchemaProps{ 4830 Default: map[string]interface{}{}, 4831 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.FelixConfigurationSpec"), 4832 }, 4833 }, 4834 }, 4835 }, 4836 }, 4837 Dependencies: []string{ 4838 "github.com/tigera/api/pkg/apis/projectcalico/v3.FelixConfigurationSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 4839 } 4840 } 4841 4842 func schema_pkg_apis_projectcalico_v3_FelixConfigurationList(ref common.ReferenceCallback) common.OpenAPIDefinition { 4843 return common.OpenAPIDefinition{ 4844 Schema: spec.Schema{ 4845 SchemaProps: spec.SchemaProps{ 4846 Description: "FelixConfigurationList contains a list of FelixConfiguration object.", 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.ListMeta"), 4867 }, 4868 }, 4869 "items": { 4870 SchemaProps: spec.SchemaProps{ 4871 Type: []string{"array"}, 4872 Items: &spec.SchemaOrArray{ 4873 Schema: &spec.Schema{ 4874 SchemaProps: spec.SchemaProps{ 4875 Default: map[string]interface{}{}, 4876 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.FelixConfiguration"), 4877 }, 4878 }, 4879 }, 4880 }, 4881 }, 4882 }, 4883 Required: []string{"items"}, 4884 }, 4885 }, 4886 Dependencies: []string{ 4887 "github.com/tigera/api/pkg/apis/projectcalico/v3.FelixConfiguration", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 4888 } 4889 } 4890 4891 func schema_pkg_apis_projectcalico_v3_FelixConfigurationSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 4892 return common.OpenAPIDefinition{ 4893 Schema: spec.Schema{ 4894 SchemaProps: spec.SchemaProps{ 4895 Description: "FelixConfigurationSpec contains the values of the Felix configuration.", 4896 Type: []string{"object"}, 4897 Properties: map[string]spec.Schema{ 4898 "useInternalDataplaneDriver": { 4899 SchemaProps: spec.SchemaProps{ 4900 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.", 4901 Type: []string{"boolean"}, 4902 Format: "", 4903 }, 4904 }, 4905 "dataplaneDriver": { 4906 SchemaProps: spec.SchemaProps{ 4907 Description: "DataplaneDriver filename of the external dataplane driver to use. Only used if UseInternalDataplaneDriver is set to false.", 4908 Type: []string{"string"}, 4909 Format: "", 4910 }, 4911 }, 4912 "dataplaneWatchdogTimeout": { 4913 SchemaProps: spec.SchemaProps{ 4914 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.", 4915 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 4916 }, 4917 }, 4918 "ipv6Support": { 4919 SchemaProps: spec.SchemaProps{ 4920 Description: "IPv6Support controls whether Felix enables support for IPv6 (if supported by the in-use dataplane).", 4921 Type: []string{"boolean"}, 4922 Format: "", 4923 }, 4924 }, 4925 "routeRefreshInterval": { 4926 SchemaProps: spec.SchemaProps{ 4927 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]", 4928 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 4929 }, 4930 }, 4931 "interfaceRefreshInterval": { 4932 SchemaProps: spec.SchemaProps{ 4933 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.", 4934 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 4935 }, 4936 }, 4937 "iptablesRefreshInterval": { 4938 SchemaProps: spec.SchemaProps{ 4939 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]", 4940 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 4941 }, 4942 }, 4943 "iptablesPostWriteCheckInterval": { 4944 SchemaProps: spec.SchemaProps{ 4945 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]", 4946 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 4947 }, 4948 }, 4949 "iptablesLockFilePath": { 4950 SchemaProps: spec.SchemaProps{ 4951 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]", 4952 Type: []string{"string"}, 4953 Format: "", 4954 }, 4955 }, 4956 "iptablesLockTimeout": { 4957 SchemaProps: spec.SchemaProps{ 4958 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]", 4959 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 4960 }, 4961 }, 4962 "iptablesLockProbeInterval": { 4963 SchemaProps: spec.SchemaProps{ 4964 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]", 4965 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 4966 }, 4967 }, 4968 "featureDetectOverride": { 4969 SchemaProps: spec.SchemaProps{ 4970 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.", 4971 Type: []string{"string"}, 4972 Format: "", 4973 }, 4974 }, 4975 "featureGates": { 4976 SchemaProps: spec.SchemaProps{ 4977 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.", 4978 Type: []string{"string"}, 4979 Format: "", 4980 }, 4981 }, 4982 "ipsetsRefreshInterval": { 4983 SchemaProps: spec.SchemaProps{ 4984 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]", 4985 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 4986 }, 4987 }, 4988 "maxIpsetSize": { 4989 SchemaProps: spec.SchemaProps{ 4990 Type: []string{"integer"}, 4991 Format: "int32", 4992 }, 4993 }, 4994 "iptablesBackend": { 4995 SchemaProps: spec.SchemaProps{ 4996 Description: "IptablesBackend specifies which backend of iptables will be used. The default is Auto.", 4997 Type: []string{"string"}, 4998 Format: "", 4999 }, 5000 }, 5001 "xdpRefreshInterval": { 5002 SchemaProps: spec.SchemaProps{ 5003 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]", 5004 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 5005 }, 5006 }, 5007 "netlinkTimeout": { 5008 SchemaProps: spec.SchemaProps{ 5009 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 5010 }, 5011 }, 5012 "metadataAddr": { 5013 SchemaProps: spec.SchemaProps{ 5014 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]", 5015 Type: []string{"string"}, 5016 Format: "", 5017 }, 5018 }, 5019 "metadataPort": { 5020 SchemaProps: spec.SchemaProps{ 5021 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].", 5022 Type: []string{"integer"}, 5023 Format: "int32", 5024 }, 5025 }, 5026 "openstackRegion": { 5027 SchemaProps: spec.SchemaProps{ 5028 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]", 5029 Type: []string{"string"}, 5030 Format: "", 5031 }, 5032 }, 5033 "interfacePrefix": { 5034 SchemaProps: spec.SchemaProps{ 5035 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]", 5036 Type: []string{"string"}, 5037 Format: "", 5038 }, 5039 }, 5040 "interfaceExclude": { 5041 SchemaProps: spec.SchemaProps{ 5042 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]", 5043 Type: []string{"string"}, 5044 Format: "", 5045 }, 5046 }, 5047 "chainInsertMode": { 5048 SchemaProps: spec.SchemaProps{ 5049 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]", 5050 Type: []string{"string"}, 5051 Format: "", 5052 }, 5053 }, 5054 "defaultEndpointToHostAction": { 5055 SchemaProps: spec.SchemaProps{ 5056 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]", 5057 Type: []string{"string"}, 5058 Format: "", 5059 }, 5060 }, 5061 "iptablesFilterAllowAction": { 5062 SchemaProps: spec.SchemaProps{ 5063 Type: []string{"string"}, 5064 Format: "", 5065 }, 5066 }, 5067 "iptablesMangleAllowAction": { 5068 SchemaProps: spec.SchemaProps{ 5069 Type: []string{"string"}, 5070 Format: "", 5071 }, 5072 }, 5073 "iptablesFilterDenyAction": { 5074 SchemaProps: spec.SchemaProps{ 5075 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.", 5076 Type: []string{"string"}, 5077 Format: "", 5078 }, 5079 }, 5080 "logPrefix": { 5081 SchemaProps: spec.SchemaProps{ 5082 Description: "LogPrefix is the log prefix that Felix uses when rendering LOG rules. [Default: calico-packet]", 5083 Type: []string{"string"}, 5084 Format: "", 5085 }, 5086 }, 5087 "logDropActionOverride": { 5088 SchemaProps: spec.SchemaProps{ 5089 Description: "LogDropActionOverride specifies whether or not to include the DropActionOverride in the logs when it is triggered.", 5090 Type: []string{"boolean"}, 5091 Format: "", 5092 }, 5093 }, 5094 "logFilePath": { 5095 SchemaProps: spec.SchemaProps{ 5096 Description: "LogFilePath is the full path to the Felix log. Set to none to disable file logging. [Default: /var/log/calico/felix.log]", 5097 Type: []string{"string"}, 5098 Format: "", 5099 }, 5100 }, 5101 "logSeverityFile": { 5102 SchemaProps: spec.SchemaProps{ 5103 Description: "LogSeverityFile is the log severity above which logs are sent to the log file. [Default: Info]", 5104 Type: []string{"string"}, 5105 Format: "", 5106 }, 5107 }, 5108 "logSeverityScreen": { 5109 SchemaProps: spec.SchemaProps{ 5110 Description: "LogSeverityScreen is the log severity above which logs are sent to the stdout. [Default: Info]", 5111 Type: []string{"string"}, 5112 Format: "", 5113 }, 5114 }, 5115 "logSeveritySys": { 5116 SchemaProps: spec.SchemaProps{ 5117 Description: "LogSeveritySys is the log severity above which logs are sent to the syslog. Set to None for no logging to syslog. [Default: Info]", 5118 Type: []string{"string"}, 5119 Format: "", 5120 }, 5121 }, 5122 "logDebugFilenameRegex": { 5123 SchemaProps: spec.SchemaProps{ 5124 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.", 5125 Type: []string{"string"}, 5126 Format: "", 5127 }, 5128 }, 5129 "ipipEnabled": { 5130 SchemaProps: spec.SchemaProps{ 5131 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)]", 5132 Type: []string{"boolean"}, 5133 Format: "", 5134 }, 5135 }, 5136 "ipipMTU": { 5137 SchemaProps: spec.SchemaProps{ 5138 Description: "IPIPMTU is the MTU to set on the tunnel device. See Configuring MTU [Default: 1440]", 5139 Type: []string{"integer"}, 5140 Format: "int32", 5141 }, 5142 }, 5143 "vxlanEnabled": { 5144 SchemaProps: spec.SchemaProps{ 5145 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)]", 5146 Type: []string{"boolean"}, 5147 Format: "", 5148 }, 5149 }, 5150 "vxlanMTU": { 5151 SchemaProps: spec.SchemaProps{ 5152 Description: "VXLANMTU is the MTU to set on the IPv4 VXLAN tunnel device. See Configuring MTU [Default: 1410]", 5153 Type: []string{"integer"}, 5154 Format: "int32", 5155 }, 5156 }, 5157 "vxlanMTUV6": { 5158 SchemaProps: spec.SchemaProps{ 5159 Description: "VXLANMTUV6 is the MTU to set on the IPv6 VXLAN tunnel device. See Configuring MTU [Default: 1390]", 5160 Type: []string{"integer"}, 5161 Format: "int32", 5162 }, 5163 }, 5164 "vxlanPort": { 5165 SchemaProps: spec.SchemaProps{ 5166 Type: []string{"integer"}, 5167 Format: "int32", 5168 }, 5169 }, 5170 "vxlanVNI": { 5171 SchemaProps: spec.SchemaProps{ 5172 Type: []string{"integer"}, 5173 Format: "int32", 5174 }, 5175 }, 5176 "allowVXLANPacketsFromWorkloads": { 5177 SchemaProps: spec.SchemaProps{ 5178 Description: "AllowVXLANPacketsFromWorkloads controls whether Felix will add a rule to drop VXLAN encapsulated traffic from workloads [Default: false]", 5179 Type: []string{"boolean"}, 5180 Format: "", 5181 }, 5182 }, 5183 "allowIPIPPacketsFromWorkloads": { 5184 SchemaProps: spec.SchemaProps{ 5185 Description: "AllowIPIPPacketsFromWorkloads controls whether Felix will add a rule to drop IPIP encapsulated traffic from workloads [Default: false]", 5186 Type: []string{"boolean"}, 5187 Format: "", 5188 }, 5189 }, 5190 "reportingInterval": { 5191 SchemaProps: spec.SchemaProps{ 5192 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]", 5193 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 5194 }, 5195 }, 5196 "reportingTTL": { 5197 SchemaProps: spec.SchemaProps{ 5198 Description: "ReportingTTL is the time-to-live setting for process-wide status reports. [Default: 90s]", 5199 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 5200 }, 5201 }, 5202 "endpointReportingEnabled": { 5203 SchemaProps: spec.SchemaProps{ 5204 Type: []string{"boolean"}, 5205 Format: "", 5206 }, 5207 }, 5208 "endpointReportingDelay": { 5209 SchemaProps: spec.SchemaProps{ 5210 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 5211 }, 5212 }, 5213 "iptablesMarkMask": { 5214 SchemaProps: spec.SchemaProps{ 5215 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: 0xffff0000]", 5216 Type: []string{"integer"}, 5217 Format: "int64", 5218 }, 5219 }, 5220 "disableConntrackInvalidCheck": { 5221 SchemaProps: spec.SchemaProps{ 5222 Type: []string{"boolean"}, 5223 Format: "", 5224 }, 5225 }, 5226 "healthEnabled": { 5227 SchemaProps: spec.SchemaProps{ 5228 Type: []string{"boolean"}, 5229 Format: "", 5230 }, 5231 }, 5232 "healthHost": { 5233 SchemaProps: spec.SchemaProps{ 5234 Type: []string{"string"}, 5235 Format: "", 5236 }, 5237 }, 5238 "healthPort": { 5239 SchemaProps: spec.SchemaProps{ 5240 Type: []string{"integer"}, 5241 Format: "int32", 5242 }, 5243 }, 5244 "healthTimeoutOverrides": { 5245 SchemaProps: spec.SchemaProps{ 5246 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.", 5247 Type: []string{"array"}, 5248 Items: &spec.SchemaOrArray{ 5249 Schema: &spec.Schema{ 5250 SchemaProps: spec.SchemaProps{ 5251 Default: map[string]interface{}{}, 5252 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.HealthTimeoutOverride"), 5253 }, 5254 }, 5255 }, 5256 }, 5257 }, 5258 "prometheusMetricsEnabled": { 5259 SchemaProps: spec.SchemaProps{ 5260 Description: "PrometheusMetricsEnabled enables the Prometheus metrics server in Felix if set to true. [Default: false]", 5261 Type: []string{"boolean"}, 5262 Format: "", 5263 }, 5264 }, 5265 "prometheusMetricsHost": { 5266 SchemaProps: spec.SchemaProps{ 5267 Description: "PrometheusMetricsHost is the host that the Prometheus metrics server should bind to. [Default: empty]", 5268 Type: []string{"string"}, 5269 Format: "", 5270 }, 5271 }, 5272 "prometheusMetricsPort": { 5273 SchemaProps: spec.SchemaProps{ 5274 Description: "PrometheusMetricsPort is the TCP port that the Prometheus metrics server should bind to. [Default: 9091]", 5275 Type: []string{"integer"}, 5276 Format: "int32", 5277 }, 5278 }, 5279 "prometheusGoMetricsEnabled": { 5280 SchemaProps: spec.SchemaProps{ 5281 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]", 5282 Type: []string{"boolean"}, 5283 Format: "", 5284 }, 5285 }, 5286 "prometheusProcessMetricsEnabled": { 5287 SchemaProps: spec.SchemaProps{ 5288 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]", 5289 Type: []string{"boolean"}, 5290 Format: "", 5291 }, 5292 }, 5293 "prometheusWireGuardMetricsEnabled": { 5294 SchemaProps: spec.SchemaProps{ 5295 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]", 5296 Type: []string{"boolean"}, 5297 Format: "", 5298 }, 5299 }, 5300 "prometheusMetricsCertFile": { 5301 SchemaProps: spec.SchemaProps{ 5302 Description: "TLS credentials for this port.", 5303 Type: []string{"string"}, 5304 Format: "", 5305 }, 5306 }, 5307 "prometheusMetricsKeyFile": { 5308 SchemaProps: spec.SchemaProps{ 5309 Type: []string{"string"}, 5310 Format: "", 5311 }, 5312 }, 5313 "prometheusMetricsCAFile": { 5314 SchemaProps: spec.SchemaProps{ 5315 Type: []string{"string"}, 5316 Format: "", 5317 }, 5318 }, 5319 "failsafeInboundHostPorts": { 5320 SchemaProps: spec.SchemaProps{ 5321 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]", 5322 Type: []string{"array"}, 5323 Items: &spec.SchemaOrArray{ 5324 Schema: &spec.Schema{ 5325 SchemaProps: spec.SchemaProps{ 5326 Default: map[string]interface{}{}, 5327 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ProtoPort"), 5328 }, 5329 }, 5330 }, 5331 }, 5332 }, 5333 "failsafeOutboundHostPorts": { 5334 SchemaProps: spec.SchemaProps{ 5335 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]", 5336 Type: []string{"array"}, 5337 Items: &spec.SchemaOrArray{ 5338 Schema: &spec.Schema{ 5339 SchemaProps: spec.SchemaProps{ 5340 Default: map[string]interface{}{}, 5341 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ProtoPort"), 5342 }, 5343 }, 5344 }, 5345 }, 5346 }, 5347 "kubeMasqueradeBit": { 5348 SchemaProps: spec.SchemaProps{ 5349 Description: "KubeMasqueradeBit should be set to the same value as --iptables-masquerade-bit of kube-proxy when TPROXY is used. The default is the same as kube-proxy default thus only needs a change if kube-proxy is using a non-standard setting. Must be within the range of 0-31. [Default: 14]", 5350 Type: []string{"integer"}, 5351 Format: "int32", 5352 }, 5353 }, 5354 "kubeNodePortRanges": { 5355 SchemaProps: spec.SchemaProps{ 5356 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].", 5357 Type: []string{"array"}, 5358 Items: &spec.SchemaOrArray{ 5359 Schema: &spec.Schema{ 5360 SchemaProps: spec.SchemaProps{ 5361 Default: map[string]interface{}{}, 5362 Ref: ref("github.com/tigera/api/pkg/lib/numorstring.Port"), 5363 }, 5364 }, 5365 }, 5366 }, 5367 }, 5368 "policySyncPathPrefix": { 5369 SchemaProps: spec.SchemaProps{ 5370 Description: "PolicySyncPathPrefix is used to by Felix to communicate policy changes to external services, like Application layer policy. [Default: Empty]", 5371 Type: []string{"string"}, 5372 Format: "", 5373 }, 5374 }, 5375 "usageReportingEnabled": { 5376 SchemaProps: spec.SchemaProps{ 5377 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]", 5378 Type: []string{"boolean"}, 5379 Format: "", 5380 }, 5381 }, 5382 "usageReportingInitialDelay": { 5383 SchemaProps: spec.SchemaProps{ 5384 Description: "UsageReportingInitialDelay controls the minimum delay before Felix makes a report. [Default: 300s]", 5385 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 5386 }, 5387 }, 5388 "usageReportingInterval": { 5389 SchemaProps: spec.SchemaProps{ 5390 Description: "UsageReportingInterval controls the interval at which Felix makes reports. [Default: 86400s]", 5391 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 5392 }, 5393 }, 5394 "natPortRange": { 5395 SchemaProps: spec.SchemaProps{ 5396 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.", 5397 Ref: ref("github.com/tigera/api/pkg/lib/numorstring.Port"), 5398 }, 5399 }, 5400 "natOutgoingAddress": { 5401 SchemaProps: spec.SchemaProps{ 5402 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)", 5403 Type: []string{"string"}, 5404 Format: "", 5405 }, 5406 }, 5407 "deviceRouteSourceAddress": { 5408 SchemaProps: spec.SchemaProps{ 5409 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.", 5410 Type: []string{"string"}, 5411 Format: "", 5412 }, 5413 }, 5414 "deviceRouteSourceAddressIPv6": { 5415 SchemaProps: spec.SchemaProps{ 5416 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.", 5417 Type: []string{"string"}, 5418 Format: "", 5419 }, 5420 }, 5421 "deviceRouteProtocol": { 5422 SchemaProps: spec.SchemaProps{ 5423 Description: "This defines the route protocol added to programmed device routes, by default this will be RTPROT_BOOT when left blank.", 5424 Type: []string{"integer"}, 5425 Format: "int32", 5426 }, 5427 }, 5428 "removeExternalRoutes": { 5429 SchemaProps: spec.SchemaProps{ 5430 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.", 5431 Type: []string{"boolean"}, 5432 Format: "", 5433 }, 5434 }, 5435 "externalNodesList": { 5436 SchemaProps: spec.SchemaProps{ 5437 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.", 5438 Type: []string{"array"}, 5439 Items: &spec.SchemaOrArray{ 5440 Schema: &spec.Schema{ 5441 SchemaProps: spec.SchemaProps{ 5442 Default: "", 5443 Type: []string{"string"}, 5444 Format: "", 5445 }, 5446 }, 5447 }, 5448 }, 5449 }, 5450 "nfNetlinkBufSize": { 5451 SchemaProps: spec.SchemaProps{ 5452 Type: []string{"string"}, 5453 Format: "", 5454 }, 5455 }, 5456 "statsDumpFilePath": { 5457 SchemaProps: spec.SchemaProps{ 5458 Type: []string{"string"}, 5459 Format: "", 5460 }, 5461 }, 5462 "prometheusReporterEnabled": { 5463 SchemaProps: spec.SchemaProps{ 5464 Description: "Felix Denied Packet Metrics configuration parameters.", 5465 Type: []string{"boolean"}, 5466 Format: "", 5467 }, 5468 }, 5469 "prometheusReporterPort": { 5470 SchemaProps: spec.SchemaProps{ 5471 Type: []string{"integer"}, 5472 Format: "int32", 5473 }, 5474 }, 5475 "prometheusReporterCertFile": { 5476 SchemaProps: spec.SchemaProps{ 5477 Type: []string{"string"}, 5478 Format: "", 5479 }, 5480 }, 5481 "prometheusReporterKeyFile": { 5482 SchemaProps: spec.SchemaProps{ 5483 Type: []string{"string"}, 5484 Format: "", 5485 }, 5486 }, 5487 "prometheusReporterCAFile": { 5488 SchemaProps: spec.SchemaProps{ 5489 Type: []string{"string"}, 5490 Format: "", 5491 }, 5492 }, 5493 "deletedMetricsRetentionSecs": { 5494 SchemaProps: spec.SchemaProps{ 5495 Type: []string{"integer"}, 5496 Format: "int32", 5497 }, 5498 }, 5499 "dropActionOverride": { 5500 SchemaProps: spec.SchemaProps{ 5501 Description: "DropActionOverride overrides the Drop action in Felix, optionally changing the behavior to Accept, and optionally adding Log. Possible values are Drop, LogAndDrop, Accept, LogAndAccept. [Default: Drop]", 5502 Type: []string{"string"}, 5503 Format: "", 5504 }, 5505 }, 5506 "debugMemoryProfilePath": { 5507 SchemaProps: spec.SchemaProps{ 5508 Type: []string{"string"}, 5509 Format: "", 5510 }, 5511 }, 5512 "debugDisableLogDropping": { 5513 SchemaProps: spec.SchemaProps{ 5514 Type: []string{"boolean"}, 5515 Format: "", 5516 }, 5517 }, 5518 "debugSimulateCalcGraphHangAfter": { 5519 SchemaProps: spec.SchemaProps{ 5520 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 5521 }, 5522 }, 5523 "debugSimulateDataplaneHangAfter": { 5524 SchemaProps: spec.SchemaProps{ 5525 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 5526 }, 5527 }, 5528 "debugHost": { 5529 SchemaProps: spec.SchemaProps{ 5530 Description: "DebugHost is the host IP or hostname to bind the debug port to. Only used if DebugPort is set. [Default:localhost]", 5531 Type: []string{"string"}, 5532 Format: "", 5533 }, 5534 }, 5535 "debugPort": { 5536 SchemaProps: spec.SchemaProps{ 5537 Description: "DebugPort if set, enables Felix's debug HTTP port, which allows memory and CPU profiles to be retrieved. The debug port is not secure, it should not be exposed to the internet.", 5538 Type: []string{"integer"}, 5539 Format: "int32", 5540 }, 5541 }, 5542 "iptablesNATOutgoingInterfaceFilter": { 5543 SchemaProps: spec.SchemaProps{ 5544 Type: []string{"string"}, 5545 Format: "", 5546 }, 5547 }, 5548 "sidecarAccelerationEnabled": { 5549 SchemaProps: spec.SchemaProps{ 5550 Description: "SidecarAccelerationEnabled enables experimental sidecar acceleration [Default: false]", 5551 Type: []string{"boolean"}, 5552 Format: "", 5553 }, 5554 }, 5555 "xdpEnabled": { 5556 SchemaProps: spec.SchemaProps{ 5557 Description: "XDPEnabled enables XDP acceleration for suitable untracked incoming deny rules. [Default: true]", 5558 Type: []string{"boolean"}, 5559 Format: "", 5560 }, 5561 }, 5562 "genericXDPEnabled": { 5563 SchemaProps: spec.SchemaProps{ 5564 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]", 5565 Type: []string{"boolean"}, 5566 Format: "", 5567 }, 5568 }, 5569 "bpfEnabled": { 5570 SchemaProps: spec.SchemaProps{ 5571 Description: "BPFEnabled, if enabled Felix will use the BPF dataplane. [Default: false]", 5572 Type: []string{"boolean"}, 5573 Format: "", 5574 }, 5575 }, 5576 "bpfDisableUnprivileged": { 5577 SchemaProps: spec.SchemaProps{ 5578 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]", 5579 Type: []string{"boolean"}, 5580 Format: "", 5581 }, 5582 }, 5583 "bpfLogLevel": { 5584 SchemaProps: spec.SchemaProps{ 5585 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].", 5586 Type: []string{"string"}, 5587 Format: "", 5588 }, 5589 }, 5590 "bpfLogFilters": { 5591 SchemaProps: spec.SchemaProps{ 5592 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]", 5593 Type: []string{"object"}, 5594 AdditionalProperties: &spec.SchemaOrBool{ 5595 Allows: true, 5596 Schema: &spec.Schema{ 5597 SchemaProps: spec.SchemaProps{ 5598 Default: "", 5599 Type: []string{"string"}, 5600 Format: "", 5601 }, 5602 }, 5603 }, 5604 }, 5605 }, 5606 "bpfCTLBLogFilter": { 5607 SchemaProps: spec.SchemaProps{ 5608 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.]", 5609 Type: []string{"string"}, 5610 Format: "", 5611 }, 5612 }, 5613 "bpfDataIfacePattern": { 5614 SchemaProps: spec.SchemaProps{ 5615 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...).", 5616 Type: []string{"string"}, 5617 Format: "", 5618 }, 5619 }, 5620 "bpfL3IfacePattern": { 5621 SchemaProps: spec.SchemaProps{ 5622 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.", 5623 Type: []string{"string"}, 5624 Format: "", 5625 }, 5626 }, 5627 "bpfConnectTimeLoadBalancingEnabled": { 5628 SchemaProps: spec.SchemaProps{ 5629 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]", 5630 Type: []string{"boolean"}, 5631 Format: "", 5632 }, 5633 }, 5634 "bpfConnectTimeLoadBalancing": { 5635 SchemaProps: spec.SchemaProps{ 5636 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]", 5637 Type: []string{"string"}, 5638 Format: "", 5639 }, 5640 }, 5641 "bpfHostNetworkedNATWithoutCTLB": { 5642 SchemaProps: spec.SchemaProps{ 5643 Description: "BPFHostNetworkedNATWithoutCTLB when in BPF mode, controls whether Felix does a NAT without CTLB. This along with BPFConnectTimeLoadBalancing determines the CTLB behavior. [Default: Enabled]", 5644 Type: []string{"string"}, 5645 Format: "", 5646 }, 5647 }, 5648 "bpfExternalServiceMode": { 5649 SchemaProps: spec.SchemaProps{ 5650 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]", 5651 Type: []string{"string"}, 5652 Format: "", 5653 }, 5654 }, 5655 "bpfDSROptoutCIDRs": { 5656 SchemaProps: spec.SchemaProps{ 5657 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.", 5658 Type: []string{"array"}, 5659 Items: &spec.SchemaOrArray{ 5660 Schema: &spec.Schema{ 5661 SchemaProps: spec.SchemaProps{ 5662 Default: "", 5663 Type: []string{"string"}, 5664 Format: "", 5665 }, 5666 }, 5667 }, 5668 }, 5669 }, 5670 "bpfExtToServiceConnmark": { 5671 SchemaProps: spec.SchemaProps{ 5672 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]", 5673 Type: []string{"integer"}, 5674 Format: "int32", 5675 }, 5676 }, 5677 "bpfKubeProxyIptablesCleanupEnabled": { 5678 SchemaProps: spec.SchemaProps{ 5679 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]", 5680 Type: []string{"boolean"}, 5681 Format: "", 5682 }, 5683 }, 5684 "bpfKubeProxyMinSyncPeriod": { 5685 SchemaProps: spec.SchemaProps{ 5686 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]", 5687 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 5688 }, 5689 }, 5690 "bpfKubeProxyEndpointSlicesEnabled": { 5691 SchemaProps: spec.SchemaProps{ 5692 Description: "BPFKubeProxyEndpointSlicesEnabled is deprecated and has no effect. BPF kube-proxy always accepts endpoint slices. This option will be removed in the next release.", 5693 Type: []string{"boolean"}, 5694 Format: "", 5695 }, 5696 }, 5697 "bpfPSNATPorts": { 5698 SchemaProps: spec.SchemaProps{ 5699 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]", 5700 Ref: ref("github.com/tigera/api/pkg/lib/numorstring.Port"), 5701 }, 5702 }, 5703 "bpfMapSizeNATFrontend": { 5704 SchemaProps: spec.SchemaProps{ 5705 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.", 5706 Type: []string{"integer"}, 5707 Format: "int32", 5708 }, 5709 }, 5710 "bpfMapSizeNATBackend": { 5711 SchemaProps: spec.SchemaProps{ 5712 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.", 5713 Type: []string{"integer"}, 5714 Format: "int32", 5715 }, 5716 }, 5717 "bpfMapSizeNATAffinity": { 5718 SchemaProps: spec.SchemaProps{ 5719 Type: []string{"integer"}, 5720 Format: "int32", 5721 }, 5722 }, 5723 "bpfMapSizeRoute": { 5724 SchemaProps: spec.SchemaProps{ 5725 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).", 5726 Type: []string{"integer"}, 5727 Format: "int32", 5728 }, 5729 }, 5730 "bpfMapSizeConntrack": { 5731 SchemaProps: spec.SchemaProps{ 5732 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.", 5733 Type: []string{"integer"}, 5734 Format: "int32", 5735 }, 5736 }, 5737 "bpfMapSizeIPSets": { 5738 SchemaProps: spec.SchemaProps{ 5739 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).", 5740 Type: []string{"integer"}, 5741 Format: "int32", 5742 }, 5743 }, 5744 "bpfMapSizeIfState": { 5745 SchemaProps: spec.SchemaProps{ 5746 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.", 5747 Type: []string{"integer"}, 5748 Format: "int32", 5749 }, 5750 }, 5751 "bpfHostConntrackBypass": { 5752 SchemaProps: spec.SchemaProps{ 5753 Description: "BPFHostConntrackBypass Controls whether to bypass Linux conntrack in BPF mode for workloads and services. [Default: true - bypass Linux conntrack]", 5754 Type: []string{"boolean"}, 5755 Format: "", 5756 }, 5757 }, 5758 "bpfEnforceRPF": { 5759 SchemaProps: spec.SchemaProps{ 5760 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]", 5761 Type: []string{"string"}, 5762 Format: "", 5763 }, 5764 }, 5765 "bpfPolicyDebugEnabled": { 5766 SchemaProps: spec.SchemaProps{ 5767 Description: "BPFPolicyDebugEnabled when true, Felix records detailed information about the BPF policy programs, which can be examined with the calico-bpf command-line tool.", 5768 Type: []string{"boolean"}, 5769 Format: "", 5770 }, 5771 }, 5772 "bpfForceTrackPacketsFromIfaces": { 5773 SchemaProps: spec.SchemaProps{ 5774 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+]", 5775 Type: []string{"array"}, 5776 Items: &spec.SchemaOrArray{ 5777 Schema: &spec.Schema{ 5778 SchemaProps: spec.SchemaProps{ 5779 Default: "", 5780 Type: []string{"string"}, 5781 Format: "", 5782 }, 5783 }, 5784 }, 5785 }, 5786 }, 5787 "bpfDisableGROForIfaces": { 5788 SchemaProps: spec.SchemaProps{ 5789 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...).", 5790 Type: []string{"string"}, 5791 Format: "", 5792 }, 5793 }, 5794 "bpfExcludeCIDRsFromNAT": { 5795 SchemaProps: spec.SchemaProps{ 5796 Description: "BPFExcludeCIDRsFromNAT is a list of CIDRs that are to be excluded from NAT resolution so that host can handle them. A typical usecase is node local DNS cache.", 5797 Type: []string{"array"}, 5798 Items: &spec.SchemaOrArray{ 5799 Schema: &spec.Schema{ 5800 SchemaProps: spec.SchemaProps{ 5801 Default: "", 5802 Type: []string{"string"}, 5803 Format: "", 5804 }, 5805 }, 5806 }, 5807 }, 5808 }, 5809 "syslogReporterNetwork": { 5810 SchemaProps: spec.SchemaProps{ 5811 Type: []string{"string"}, 5812 Format: "", 5813 }, 5814 }, 5815 "syslogReporterAddress": { 5816 SchemaProps: spec.SchemaProps{ 5817 Type: []string{"string"}, 5818 Format: "", 5819 }, 5820 }, 5821 "ipsecMode": { 5822 SchemaProps: spec.SchemaProps{ 5823 Description: "IPSecMode controls which mode IPSec is operating on. Default value means IPSec is not enabled. [Default: \"\"]", 5824 Type: []string{"string"}, 5825 Format: "", 5826 }, 5827 }, 5828 "ipsecAllowUnsecuredTraffic": { 5829 SchemaProps: spec.SchemaProps{ 5830 Description: "IPSecAllowUnsecuredTraffic controls whether non-IPsec traffic is allowed in addition to IPsec traffic. Enabling this negates the anti-spoofing protections of IPsec but it is useful when migrating to/from IPsec. [Default: false]", 5831 Type: []string{"boolean"}, 5832 Format: "", 5833 }, 5834 }, 5835 "ipsecIKEAlgorithm": { 5836 SchemaProps: spec.SchemaProps{ 5837 Description: "IPSecIKEAlgorithm sets IPSec IKE algorithm. Default is NIST suite B recommendation. [Default: aes128gcm16-prfsha256-ecp256]", 5838 Type: []string{"string"}, 5839 Format: "", 5840 }, 5841 }, 5842 "ipsecESPAlgorithm": { 5843 SchemaProps: spec.SchemaProps{ 5844 Description: "IPSecESAlgorithm sets IPSec ESP algorithm. Default is NIST suite B recommendation. [Default: aes128gcm16-ecp256]", 5845 Type: []string{"string"}, 5846 Format: "", 5847 }, 5848 }, 5849 "ipsecLogLevel": { 5850 SchemaProps: spec.SchemaProps{ 5851 Description: "IPSecLogLevel controls log level for IPSec components. Set to None for no logging. A generic log level terminology is used [None, Notice, Info, Debug, Verbose]. [Default: Info]", 5852 Type: []string{"string"}, 5853 Format: "", 5854 }, 5855 }, 5856 "ipsecPolicyRefreshInterval": { 5857 SchemaProps: spec.SchemaProps{ 5858 Description: "IPSecPolicyRefreshInterval is the interval at which Felix will check the kernel's IPsec policy tables and repair any inconsistencies. [Default: 600s]", 5859 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 5860 }, 5861 }, 5862 "flowLogsFlushInterval": { 5863 SchemaProps: spec.SchemaProps{ 5864 Description: "FlowLogsFlushInterval configures the interval at which Felix exports flow logs.", 5865 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 5866 }, 5867 }, 5868 "flowLogsEnableHostEndpoint": { 5869 SchemaProps: spec.SchemaProps{ 5870 Description: "FlowLogsEnableHostEndpoint enables Flow logs reporting for HostEndpoints.", 5871 Type: []string{"boolean"}, 5872 Format: "", 5873 }, 5874 }, 5875 "flowLogsEnableNetworkSets": { 5876 SchemaProps: spec.SchemaProps{ 5877 Description: "FlowLogsEnableNetworkSets enables Flow logs reporting for GlobalNetworkSets.", 5878 Type: []string{"boolean"}, 5879 Format: "", 5880 }, 5881 }, 5882 "flowLogsMaxOriginalIPsIncluded": { 5883 SchemaProps: spec.SchemaProps{ 5884 Description: "FlowLogsMaxOriginalIPsIncluded specifies the number of unique IP addresses (if relevant) that should be included in Flow logs.", 5885 Type: []string{"integer"}, 5886 Format: "int32", 5887 }, 5888 }, 5889 "flowLogsCollectProcessInfo": { 5890 SchemaProps: spec.SchemaProps{ 5891 Description: "FlowLogsCollectProcessInfo, if enabled Felix will load the kprobe BPF programs to collect process info. [Default: false]", 5892 Type: []string{"boolean"}, 5893 Format: "", 5894 }, 5895 }, 5896 "flowLogsCollectTcpStats": { 5897 SchemaProps: spec.SchemaProps{ 5898 Description: "FlowLogsCollectTcpStats enables flow logs reporting TCP socket stats", 5899 Type: []string{"boolean"}, 5900 Format: "", 5901 }, 5902 }, 5903 "flowLogsCollectProcessPath": { 5904 SchemaProps: spec.SchemaProps{ 5905 Description: "When FlowLogsCollectProcessPath and FlowLogsCollectProcessInfo are both enabled, each flow log will include information about the process that is sending or receiving the packets in that flow: the `process_name` field will contain the full path of the process executable, and the `process_args` field will have the arguments with which the executable was invoked. Process information will not be reported for connections which use raw sockets.", 5906 Type: []string{"boolean"}, 5907 Format: "", 5908 }, 5909 }, 5910 "flowLogsCollectorDebugTrace": { 5911 SchemaProps: spec.SchemaProps{ 5912 Description: "When FlowLogsCollectorDebugTrace is set to true, enables the logs in the collector to be printed in their entirety.", 5913 Type: []string{"boolean"}, 5914 Format: "", 5915 }, 5916 }, 5917 "flowLogsDestDomainsByClient": { 5918 SchemaProps: spec.SchemaProps{ 5919 Description: "FlowLogsDestDomainsByClient is used to configure if the source IP is used in the mapping of top level destination domains. [Default: true]", 5920 Type: []string{"boolean"}, 5921 Format: "", 5922 }, 5923 }, 5924 "flowLogsFileEnabled": { 5925 SchemaProps: spec.SchemaProps{ 5926 Description: "FlowLogsFileEnabled when set to true, enables logging flow logs to a file. If false no flow logging to file will occur.", 5927 Type: []string{"boolean"}, 5928 Format: "", 5929 }, 5930 }, 5931 "flowLogsFileMaxFiles": { 5932 SchemaProps: spec.SchemaProps{ 5933 Description: "FlowLogsFileMaxFiles sets the number of log files to keep.", 5934 Type: []string{"integer"}, 5935 Format: "int32", 5936 }, 5937 }, 5938 "flowLogsFileMaxFileSizeMB": { 5939 SchemaProps: spec.SchemaProps{ 5940 Description: "FlowLogsFileMaxFileSizeMB sets the max size in MB of flow logs files before rotation.", 5941 Type: []string{"integer"}, 5942 Format: "int32", 5943 }, 5944 }, 5945 "flowLogsFileDirectory": { 5946 SchemaProps: spec.SchemaProps{ 5947 Description: "FlowLogsFileDirectory sets the directory where flow logs files are stored.", 5948 Type: []string{"string"}, 5949 Format: "", 5950 }, 5951 }, 5952 "flowLogsFileIncludeLabels": { 5953 SchemaProps: spec.SchemaProps{ 5954 Description: "FlowLogsFileIncludeLabels is used to configure if endpoint labels are included in a Flow log entry written to file.", 5955 Type: []string{"boolean"}, 5956 Format: "", 5957 }, 5958 }, 5959 "flowLogsFileIncludePolicies": { 5960 SchemaProps: spec.SchemaProps{ 5961 Description: "FlowLogsFileIncludePolicies is used to configure if policy information are included in a Flow log entry written to file.", 5962 Type: []string{"boolean"}, 5963 Format: "", 5964 }, 5965 }, 5966 "flowLogsFileIncludeService": { 5967 SchemaProps: spec.SchemaProps{ 5968 Description: "FlowLogsFileIncludeService is used to configure if the destination service is included in a Flow log entry written to file. The service information can only be included if the flow was explicitly determined to be directed at the service (e.g. when the pre-DNAT destination corresponds to the service ClusterIP and port).", 5969 Type: []string{"boolean"}, 5970 Format: "", 5971 }, 5972 }, 5973 "flowLogsFileAggregationKindForAllowed": { 5974 SchemaProps: spec.SchemaProps{ 5975 Description: "FlowLogsFileAggregationKindForAllowed is used to choose the type of aggregation for flow log entries created for allowed connections. [Default: 2 - pod prefix name based aggregation]. Accepted values are 0, 1 and 2. 0 - No aggregation. 1 - Source port based aggregation. 2 - Pod prefix name based aggreagation.", 5976 Type: []string{"integer"}, 5977 Format: "int32", 5978 }, 5979 }, 5980 "flowLogsFileAggregationKindForDenied": { 5981 SchemaProps: spec.SchemaProps{ 5982 Description: "FlowLogsFileAggregationKindForDenied is used to choose the type of aggregation for flow log entries created for denied connections. [Default: 1 - source port based aggregation]. Accepted values are 0, 1 and 2. 0 - No aggregation. 1 - Source port based aggregation. 2 - Pod prefix name based aggregation. 3 - No destination ports based aggregation.", 5983 Type: []string{"integer"}, 5984 Format: "int32", 5985 }, 5986 }, 5987 "flowLogsFileEnabledForAllowed": { 5988 SchemaProps: spec.SchemaProps{ 5989 Description: "FlowLogsFileEnabledForAllowed is used to enable/disable flow logs entries created for allowed connections. Default is true. This parameter only takes effect when FlowLogsFileReporterEnabled is set to true.", 5990 Type: []string{"boolean"}, 5991 Format: "", 5992 }, 5993 }, 5994 "flowLogsFileEnabledForDenied": { 5995 SchemaProps: spec.SchemaProps{ 5996 Description: "FlowLogsFileEnabledForDenied is used to enable/disable flow logs entries created for denied flows. Default is true. This parameter only takes effect when FlowLogsFileReporterEnabled is set to true.", 5997 Type: []string{"boolean"}, 5998 Format: "", 5999 }, 6000 }, 6001 "flowLogsDynamicAggregationEnabled": { 6002 SchemaProps: spec.SchemaProps{ 6003 Description: "FlowLogsDynamicAggregationEnabled is used to enable/disable dynamically changing aggregation levels. Default is true.", 6004 Type: []string{"boolean"}, 6005 Format: "", 6006 }, 6007 }, 6008 "flowLogsPositionFilePath": { 6009 SchemaProps: spec.SchemaProps{ 6010 Description: "FlowLogsPositionFilePath is used specify the position of the external pipeline that reads flow logs. Default is /var/log/calico/flows.log.pos. This parameter only takes effect when FlowLogsDynamicAggregationEnabled is set to true.", 6011 Type: []string{"string"}, 6012 Format: "", 6013 }, 6014 }, 6015 "flowLogsAggregationThresholdBytes": { 6016 SchemaProps: spec.SchemaProps{ 6017 Description: "FlowLogsAggregationThresholdBytes is used specify how far behind the external pipeline that reads flow logs can be. Default is 8192 bytes. This parameter only takes effect when FlowLogsDynamicAggregationEnabled is set to true.", 6018 Type: []string{"integer"}, 6019 Format: "int32", 6020 }, 6021 }, 6022 "flowLogsFilePerFlowProcessLimit": { 6023 SchemaProps: spec.SchemaProps{ 6024 Description: "FlowLogsFilePerFlowProcessLimit, is used to specify the maximum number of flow log entries with distinct process information beyond which process information will be aggregated. [Default: 2]", 6025 Type: []string{"integer"}, 6026 Format: "int32", 6027 }, 6028 }, 6029 "flowLogsFilePerFlowProcessArgsLimit": { 6030 SchemaProps: spec.SchemaProps{ 6031 Description: "FlowLogsFilePerFlowProcessArgsLimit is used to specify the maximum number of distinct process args that will appear in the flowLogs. Default value is 5", 6032 Type: []string{"integer"}, 6033 Format: "int32", 6034 }, 6035 }, 6036 "flowLogsFileNatOutgoingPortLimit": { 6037 SchemaProps: spec.SchemaProps{ 6038 Description: "FlowLogsFileNatOutgoingPortLimit is used to specify the maximum number of distinct post SNAT ports that will appear in the flowLogs. Default value is 3", 6039 Type: []string{"integer"}, 6040 Format: "int32", 6041 }, 6042 }, 6043 "flowLogsFileDomainsLimit": { 6044 SchemaProps: spec.SchemaProps{ 6045 Description: "FlowLogsFileDomainsLimit is used to configure the number of (destination) domains to include in the flow log. These are not included for workload or host endpoint destinations. [Default: 5]", 6046 Type: []string{"integer"}, 6047 Format: "int32", 6048 }, 6049 }, 6050 "windowsFlowLogsFileDirectory": { 6051 SchemaProps: spec.SchemaProps{ 6052 Description: "WindowsFlowLogsFileDirectory sets the directory where flow logs files are stored on Windows nodes. [Default: \"c:\\TigeraCalico\\flowlogs\"].", 6053 Type: []string{"string"}, 6054 Format: "", 6055 }, 6056 }, 6057 "windowsFlowLogsPositionFilePath": { 6058 SchemaProps: spec.SchemaProps{ 6059 Description: "WindowsFlowLogsPositionFilePath is used to specify the position of the external pipeline that reads flow logs on Windows nodes. [Default: \"c:\\TigeraCalico\\flowlogs\\flows.log.pos\"]. This parameter only takes effect when FlowLogsDynamicAggregationEnabled is set to true.", 6060 Type: []string{"string"}, 6061 Format: "", 6062 }, 6063 }, 6064 "windowsStatsDumpFilePath": { 6065 SchemaProps: spec.SchemaProps{ 6066 Description: "WindowsStatsDumpFilePath is used to specify the path of the stats dump file on Windows nodes. [Default: \"c:\\TigeraCalico\\stats\\dump\"]", 6067 Type: []string{"string"}, 6068 Format: "", 6069 }, 6070 }, 6071 "windowsDnsCacheFile": { 6072 SchemaProps: spec.SchemaProps{ 6073 Description: "The name of the file that Felix uses to preserve learnt DNS information when restarting. [Default: \"c:\\TigeraCalico\\felix-dns-cache.txt\"].", 6074 Type: []string{"string"}, 6075 Format: "", 6076 }, 6077 }, 6078 "windowsDnsExtraTTL": { 6079 SchemaProps: spec.SchemaProps{ 6080 Description: "Extra time to keep IPs and alias names that are learnt from DNS, in addition to each name or IP's advertised TTL. The default value is 120s which is same as the default value of ServicePointManager.DnsRefreshTimeout on .net framework. [Default: 120s].", 6081 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 6082 }, 6083 }, 6084 "dnsTrustedServers": { 6085 SchemaProps: spec.SchemaProps{ 6086 Description: "The DNS servers that Felix should trust. Each entry here must be `<ip>[:<port>]` - indicating an explicit DNS server IP - or `k8s-service:[<namespace>/]<name>[:port]` - indicating a Kubernetes DNS service. `<port>` defaults to the first service port, or 53 for an IP, and `<namespace>` to `kube-system`. An IPv6 address with a port must use the square brackets convention, for example `[fd00:83a6::12]:5353`.Note that Felix (calico-node) will need RBAC permission to read the details of each service specified by a `k8s-service:...` form. [Default: \"k8s-service:kube-dns\"].", 6087 Type: []string{"array"}, 6088 Items: &spec.SchemaOrArray{ 6089 Schema: &spec.Schema{ 6090 SchemaProps: spec.SchemaProps{ 6091 Default: "", 6092 Type: []string{"string"}, 6093 Format: "", 6094 }, 6095 }, 6096 }, 6097 }, 6098 }, 6099 "dnsCacheFile": { 6100 SchemaProps: spec.SchemaProps{ 6101 Description: "The name of the file that Felix uses to preserve learnt DNS information when restarting. [Default: \"/var/run/calico/felix-dns-cache.txt\"].", 6102 Type: []string{"string"}, 6103 Format: "", 6104 }, 6105 }, 6106 "dnsCacheSaveInterval": { 6107 SchemaProps: spec.SchemaProps{ 6108 Description: "The periodic interval at which Felix saves learnt DNS information to the cache file. [Default: 60s].", 6109 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 6110 }, 6111 }, 6112 "dnsCacheEpoch": { 6113 SchemaProps: spec.SchemaProps{ 6114 Description: "An arbitrary number that can be changed, at runtime, to tell Felix to discard all its learnt DNS information. [Default: 0].", 6115 Type: []string{"integer"}, 6116 Format: "int32", 6117 }, 6118 }, 6119 "dnsExtraTTL": { 6120 SchemaProps: spec.SchemaProps{ 6121 Description: "Extra time to keep IPs and alias names that are learnt from DNS, in addition to each name or IP's advertised TTL. [Default: 0s].", 6122 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 6123 }, 6124 }, 6125 "dnsLogsFlushInterval": { 6126 SchemaProps: spec.SchemaProps{ 6127 Description: "DNSLogsFlushInterval configures the interval at which Felix exports DNS logs. [Default: 300s]", 6128 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 6129 }, 6130 }, 6131 "dnsLogsFileEnabled": { 6132 SchemaProps: spec.SchemaProps{ 6133 Description: "DNSLogsFileEnabled controls logging DNS logs to a file. If false no DNS logging to file will occur. [Default: false]", 6134 Type: []string{"boolean"}, 6135 Format: "", 6136 }, 6137 }, 6138 "dnsLogsFileMaxFiles": { 6139 SchemaProps: spec.SchemaProps{ 6140 Description: "DNSLogsFileMaxFiles sets the number of DNS log files to keep. [Default: 5]", 6141 Type: []string{"integer"}, 6142 Format: "int32", 6143 }, 6144 }, 6145 "dnsLogsFileMaxFileSizeMB": { 6146 SchemaProps: spec.SchemaProps{ 6147 Description: "DNSLogsFileMaxFileSizeMB sets the max size in MB of DNS log files before rotation. [Default: 100]", 6148 Type: []string{"integer"}, 6149 Format: "int32", 6150 }, 6151 }, 6152 "dnsLogsFileDirectory": { 6153 SchemaProps: spec.SchemaProps{ 6154 Description: "DNSLogsFileDirectory sets the directory where DNS log files are stored. [Default: /var/log/calico/dnslogs]", 6155 Type: []string{"string"}, 6156 Format: "", 6157 }, 6158 }, 6159 "dnsLogsFileIncludeLabels": { 6160 SchemaProps: spec.SchemaProps{ 6161 Description: "DNSLogsFileIncludeLabels is used to configure if endpoint labels are included in a DNS log entry written to file. [Default: true]", 6162 Type: []string{"boolean"}, 6163 Format: "", 6164 }, 6165 }, 6166 "dnsLogsFileAggregationKind": { 6167 SchemaProps: spec.SchemaProps{ 6168 Description: "DNSLogsFileAggregationKind is used to choose the type of aggregation for DNS log entries. [Default: 1 - client name prefix aggregation]. Accepted values are 0 and 1. 0 - No aggregation. 1 - Aggregate over clients with the same name prefix.", 6169 Type: []string{"integer"}, 6170 Format: "int32", 6171 }, 6172 }, 6173 "dnsLogsFilePerNodeLimit": { 6174 SchemaProps: spec.SchemaProps{ 6175 Description: "Limit on the number of DNS logs that can be emitted within each flush interval. When this limit has been reached, Felix counts the number of unloggable DNS responses within the flush interval, and emits a WARNING log with that count at the same time as it flushes the buffered DNS logs. [Default: 0, meaning no limit]", 6176 Type: []string{"integer"}, 6177 Format: "int32", 6178 }, 6179 }, 6180 "dnsLogsLatency": { 6181 SchemaProps: spec.SchemaProps{ 6182 Description: "DNSLogsLatency indicates to include measurements of DNS request/response latency in each DNS log. [Default: true]", 6183 Type: []string{"boolean"}, 6184 Format: "", 6185 }, 6186 }, 6187 "dnsPolicyMode": { 6188 SchemaProps: spec.SchemaProps{ 6189 Description: "DNSPolicyMode specifies how DNS policy programming will be handled. DelayDeniedPacket - Felix delays any denied packet that traversed a policy that included egress domain matches, but did not match. The packet is released after a fixed time, or after the destination IP address was programmed. DelayDNSResponse - Felix delays any DNS response until related IPSets are programmed. This introduces some latency to all DNS packets (even when no IPSet programming is required), but it ensures policy hit statistics are accurate. This is the recommended setting when you are making use of staged policies or policy rule hit statistics. NoDelay - Felix does not introduce any delay to the packets. DNS rules may not have been programmed by the time the first packet traverses the policy rules. Client applications need to handle reconnection attempts if initial connection attempts fail. This may be problematic for some applications or for very low DNS TTLs.\n\nOn Windows, or when using the eBPF dataplane, this setting is ignored and \"NoDelay\" is always used.\n\n[Default: DelayDeniedPacket]", 6190 Type: []string{"string"}, 6191 Format: "", 6192 }, 6193 }, 6194 "dnsPolicyNfqueueID": { 6195 SchemaProps: spec.SchemaProps{ 6196 Description: "DNSPolicyNfqueueID is the NFQUEUE ID to use for DNS Policy re-evaluation when the domains IP hasn't been programmed to ipsets yet. Used when DNSPolicyMode is DelayDeniedPacket. [Default: 100]", 6197 Type: []string{"integer"}, 6198 Format: "int32", 6199 }, 6200 }, 6201 "dnsPolicyNfqueueSize": { 6202 SchemaProps: spec.SchemaProps{ 6203 Description: "DNSPolicyNfqueueID is the size of the NFQUEUE for DNS policy re-evaluation. This is the maximum number of denied packets that may be queued up pending re-evaluation. Used when DNSPolicyMode is DelayDeniedPacket. [Default: 100]", 6204 Type: []string{"integer"}, 6205 Format: "int32", 6206 }, 6207 }, 6208 "dnsPacketsNfqueueID": { 6209 SchemaProps: spec.SchemaProps{ 6210 Description: "DNSPacketsNfqueueID is the NFQUEUE ID to use for capturing DNS packets to ensure programming IPSets occurs before the response is released. Used when DNSPolicyMode is DelayDNSResponse. [Default: 101]", 6211 Type: []string{"integer"}, 6212 Format: "int32", 6213 }, 6214 }, 6215 "dnsPacketsNfqueueSize": { 6216 SchemaProps: spec.SchemaProps{ 6217 Description: "DNSPacketsNfqueueSize is the size of the NFQUEUE for captured DNS packets. This is the maximum number of DNS packets that may be queued awaiting programming in the dataplane. Used when DNSPolicyMode is DelayDNSResponse. [Default: 100]", 6218 Type: []string{"integer"}, 6219 Format: "int32", 6220 }, 6221 }, 6222 "dnsPacketsNfqueueMaxHoldDuration": { 6223 SchemaProps: spec.SchemaProps{ 6224 Description: "DNSPacketsNfqueueMaxHoldDuration is the max length of time to hold on to a DNS response while waiting for the the dataplane to be programmed. Used when DNSPolicyMode is DelayDNSResponse. [Default: 3s]", 6225 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 6226 }, 6227 }, 6228 "l7LogsFlushInterval": { 6229 SchemaProps: spec.SchemaProps{ 6230 Description: "L7LogsFlushInterval configures the interval at which Felix exports L7 logs. [Default: 300s]", 6231 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 6232 }, 6233 }, 6234 "l7LogsFileEnabled": { 6235 SchemaProps: spec.SchemaProps{ 6236 Description: "L7LogsFileEnabled controls logging L7 logs to a file. If false no L7 logging to file will occur. [Default: true]", 6237 Type: []string{"boolean"}, 6238 Format: "", 6239 }, 6240 }, 6241 "l7LogsFileMaxFiles": { 6242 SchemaProps: spec.SchemaProps{ 6243 Description: "L7LogsFileMaxFiles sets the number of L7 log files to keep. [Default: 5]", 6244 Type: []string{"integer"}, 6245 Format: "int32", 6246 }, 6247 }, 6248 "l7LogsFileMaxFileSizeMB": { 6249 SchemaProps: spec.SchemaProps{ 6250 Description: "L7LogsFileMaxFileSizeMB sets the max size in MB of L7 log files before rotation. [Default: 100]", 6251 Type: []string{"integer"}, 6252 Format: "int32", 6253 }, 6254 }, 6255 "l7LogsFileDirectory": { 6256 SchemaProps: spec.SchemaProps{ 6257 Description: "L7LogsFileDirectory sets the directory where L7 log files are stored. [Default: /var/log/calico/l7logs]", 6258 Type: []string{"string"}, 6259 Format: "", 6260 }, 6261 }, 6262 "l7LogsFileAggregationHTTPHeaderInfo": { 6263 SchemaProps: spec.SchemaProps{ 6264 Description: "L7LogsFileAggregationHTTPHeaderInfo is used to choose the type of aggregation for HTTP header data on L7 log entries. [Default: ExcludeL7HTTPHeaderInfo - http header info removal]. Accepted values are IncludeL7HTTPHeaderInfo and ExcludeL7HTTPHeaderInfo. IncludeL7HTTPHeaderInfo - Include HTTP header data in the logs. ExcludeL7HTTPHeaderInfo - Aggregate over all other fields ignoring the user agent and log type.", 6265 Type: []string{"string"}, 6266 Format: "", 6267 }, 6268 }, 6269 "l7LogsFileAggregationHTTPMethod": { 6270 SchemaProps: spec.SchemaProps{ 6271 Description: "L7LogsFileAggregationHTTPMethod is used to choose the type of aggregation for the HTTP request method on L7 log entries. [Default: IncludeL7HTTPMethod - include the HTTP method]. Accepted values are IncludeL7HTTPMethod and ExcludeL7HTTPMethod. IncludeL7HTTPMethod - Include HTTP method in the logs. ExcludeL7HTTPMethod - Aggregate over all other fields ignoring the HTTP method.", 6272 Type: []string{"string"}, 6273 Format: "", 6274 }, 6275 }, 6276 "l7LogsFileAggregationServiceInfo": { 6277 SchemaProps: spec.SchemaProps{ 6278 Description: "L7LogsFileAggregationServiceInfo is used to choose the type of aggregation for the service data on L7 log entries. [Default: IncludeL7ServiceInfo - include service data]. Accepted values are IncludeL7ServiceInfo and ExcludeL7ServiceInfo. IncludeL7ServiceInfo - Include service data in the logs. ExcludeL7ServiceInfo - Aggregate over all other fields ignoring the service name, namespace, and port.", 6279 Type: []string{"string"}, 6280 Format: "", 6281 }, 6282 }, 6283 "l7LogsFileAggregationDestinationInfo": { 6284 SchemaProps: spec.SchemaProps{ 6285 Description: "L7LogsFileAggregationDestinationInfo is used to choose the type of aggregation for the destination metadata on L7 log entries. [Default: IncludeL7DestinationInfo - include destination metadata]. Accepted values are IncludeL7DestinationInfo and ExcludeL7DestinationInfo. IncludeL7DestinationInfo - Include destination metadata in the logs. ExcludeL7DestinationInfo - Aggregate over all other fields ignoring the destination aggregated name, namespace, and type.", 6286 Type: []string{"string"}, 6287 Format: "", 6288 }, 6289 }, 6290 "l7LogsFileAggregationSourceInfo": { 6291 SchemaProps: spec.SchemaProps{ 6292 Description: "L7LogsFileAggregationExcludeSourceInfo is used to choose the type of aggregation for the source metadata on L7 log entries. [Default: IncludeL7SourceInfoNoPort - include all source metadata except for the source port]. Accepted values are IncludeL7SourceInfo, IncludeL7SourceInfoNoPort, and ExcludeL7SourceInfo. IncludeL7SourceInfo - Include source metadata in the logs. IncludeL7SourceInfoNoPort - Include source metadata in the logs excluding the source port. ExcludeL7SourceInfo - Aggregate over all other fields ignoring the source aggregated name, namespace, and type.", 6293 Type: []string{"string"}, 6294 Format: "", 6295 }, 6296 }, 6297 "l7LogsFileAggregationResponseCode": { 6298 SchemaProps: spec.SchemaProps{ 6299 Description: "L7LogsFileAggregationResponseCode is used to choose the type of aggregation for the response code on L7 log entries. [Default: IncludeL7ResponseCode - include the response code]. Accepted values are IncludeL7ResponseCode and ExcludeL7ResponseCode. IncludeL7ResponseCode - Include the response code in the logs. ExcludeL7ResponseCode - Aggregate over all other fields ignoring the response code.", 6300 Type: []string{"string"}, 6301 Format: "", 6302 }, 6303 }, 6304 "l7LogsFileAggregationTrimURL": { 6305 SchemaProps: spec.SchemaProps{ 6306 Description: "L7LogsFileAggregationTrimURL is used to choose the type of aggregation for the url on L7 log entries. [Default: IncludeL7FullURL - include the full URL up to however many path components are allowed by L7LogsFileAggregationNumURLPath]. Accepted values: IncludeL7FullURL - Include the full URL up to however many path components are allowed by L7LogsFileAggregationNumURLPath. TrimURLQuery - Aggregate over all other fields ignoring the query parameters on the URL. TrimURLQueryAndPath - Aggregate over all other fields and the base URL only. ExcludeL7URL - Aggregate over all other fields ignoring the URL entirely.", 6307 Type: []string{"string"}, 6308 Format: "", 6309 }, 6310 }, 6311 "l7LogsFileAggregationNumURLPath": { 6312 SchemaProps: spec.SchemaProps{ 6313 Description: "L7LogsFileAggregationNumURLPath is used to choose the number of components in the url path to display. This allows for the url to be truncated in case parts of the path provide no value. Setting this value to negative will allow all parts of the path to be displayed. [Default: 5].", 6314 Type: []string{"integer"}, 6315 Format: "int32", 6316 }, 6317 }, 6318 "l7LogsFileAggregationURLCharLimit": { 6319 SchemaProps: spec.SchemaProps{ 6320 Description: "Limit on the length of the URL collected in L7 logs. When a URL length reaches this limit it is sliced off, and the sliced URL is sent to log storage. [Default: 250]", 6321 Type: []string{"integer"}, 6322 Format: "int32", 6323 }, 6324 }, 6325 "l7LogsFilePerNodeLimit": { 6326 SchemaProps: spec.SchemaProps{ 6327 Description: "Limit on the number of L7 logs that can be emitted within each flush interval. When this limit has been reached, Felix counts the number of unloggable L7 responses within the flush interval, and emits a WARNING log with that count at the same time as it flushes the buffered L7 logs. A value of 0 means no limit. [Default: 1500]", 6328 Type: []string{"integer"}, 6329 Format: "int32", 6330 }, 6331 }, 6332 "windowsNetworkName": { 6333 SchemaProps: spec.SchemaProps{ 6334 Description: "WindowsNetworkName specifies which Windows HNS networks Felix should operate on. The default is to match networks that start with \"calico\". Supports regular expression syntax.", 6335 Type: []string{"string"}, 6336 Format: "", 6337 }, 6338 }, 6339 "routeSource": { 6340 SchemaProps: spec.SchemaProps{ 6341 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.", 6342 Type: []string{"string"}, 6343 Format: "", 6344 }, 6345 }, 6346 "routeTableRanges": { 6347 SchemaProps: spec.SchemaProps{ 6348 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`.", 6349 Type: []string{"array"}, 6350 Items: &spec.SchemaOrArray{ 6351 Schema: &spec.Schema{ 6352 SchemaProps: spec.SchemaProps{ 6353 Default: map[string]interface{}{}, 6354 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.RouteTableIDRange"), 6355 }, 6356 }, 6357 }, 6358 }, 6359 }, 6360 "routeTableRange": { 6361 SchemaProps: spec.SchemaProps{ 6362 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.", 6363 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.RouteTableRange"), 6364 }, 6365 }, 6366 "egressIPSupport": { 6367 SchemaProps: spec.SchemaProps{ 6368 Description: "EgressIPSupport defines three different support modes for egress IP function. [Default: Disabled] - Disabled: Egress IP function is disabled. - EnabledPerNamespace: Egress IP function is enabled and can be configured on a per-namespace basis;\n per-pod egress annotations are ignored.\n- EnabledPerNamespaceOrPerPod: Egress IP function is enabled and can be configured per-namespace or per-pod,\n with per-pod egress annotations overriding namespace annotations.", 6369 Type: []string{"string"}, 6370 Format: "", 6371 }, 6372 }, 6373 "egressIPVXLANPort": { 6374 SchemaProps: spec.SchemaProps{ 6375 Description: "EgressIPVXLANPort is the port number of vxlan tunnel device for egress traffic. [Default: 4790]", 6376 Type: []string{"integer"}, 6377 Format: "int32", 6378 }, 6379 }, 6380 "egressIPVXLANVNI": { 6381 SchemaProps: spec.SchemaProps{ 6382 Description: "EgressIPVXLANVNI is the VNI ID of vxlan tunnel device for egress traffic. [Default: 4097]", 6383 Type: []string{"integer"}, 6384 Format: "int32", 6385 }, 6386 }, 6387 "egressIPRoutingRulePriority": { 6388 SchemaProps: spec.SchemaProps{ 6389 Description: "EgressIPRoutingRulePriority controls the priority value to use for the egress IP routing rule. [Default: 100]", 6390 Type: []string{"integer"}, 6391 Format: "int32", 6392 }, 6393 }, 6394 "egressGatewayPollInterval": { 6395 SchemaProps: spec.SchemaProps{ 6396 Description: "EgressGatewayPollInterval is the interval at which Felix will poll remote egress gateways to check their health. Only Egress Gateways with a named \"health\" port will be polled in this way. Egress Gateways that fail the health check will be taken our of use as if they have been deleted.", 6397 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 6398 }, 6399 }, 6400 "egressGatewayPollFailureCount": { 6401 SchemaProps: spec.SchemaProps{ 6402 Description: "EgressGatewayPollFailureCount is the minimum number of poll failures before a remote Egress Gateway is considered to have failed.", 6403 Type: []string{"integer"}, 6404 Format: "int32", 6405 }, 6406 }, 6407 "routeSyncDisabled": { 6408 SchemaProps: spec.SchemaProps{ 6409 Description: "RouteSyncDisabled will disable all operations performed on the route table. Set to true to run in network-policy mode only.", 6410 Type: []string{"boolean"}, 6411 Format: "", 6412 }, 6413 }, 6414 "externalNetworkSupport": { 6415 SchemaProps: spec.SchemaProps{ 6416 Description: "ExternalNetworkSupport defines two different support modes for external network function. [Default: Disabled] - Disabled: External network function is disabled. - Enabled: External network function is enabled.", 6417 Type: []string{"string"}, 6418 Format: "", 6419 }, 6420 }, 6421 "externalNetworkRoutingRulePriority": { 6422 SchemaProps: spec.SchemaProps{ 6423 Description: "ExternalNetworkRoutingRulePriority controls the priority value to use for the external network routing rule. [Default: 102]", 6424 Type: []string{"integer"}, 6425 Format: "int32", 6426 }, 6427 }, 6428 "wireguardEnabled": { 6429 SchemaProps: spec.SchemaProps{ 6430 Description: "WireguardEnabled controls whether Wireguard is enabled for IPv4 (encapsulating IPv4 traffic over an IPv4 underlay network). [Default: false]", 6431 Type: []string{"boolean"}, 6432 Format: "", 6433 }, 6434 }, 6435 "wireguardEnabledV6": { 6436 SchemaProps: spec.SchemaProps{ 6437 Description: "WireguardEnabledV6 controls whether Wireguard is enabled for IPv6 (encapsulating IPv6 traffic over an IPv6 underlay network). [Default: false]", 6438 Type: []string{"boolean"}, 6439 Format: "", 6440 }, 6441 }, 6442 "wireguardListeningPort": { 6443 SchemaProps: spec.SchemaProps{ 6444 Description: "WireguardListeningPort controls the listening port used by IPv4 Wireguard. [Default: 51820]", 6445 Type: []string{"integer"}, 6446 Format: "int32", 6447 }, 6448 }, 6449 "wireguardListeningPortV6": { 6450 SchemaProps: spec.SchemaProps{ 6451 Description: "WireguardListeningPortV6 controls the listening port used by IPv6 Wireguard. [Default: 51821]", 6452 Type: []string{"integer"}, 6453 Format: "int32", 6454 }, 6455 }, 6456 "wireguardRoutingRulePriority": { 6457 SchemaProps: spec.SchemaProps{ 6458 Description: "WireguardRoutingRulePriority controls the priority value to use for the Wireguard routing rule. [Default: 99]", 6459 Type: []string{"integer"}, 6460 Format: "int32", 6461 }, 6462 }, 6463 "wireguardInterfaceName": { 6464 SchemaProps: spec.SchemaProps{ 6465 Description: "WireguardInterfaceName specifies the name to use for the IPv4 Wireguard interface. [Default: wireguard.cali]", 6466 Type: []string{"string"}, 6467 Format: "", 6468 }, 6469 }, 6470 "wireguardInterfaceNameV6": { 6471 SchemaProps: spec.SchemaProps{ 6472 Description: "WireguardInterfaceNameV6 specifies the name to use for the IPv6 Wireguard interface. [Default: wg-v6.cali]", 6473 Type: []string{"string"}, 6474 Format: "", 6475 }, 6476 }, 6477 "wireguardMTU": { 6478 SchemaProps: spec.SchemaProps{ 6479 Description: "WireguardMTU controls the MTU on the IPv4 Wireguard interface. See Configuring MTU [Default: 1440]", 6480 Type: []string{"integer"}, 6481 Format: "int32", 6482 }, 6483 }, 6484 "wireguardMTUV6": { 6485 SchemaProps: spec.SchemaProps{ 6486 Description: "WireguardMTUV6 controls the MTU on the IPv6 Wireguard interface. See Configuring MTU [Default: 1420]", 6487 Type: []string{"integer"}, 6488 Format: "int32", 6489 }, 6490 }, 6491 "wireguardHostEncryptionEnabled": { 6492 SchemaProps: spec.SchemaProps{ 6493 Description: "WireguardHostEncryptionEnabled controls whether Wireguard host-to-host encryption is enabled. [Default: false]", 6494 Type: []string{"boolean"}, 6495 Format: "", 6496 }, 6497 }, 6498 "wireguardKeepAlive": { 6499 SchemaProps: spec.SchemaProps{ 6500 Description: "WireguardKeepAlive controls Wireguard PersistentKeepalive option. Set 0 to disable. [Default: 0]", 6501 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 6502 }, 6503 }, 6504 "captureDir": { 6505 SchemaProps: spec.SchemaProps{ 6506 Description: "CaptureDir controls directory to store file capture. [Default: /var/log/calico/pcap]", 6507 Type: []string{"string"}, 6508 Format: "", 6509 }, 6510 }, 6511 "captureMaxSizeBytes": { 6512 SchemaProps: spec.SchemaProps{ 6513 Description: "CaptureMaxSizeBytes controls the max size of a file capture. [Default: 10000000]", 6514 Type: []string{"integer"}, 6515 Format: "int32", 6516 }, 6517 }, 6518 "captureRotationSeconds": { 6519 SchemaProps: spec.SchemaProps{ 6520 Description: "CaptureRotationSeconds controls the time rotation of a packet capture. [Default: 3600]", 6521 Type: []string{"integer"}, 6522 Format: "int32", 6523 }, 6524 }, 6525 "captureMaxFiles": { 6526 SchemaProps: spec.SchemaProps{ 6527 Description: "CaptureMaxFiles controls number of rotated capture file to keep. [Default: 2]", 6528 Type: []string{"integer"}, 6529 Format: "int32", 6530 }, 6531 }, 6532 "awsSrcDstCheck": { 6533 SchemaProps: spec.SchemaProps{ 6534 Description: "Set source-destination-check on AWS EC2 instances. Accepted value must be one of \"DoNothing\", \"Enable\" or \"Disable\". [Default: DoNothing]", 6535 Type: []string{"string"}, 6536 Format: "", 6537 }, 6538 }, 6539 "awsSecondaryIPSupport": { 6540 SchemaProps: spec.SchemaProps{ 6541 Description: "AWSSecondaryIPSupport controls whether Felix will try to provision AWS secondary ENIs for workloads that have IPs from IP pools that are configured with an AWS subnet ID. If the field is set to \"EnabledENIPerWorkload\" then each workload with an AWS-backed IP will be assigned its own secondary ENI. If set to \"Enabled\" then each workload with an AWS-backed IP pool will be allocated a secondary IP address on a secondary ENI; this mode requires additional IP pools to be provisioned for the host to claim IPs for the primary IP of the secondary ENIs. Accepted value must be one of \"Enabled\", \"EnabledENIPerWorkload\" or \"Disabled\". [Default: Disabled]", 6542 Type: []string{"string"}, 6543 Format: "", 6544 }, 6545 }, 6546 "awsSecondaryIPRoutingRulePriority": { 6547 SchemaProps: spec.SchemaProps{ 6548 Description: "AWSSecondaryIPRoutingRulePriority controls the priority that Felix will use for routing rules when programming them for AWS Secondary IP support. [Default: 101]", 6549 Type: []string{"integer"}, 6550 Format: "int32", 6551 }, 6552 }, 6553 "awsRequestTimeout": { 6554 SchemaProps: spec.SchemaProps{ 6555 Description: "AWSRequestTimeout is the timeout on AWS API requests. [Default: 30s]", 6556 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 6557 }, 6558 }, 6559 "serviceLoopPrevention": { 6560 SchemaProps: spec.SchemaProps{ 6561 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]", 6562 Type: []string{"string"}, 6563 Format: "", 6564 }, 6565 }, 6566 "workloadSourceSpoofing": { 6567 SchemaProps: spec.SchemaProps{ 6568 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.", 6569 Type: []string{"string"}, 6570 Format: "", 6571 }, 6572 }, 6573 "mtuIfacePattern": { 6574 SchemaProps: spec.SchemaProps{ 6575 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...).", 6576 Type: []string{"string"}, 6577 Format: "", 6578 }, 6579 }, 6580 "tproxyMode": { 6581 SchemaProps: spec.SchemaProps{ 6582 Description: "TPROXYMode sets whether traffic is directed through a transparent proxy for further processing or not and how is the proxying done. [Default: Disabled]", 6583 Type: []string{"string"}, 6584 Format: "", 6585 }, 6586 }, 6587 "tproxyPort": { 6588 SchemaProps: spec.SchemaProps{ 6589 Description: "TPROXYPort sets to which port proxied traffic should be redirected. [Default: 16001]", 6590 Type: []string{"integer"}, 6591 Format: "int32", 6592 }, 6593 }, 6594 "tproxyUpstreamConnMark": { 6595 SchemaProps: spec.SchemaProps{ 6596 Description: "TPROXYUpstreamConnMark tells Felix which mark is used by the proxy for its upstream connections so that Felix can program the dataplane correctly. [Default: 0x17]", 6597 Type: []string{"integer"}, 6598 Format: "int64", 6599 }, 6600 }, 6601 "floatingIPs": { 6602 SchemaProps: spec.SchemaProps{ 6603 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.)", 6604 Type: []string{"string"}, 6605 Format: "", 6606 }, 6607 }, 6608 "windowsManageFirewallRules": { 6609 SchemaProps: spec.SchemaProps{ 6610 Description: "WindowsManageFirewallRules configures whether or not Felix will program Windows Firewall rules. (to allow inbound access to its own metrics ports) [Default: Disabled]", 6611 Type: []string{"string"}, 6612 Format: "", 6613 }, 6614 }, 6615 }, 6616 }, 6617 }, 6618 Dependencies: []string{ 6619 "github.com/tigera/api/pkg/apis/projectcalico/v3.HealthTimeoutOverride", "github.com/tigera/api/pkg/apis/projectcalico/v3.ProtoPort", "github.com/tigera/api/pkg/apis/projectcalico/v3.RouteTableIDRange", "github.com/tigera/api/pkg/apis/projectcalico/v3.RouteTableRange", "github.com/tigera/api/pkg/lib/numorstring.Port", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration"}, 6620 } 6621 } 6622 6623 func schema_pkg_apis_projectcalico_v3_FlowEndpoint(ref common.ReferenceCallback) common.OpenAPIDefinition { 6624 return common.OpenAPIDefinition{ 6625 Schema: spec.Schema{ 6626 SchemaProps: spec.SchemaProps{ 6627 Type: []string{"object"}, 6628 Properties: map[string]spec.Schema{ 6629 "kind": { 6630 SchemaProps: spec.SchemaProps{ 6631 Description: "The endpoint type, indicating whether this is a Pod, HostEndpoint, NetworkSet, or internet.", 6632 Default: "", 6633 Type: []string{"string"}, 6634 Format: "", 6635 }, 6636 }, 6637 "name": { 6638 SchemaProps: spec.SchemaProps{ 6639 Description: "The name of the endpoint. Note that this name may actually be a name prefix if flow logs have been aggregated.", 6640 Default: "", 6641 Type: []string{"string"}, 6642 Format: "", 6643 }, 6644 }, 6645 "nameIsAggregationPrefix": { 6646 SchemaProps: spec.SchemaProps{ 6647 Description: "Whether the name is an aggregation prefix rather than the actual name.", 6648 Type: []string{"boolean"}, 6649 Format: "", 6650 }, 6651 }, 6652 "namespace": { 6653 SchemaProps: spec.SchemaProps{ 6654 Description: "The namespace of the endpoint.", 6655 Type: []string{"string"}, 6656 Format: "", 6657 }, 6658 }, 6659 }, 6660 Required: []string{"kind", "name"}, 6661 }, 6662 }, 6663 } 6664 } 6665 6666 func schema_pkg_apis_projectcalico_v3_GlobalAlert(ref common.ReferenceCallback) common.OpenAPIDefinition { 6667 return common.OpenAPIDefinition{ 6668 Schema: spec.Schema{ 6669 SchemaProps: spec.SchemaProps{ 6670 Type: []string{"object"}, 6671 Properties: map[string]spec.Schema{ 6672 "kind": { 6673 SchemaProps: spec.SchemaProps{ 6674 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 6675 Type: []string{"string"}, 6676 Format: "", 6677 }, 6678 }, 6679 "apiVersion": { 6680 SchemaProps: spec.SchemaProps{ 6681 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 6682 Type: []string{"string"}, 6683 Format: "", 6684 }, 6685 }, 6686 "metadata": { 6687 SchemaProps: spec.SchemaProps{ 6688 Description: "Standard object's metadata.", 6689 Default: map[string]interface{}{}, 6690 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 6691 }, 6692 }, 6693 "spec": { 6694 SchemaProps: spec.SchemaProps{ 6695 Description: "Specification of the GlobalAlert.", 6696 Default: map[string]interface{}{}, 6697 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalAlertSpec"), 6698 }, 6699 }, 6700 "status": { 6701 SchemaProps: spec.SchemaProps{ 6702 Default: map[string]interface{}{}, 6703 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalAlertStatus"), 6704 }, 6705 }, 6706 }, 6707 }, 6708 }, 6709 Dependencies: []string{ 6710 "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalAlertSpec", "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalAlertStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 6711 } 6712 } 6713 6714 func schema_pkg_apis_projectcalico_v3_GlobalAlertList(ref common.ReferenceCallback) common.OpenAPIDefinition { 6715 return common.OpenAPIDefinition{ 6716 Schema: spec.Schema{ 6717 SchemaProps: spec.SchemaProps{ 6718 Description: "GlobalAlertList contains a list of GlobalAlert resources.", 6719 Type: []string{"object"}, 6720 Properties: map[string]spec.Schema{ 6721 "kind": { 6722 SchemaProps: spec.SchemaProps{ 6723 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 6724 Type: []string{"string"}, 6725 Format: "", 6726 }, 6727 }, 6728 "apiVersion": { 6729 SchemaProps: spec.SchemaProps{ 6730 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 6731 Type: []string{"string"}, 6732 Format: "", 6733 }, 6734 }, 6735 "metadata": { 6736 SchemaProps: spec.SchemaProps{ 6737 Default: map[string]interface{}{}, 6738 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 6739 }, 6740 }, 6741 "items": { 6742 SchemaProps: spec.SchemaProps{ 6743 Type: []string{"array"}, 6744 Items: &spec.SchemaOrArray{ 6745 Schema: &spec.Schema{ 6746 SchemaProps: spec.SchemaProps{ 6747 Default: map[string]interface{}{}, 6748 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalAlert"), 6749 }, 6750 }, 6751 }, 6752 }, 6753 }, 6754 }, 6755 Required: []string{"metadata", "items"}, 6756 }, 6757 }, 6758 Dependencies: []string{ 6759 "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalAlert", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 6760 } 6761 } 6762 6763 func schema_pkg_apis_projectcalico_v3_GlobalAlertSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 6764 return common.OpenAPIDefinition{ 6765 Schema: spec.Schema{ 6766 SchemaProps: spec.SchemaProps{ 6767 Type: []string{"object"}, 6768 Properties: map[string]spec.Schema{ 6769 "type": { 6770 SchemaProps: spec.SchemaProps{ 6771 Description: "Type will dictate how the fields of the GlobalAlert will be utilized. Each Type will have different usages and defaults for the fields. [Default: RuleBased]", 6772 Type: []string{"string"}, 6773 Format: "", 6774 }, 6775 }, 6776 "summary": { 6777 SchemaProps: spec.SchemaProps{ 6778 Description: "Template for the description field in generated events, description is used if this is omitted.", 6779 Type: []string{"string"}, 6780 Format: "", 6781 }, 6782 }, 6783 "description": { 6784 SchemaProps: spec.SchemaProps{ 6785 Description: "Human-readable description of the template.", 6786 Default: "", 6787 Type: []string{"string"}, 6788 Format: "", 6789 }, 6790 }, 6791 "severity": { 6792 SchemaProps: spec.SchemaProps{ 6793 Description: "Severity of the alert for display in Manager.", 6794 Default: 0, 6795 Type: []string{"integer"}, 6796 Format: "int32", 6797 }, 6798 }, 6799 "period": { 6800 SchemaProps: spec.SchemaProps{ 6801 Description: "If Type is RuleBased, it is how often the query defined will run. If Type is AnomalyDetection it is how often the detector will be run.", 6802 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 6803 }, 6804 }, 6805 "lookback": { 6806 SchemaProps: spec.SchemaProps{ 6807 Description: "How much data to gather at once. If Type is RuleBased, it must exceed audit log flush interval, dnsLogsFlushInterval, or flowLogsFlushInterval as appropriate.", 6808 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 6809 }, 6810 }, 6811 "dataSet": { 6812 SchemaProps: spec.SchemaProps{ 6813 Description: "DataSet determines which dataset type the Query will use. Required and used only if Type is RuleBased.", 6814 Type: []string{"string"}, 6815 Format: "", 6816 }, 6817 }, 6818 "query": { 6819 SchemaProps: spec.SchemaProps{ 6820 Description: "Which data to include from the source data set. Written in a domain-specific query language. Only used if Type is RuleBased.", 6821 Type: []string{"string"}, 6822 Format: "", 6823 }, 6824 }, 6825 "aggregateBy": { 6826 SchemaProps: spec.SchemaProps{ 6827 Description: "An optional list of fields to aggregate results. Only used if Type is RuleBased.", 6828 Type: []string{"array"}, 6829 Items: &spec.SchemaOrArray{ 6830 Schema: &spec.Schema{ 6831 SchemaProps: spec.SchemaProps{ 6832 Default: "", 6833 Type: []string{"string"}, 6834 Format: "", 6835 }, 6836 }, 6837 }, 6838 }, 6839 }, 6840 "field": { 6841 SchemaProps: spec.SchemaProps{ 6842 Description: "Which field to aggregate results by if using a metric other than count. Only used if Type is RuleBased.", 6843 Type: []string{"string"}, 6844 Format: "", 6845 }, 6846 }, 6847 "metric": { 6848 SchemaProps: spec.SchemaProps{ 6849 Description: "A metric to apply to aggregated results. count is the number of log entries matching the aggregation pattern. Others are applied only to numeric fields in the logs. Only used if Type is RuleBased.", 6850 Type: []string{"string"}, 6851 Format: "", 6852 }, 6853 }, 6854 "condition": { 6855 SchemaProps: spec.SchemaProps{ 6856 Description: "Compare the value of the metric to the threshold using this condition. Only used if Type is RuleBased.", 6857 Type: []string{"string"}, 6858 Format: "", 6859 }, 6860 }, 6861 "threshold": { 6862 SchemaProps: spec.SchemaProps{ 6863 Description: "A numeric value to compare the value of the metric against. Only used if Type is RuleBased.", 6864 Type: []string{"number"}, 6865 Format: "double", 6866 }, 6867 }, 6868 "substitutions": { 6869 SchemaProps: spec.SchemaProps{ 6870 Description: "An optional list of values to replace variable names in query. Only used if Type is RuleBased.", 6871 Type: []string{"array"}, 6872 Items: &spec.SchemaOrArray{ 6873 Schema: &spec.Schema{ 6874 SchemaProps: spec.SchemaProps{ 6875 Default: map[string]interface{}{}, 6876 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalAlertSubstitution"), 6877 }, 6878 }, 6879 }, 6880 }, 6881 }, 6882 "detector": { 6883 SchemaProps: spec.SchemaProps{ 6884 Description: "Parameters for configuring an AnomalyDetection run. Only used if Type is AnomalyDetection.", 6885 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.DetectorParams"), 6886 }, 6887 }, 6888 }, 6889 Required: []string{"description", "severity"}, 6890 }, 6891 }, 6892 Dependencies: []string{ 6893 "github.com/tigera/api/pkg/apis/projectcalico/v3.DetectorParams", "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalAlertSubstitution", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration"}, 6894 } 6895 } 6896 6897 func schema_pkg_apis_projectcalico_v3_GlobalAlertStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 6898 return common.OpenAPIDefinition{ 6899 Schema: spec.Schema{ 6900 SchemaProps: spec.SchemaProps{ 6901 Type: []string{"object"}, 6902 Properties: map[string]spec.Schema{ 6903 "lastUpdate": { 6904 SchemaProps: spec.SchemaProps{ 6905 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 6906 }, 6907 }, 6908 "active": { 6909 SchemaProps: spec.SchemaProps{ 6910 Default: false, 6911 Type: []string{"boolean"}, 6912 Format: "", 6913 }, 6914 }, 6915 "healthy": { 6916 SchemaProps: spec.SchemaProps{ 6917 Default: false, 6918 Type: []string{"boolean"}, 6919 Format: "", 6920 }, 6921 }, 6922 "lastExecuted": { 6923 SchemaProps: spec.SchemaProps{ 6924 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 6925 }, 6926 }, 6927 "lastEvent": { 6928 SchemaProps: spec.SchemaProps{ 6929 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 6930 }, 6931 }, 6932 "errorConditions": { 6933 SchemaProps: spec.SchemaProps{ 6934 Type: []string{"array"}, 6935 Items: &spec.SchemaOrArray{ 6936 Schema: &spec.Schema{ 6937 SchemaProps: spec.SchemaProps{ 6938 Default: map[string]interface{}{}, 6939 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ErrorCondition"), 6940 }, 6941 }, 6942 }, 6943 }, 6944 }, 6945 }, 6946 Required: []string{"active", "healthy"}, 6947 }, 6948 }, 6949 Dependencies: []string{ 6950 "github.com/tigera/api/pkg/apis/projectcalico/v3.ErrorCondition", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 6951 } 6952 } 6953 6954 func schema_pkg_apis_projectcalico_v3_GlobalAlertSubstitution(ref common.ReferenceCallback) common.OpenAPIDefinition { 6955 return common.OpenAPIDefinition{ 6956 Schema: spec.Schema{ 6957 SchemaProps: spec.SchemaProps{ 6958 Description: "GlobalAlertSubstitution substitutes for the variables in the set operators of a Query.", 6959 Type: []string{"object"}, 6960 Properties: map[string]spec.Schema{ 6961 "name": { 6962 SchemaProps: spec.SchemaProps{ 6963 Default: "", 6964 Type: []string{"string"}, 6965 Format: "", 6966 }, 6967 }, 6968 "values": { 6969 SchemaProps: spec.SchemaProps{ 6970 Type: []string{"array"}, 6971 Items: &spec.SchemaOrArray{ 6972 Schema: &spec.Schema{ 6973 SchemaProps: spec.SchemaProps{ 6974 Default: "", 6975 Type: []string{"string"}, 6976 Format: "", 6977 }, 6978 }, 6979 }, 6980 }, 6981 }, 6982 }, 6983 Required: []string{"name"}, 6984 }, 6985 }, 6986 } 6987 } 6988 6989 func schema_pkg_apis_projectcalico_v3_GlobalAlertTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { 6990 return common.OpenAPIDefinition{ 6991 Schema: spec.Schema{ 6992 SchemaProps: spec.SchemaProps{ 6993 Type: []string{"object"}, 6994 Properties: map[string]spec.Schema{ 6995 "kind": { 6996 SchemaProps: spec.SchemaProps{ 6997 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 6998 Type: []string{"string"}, 6999 Format: "", 7000 }, 7001 }, 7002 "apiVersion": { 7003 SchemaProps: spec.SchemaProps{ 7004 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 7005 Type: []string{"string"}, 7006 Format: "", 7007 }, 7008 }, 7009 "metadata": { 7010 SchemaProps: spec.SchemaProps{ 7011 Description: "Standard object's metadata.", 7012 Default: map[string]interface{}{}, 7013 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 7014 }, 7015 }, 7016 "spec": { 7017 SchemaProps: spec.SchemaProps{ 7018 Description: "Specification of the GlobalAlert.", 7019 Default: map[string]interface{}{}, 7020 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalAlertSpec"), 7021 }, 7022 }, 7023 }, 7024 }, 7025 }, 7026 Dependencies: []string{ 7027 "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalAlertSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 7028 } 7029 } 7030 7031 func schema_pkg_apis_projectcalico_v3_GlobalAlertTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { 7032 return common.OpenAPIDefinition{ 7033 Schema: spec.Schema{ 7034 SchemaProps: spec.SchemaProps{ 7035 Description: "GlobalAlertList contains a list of GlobalAlert resources.", 7036 Type: []string{"object"}, 7037 Properties: map[string]spec.Schema{ 7038 "kind": { 7039 SchemaProps: spec.SchemaProps{ 7040 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 7041 Type: []string{"string"}, 7042 Format: "", 7043 }, 7044 }, 7045 "apiVersion": { 7046 SchemaProps: spec.SchemaProps{ 7047 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 7048 Type: []string{"string"}, 7049 Format: "", 7050 }, 7051 }, 7052 "metadata": { 7053 SchemaProps: spec.SchemaProps{ 7054 Default: map[string]interface{}{}, 7055 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 7056 }, 7057 }, 7058 "items": { 7059 SchemaProps: spec.SchemaProps{ 7060 Type: []string{"array"}, 7061 Items: &spec.SchemaOrArray{ 7062 Schema: &spec.Schema{ 7063 SchemaProps: spec.SchemaProps{ 7064 Default: map[string]interface{}{}, 7065 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalAlertTemplate"), 7066 }, 7067 }, 7068 }, 7069 }, 7070 }, 7071 }, 7072 Required: []string{"metadata", "items"}, 7073 }, 7074 }, 7075 Dependencies: []string{ 7076 "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalAlertTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 7077 } 7078 } 7079 7080 func schema_pkg_apis_projectcalico_v3_GlobalNetworkPolicy(ref common.ReferenceCallback) common.OpenAPIDefinition { 7081 return common.OpenAPIDefinition{ 7082 Schema: spec.Schema{ 7083 SchemaProps: spec.SchemaProps{ 7084 Type: []string{"object"}, 7085 Properties: map[string]spec.Schema{ 7086 "kind": { 7087 SchemaProps: spec.SchemaProps{ 7088 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 7089 Type: []string{"string"}, 7090 Format: "", 7091 }, 7092 }, 7093 "apiVersion": { 7094 SchemaProps: spec.SchemaProps{ 7095 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 7096 Type: []string{"string"}, 7097 Format: "", 7098 }, 7099 }, 7100 "metadata": { 7101 SchemaProps: spec.SchemaProps{ 7102 Default: map[string]interface{}{}, 7103 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 7104 }, 7105 }, 7106 "spec": { 7107 SchemaProps: spec.SchemaProps{ 7108 Default: map[string]interface{}{}, 7109 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalNetworkPolicySpec"), 7110 }, 7111 }, 7112 }, 7113 }, 7114 }, 7115 Dependencies: []string{ 7116 "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalNetworkPolicySpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 7117 } 7118 } 7119 7120 func schema_pkg_apis_projectcalico_v3_GlobalNetworkPolicyList(ref common.ReferenceCallback) common.OpenAPIDefinition { 7121 return common.OpenAPIDefinition{ 7122 Schema: spec.Schema{ 7123 SchemaProps: spec.SchemaProps{ 7124 Description: "GlobalNetworkPolicyList is a list of Policy objects.", 7125 Type: []string{"object"}, 7126 Properties: map[string]spec.Schema{ 7127 "kind": { 7128 SchemaProps: spec.SchemaProps{ 7129 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 7130 Type: []string{"string"}, 7131 Format: "", 7132 }, 7133 }, 7134 "apiVersion": { 7135 SchemaProps: spec.SchemaProps{ 7136 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 7137 Type: []string{"string"}, 7138 Format: "", 7139 }, 7140 }, 7141 "metadata": { 7142 SchemaProps: spec.SchemaProps{ 7143 Default: map[string]interface{}{}, 7144 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 7145 }, 7146 }, 7147 "items": { 7148 SchemaProps: spec.SchemaProps{ 7149 Type: []string{"array"}, 7150 Items: &spec.SchemaOrArray{ 7151 Schema: &spec.Schema{ 7152 SchemaProps: spec.SchemaProps{ 7153 Default: map[string]interface{}{}, 7154 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalNetworkPolicy"), 7155 }, 7156 }, 7157 }, 7158 }, 7159 }, 7160 }, 7161 Required: []string{"items"}, 7162 }, 7163 }, 7164 Dependencies: []string{ 7165 "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalNetworkPolicy", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 7166 } 7167 } 7168 7169 func schema_pkg_apis_projectcalico_v3_GlobalNetworkPolicySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 7170 return common.OpenAPIDefinition{ 7171 Schema: spec.Schema{ 7172 SchemaProps: spec.SchemaProps{ 7173 Type: []string{"object"}, 7174 Properties: map[string]spec.Schema{ 7175 "tier": { 7176 SchemaProps: spec.SchemaProps{ 7177 Description: "The name of the tier that this policy belongs to. If this is omitted, the default tier (name is \"default\") is assumed. The specified tier must exist in order to create security policies within the tier, the \"default\" tier is created automatically if it does not exist, this means for deployments requiring only a single Tier, the tier name may be omitted on all policy management requests.", 7178 Type: []string{"string"}, 7179 Format: "", 7180 }, 7181 }, 7182 "order": { 7183 SchemaProps: spec.SchemaProps{ 7184 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 within the same tier. 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\" within the tier.", 7185 Type: []string{"number"}, 7186 Format: "double", 7187 }, 7188 }, 7189 "ingress": { 7190 SchemaProps: spec.SchemaProps{ 7191 Description: "The ordered set of ingress rules. Each rule contains a set of packet match criteria and a corresponding action to apply.", 7192 Type: []string{"array"}, 7193 Items: &spec.SchemaOrArray{ 7194 Schema: &spec.Schema{ 7195 SchemaProps: spec.SchemaProps{ 7196 Default: map[string]interface{}{}, 7197 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.Rule"), 7198 }, 7199 }, 7200 }, 7201 }, 7202 }, 7203 "egress": { 7204 SchemaProps: spec.SchemaProps{ 7205 Description: "The ordered set of egress rules. Each rule contains a set of packet match criteria and a corresponding action to apply.", 7206 Type: []string{"array"}, 7207 Items: &spec.SchemaOrArray{ 7208 Schema: &spec.Schema{ 7209 SchemaProps: spec.SchemaProps{ 7210 Default: map[string]interface{}{}, 7211 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.Rule"), 7212 }, 7213 }, 7214 }, 7215 }, 7216 }, 7217 "selector": { 7218 SchemaProps: spec.SchemaProps{ 7219 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)", 7220 Type: []string{"string"}, 7221 Format: "", 7222 }, 7223 }, 7224 "types": { 7225 SchemaProps: spec.SchemaProps{ 7226 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.", 7227 Type: []string{"array"}, 7228 Items: &spec.SchemaOrArray{ 7229 Schema: &spec.Schema{ 7230 SchemaProps: spec.SchemaProps{ 7231 Default: "", 7232 Type: []string{"string"}, 7233 Format: "", 7234 }, 7235 }, 7236 }, 7237 }, 7238 }, 7239 "doNotTrack": { 7240 SchemaProps: spec.SchemaProps{ 7241 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.", 7242 Type: []string{"boolean"}, 7243 Format: "", 7244 }, 7245 }, 7246 "preDNAT": { 7247 SchemaProps: spec.SchemaProps{ 7248 Description: "PreDNAT indicates to apply the rules in this policy before any DNAT.", 7249 Type: []string{"boolean"}, 7250 Format: "", 7251 }, 7252 }, 7253 "applyOnForward": { 7254 SchemaProps: spec.SchemaProps{ 7255 Description: "ApplyOnForward indicates to apply the rules in this policy on forward traffic.", 7256 Type: []string{"boolean"}, 7257 Format: "", 7258 }, 7259 }, 7260 "serviceAccountSelector": { 7261 SchemaProps: spec.SchemaProps{ 7262 Description: "ServiceAccountSelector is an optional field for an expression used to select a pod based on service accounts.", 7263 Type: []string{"string"}, 7264 Format: "", 7265 }, 7266 }, 7267 "namespaceSelector": { 7268 SchemaProps: spec.SchemaProps{ 7269 Description: "NamespaceSelector is an optional field for an expression used to select a pod based on namespaces.", 7270 Type: []string{"string"}, 7271 Format: "", 7272 }, 7273 }, 7274 "performanceHints": { 7275 SchemaProps: spec.SchemaProps{ 7276 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.", 7277 Type: []string{"array"}, 7278 Items: &spec.SchemaOrArray{ 7279 Schema: &spec.Schema{ 7280 SchemaProps: spec.SchemaProps{ 7281 Default: "", 7282 Type: []string{"string"}, 7283 Format: "", 7284 }, 7285 }, 7286 }, 7287 }, 7288 }, 7289 }, 7290 }, 7291 }, 7292 Dependencies: []string{ 7293 "github.com/tigera/api/pkg/apis/projectcalico/v3.Rule"}, 7294 } 7295 } 7296 7297 func schema_pkg_apis_projectcalico_v3_GlobalNetworkSet(ref common.ReferenceCallback) common.OpenAPIDefinition { 7298 return common.OpenAPIDefinition{ 7299 Schema: spec.Schema{ 7300 SchemaProps: spec.SchemaProps{ 7301 Description: "GlobalNetworkSet contains a set of arbitrary IP sub-networks/CIDRs and domain names that share labels to allow rules to refer to them via selectors. The labels of GlobalNetworkSet are not namespaced.", 7302 Type: []string{"object"}, 7303 Properties: map[string]spec.Schema{ 7304 "kind": { 7305 SchemaProps: spec.SchemaProps{ 7306 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 7307 Type: []string{"string"}, 7308 Format: "", 7309 }, 7310 }, 7311 "apiVersion": { 7312 SchemaProps: spec.SchemaProps{ 7313 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 7314 Type: []string{"string"}, 7315 Format: "", 7316 }, 7317 }, 7318 "metadata": { 7319 SchemaProps: spec.SchemaProps{ 7320 Default: map[string]interface{}{}, 7321 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 7322 }, 7323 }, 7324 "spec": { 7325 SchemaProps: spec.SchemaProps{ 7326 Default: map[string]interface{}{}, 7327 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalNetworkSetSpec"), 7328 }, 7329 }, 7330 }, 7331 }, 7332 }, 7333 Dependencies: []string{ 7334 "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalNetworkSetSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 7335 } 7336 } 7337 7338 func schema_pkg_apis_projectcalico_v3_GlobalNetworkSetList(ref common.ReferenceCallback) common.OpenAPIDefinition { 7339 return common.OpenAPIDefinition{ 7340 Schema: spec.Schema{ 7341 SchemaProps: spec.SchemaProps{ 7342 Description: "GlobalNetworkSetList is a list of NetworkSet objects.", 7343 Type: []string{"object"}, 7344 Properties: map[string]spec.Schema{ 7345 "kind": { 7346 SchemaProps: spec.SchemaProps{ 7347 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 7348 Type: []string{"string"}, 7349 Format: "", 7350 }, 7351 }, 7352 "apiVersion": { 7353 SchemaProps: spec.SchemaProps{ 7354 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 7355 Type: []string{"string"}, 7356 Format: "", 7357 }, 7358 }, 7359 "metadata": { 7360 SchemaProps: spec.SchemaProps{ 7361 Default: map[string]interface{}{}, 7362 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 7363 }, 7364 }, 7365 "items": { 7366 SchemaProps: spec.SchemaProps{ 7367 Type: []string{"array"}, 7368 Items: &spec.SchemaOrArray{ 7369 Schema: &spec.Schema{ 7370 SchemaProps: spec.SchemaProps{ 7371 Default: map[string]interface{}{}, 7372 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalNetworkSet"), 7373 }, 7374 }, 7375 }, 7376 }, 7377 }, 7378 }, 7379 Required: []string{"items"}, 7380 }, 7381 }, 7382 Dependencies: []string{ 7383 "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalNetworkSet", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 7384 } 7385 } 7386 7387 func schema_pkg_apis_projectcalico_v3_GlobalNetworkSetSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 7388 return common.OpenAPIDefinition{ 7389 Schema: spec.Schema{ 7390 SchemaProps: spec.SchemaProps{ 7391 Description: "GlobalNetworkSetSpec contains the specification for a NetworkSet resource.", 7392 Type: []string{"object"}, 7393 Properties: map[string]spec.Schema{ 7394 "nets": { 7395 SchemaProps: spec.SchemaProps{ 7396 Description: "The list of IP networks that belong to this set.", 7397 Type: []string{"array"}, 7398 Items: &spec.SchemaOrArray{ 7399 Schema: &spec.Schema{ 7400 SchemaProps: spec.SchemaProps{ 7401 Default: "", 7402 Type: []string{"string"}, 7403 Format: "", 7404 }, 7405 }, 7406 }, 7407 }, 7408 }, 7409 "allowedEgressDomains": { 7410 SchemaProps: spec.SchemaProps{ 7411 Description: "The list of domain names that belong to this set and are honored in egress allow rules only. Domain names specified here only work to allow egress traffic from the cluster to external destinations. They don't work to _deny_ traffic to destinations specified by domain name, or to allow ingress traffic from _sources_ specified by domain name.", 7412 Type: []string{"array"}, 7413 Items: &spec.SchemaOrArray{ 7414 Schema: &spec.Schema{ 7415 SchemaProps: spec.SchemaProps{ 7416 Default: "", 7417 Type: []string{"string"}, 7418 Format: "", 7419 }, 7420 }, 7421 }, 7422 }, 7423 }, 7424 }, 7425 }, 7426 }, 7427 } 7428 } 7429 7430 func schema_pkg_apis_projectcalico_v3_GlobalNetworkSetSync(ref common.ReferenceCallback) common.OpenAPIDefinition { 7431 return common.OpenAPIDefinition{ 7432 Schema: spec.Schema{ 7433 SchemaProps: spec.SchemaProps{ 7434 Type: []string{"object"}, 7435 Properties: map[string]spec.Schema{ 7436 "labels": { 7437 SchemaProps: spec.SchemaProps{ 7438 Type: []string{"object"}, 7439 AdditionalProperties: &spec.SchemaOrBool{ 7440 Allows: true, 7441 Schema: &spec.Schema{ 7442 SchemaProps: spec.SchemaProps{ 7443 Default: "", 7444 Type: []string{"string"}, 7445 Format: "", 7446 }, 7447 }, 7448 }, 7449 }, 7450 }, 7451 }, 7452 }, 7453 }, 7454 } 7455 } 7456 7457 func schema_pkg_apis_projectcalico_v3_GlobalReport(ref common.ReferenceCallback) common.OpenAPIDefinition { 7458 return common.OpenAPIDefinition{ 7459 Schema: spec.Schema{ 7460 SchemaProps: spec.SchemaProps{ 7461 Description: "GlobalReport contains the configuration for a non-namespaced Report.", 7462 Type: []string{"object"}, 7463 Properties: map[string]spec.Schema{ 7464 "kind": { 7465 SchemaProps: spec.SchemaProps{ 7466 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 7467 Type: []string{"string"}, 7468 Format: "", 7469 }, 7470 }, 7471 "apiVersion": { 7472 SchemaProps: spec.SchemaProps{ 7473 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 7474 Type: []string{"string"}, 7475 Format: "", 7476 }, 7477 }, 7478 "metadata": { 7479 SchemaProps: spec.SchemaProps{ 7480 Description: "Standard object's metadata.", 7481 Default: map[string]interface{}{}, 7482 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 7483 }, 7484 }, 7485 "spec": { 7486 SchemaProps: spec.SchemaProps{ 7487 Description: "Specification of the GlobalReport.", 7488 Default: map[string]interface{}{}, 7489 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ReportSpec"), 7490 }, 7491 }, 7492 "status": { 7493 SchemaProps: spec.SchemaProps{ 7494 Default: map[string]interface{}{}, 7495 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ReportStatus"), 7496 }, 7497 }, 7498 }, 7499 }, 7500 }, 7501 Dependencies: []string{ 7502 "github.com/tigera/api/pkg/apis/projectcalico/v3.ReportSpec", "github.com/tigera/api/pkg/apis/projectcalico/v3.ReportStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 7503 } 7504 } 7505 7506 func schema_pkg_apis_projectcalico_v3_GlobalReportList(ref common.ReferenceCallback) common.OpenAPIDefinition { 7507 return common.OpenAPIDefinition{ 7508 Schema: spec.Schema{ 7509 SchemaProps: spec.SchemaProps{ 7510 Description: "GlobalReportList contains a list of GlobalReport resources.", 7511 Type: []string{"object"}, 7512 Properties: map[string]spec.Schema{ 7513 "kind": { 7514 SchemaProps: spec.SchemaProps{ 7515 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 7516 Type: []string{"string"}, 7517 Format: "", 7518 }, 7519 }, 7520 "apiVersion": { 7521 SchemaProps: spec.SchemaProps{ 7522 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 7523 Type: []string{"string"}, 7524 Format: "", 7525 }, 7526 }, 7527 "metadata": { 7528 SchemaProps: spec.SchemaProps{ 7529 Default: map[string]interface{}{}, 7530 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 7531 }, 7532 }, 7533 "items": { 7534 SchemaProps: spec.SchemaProps{ 7535 Type: []string{"array"}, 7536 Items: &spec.SchemaOrArray{ 7537 Schema: &spec.Schema{ 7538 SchemaProps: spec.SchemaProps{ 7539 Default: map[string]interface{}{}, 7540 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalReport"), 7541 }, 7542 }, 7543 }, 7544 }, 7545 }, 7546 }, 7547 Required: []string{"metadata", "items"}, 7548 }, 7549 }, 7550 Dependencies: []string{ 7551 "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalReport", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 7552 } 7553 } 7554 7555 func schema_pkg_apis_projectcalico_v3_GlobalReportType(ref common.ReferenceCallback) common.OpenAPIDefinition { 7556 return common.OpenAPIDefinition{ 7557 Schema: spec.Schema{ 7558 SchemaProps: spec.SchemaProps{ 7559 Description: "GlobalReportType contains the configuration for a non-namespaced report type.", 7560 Type: []string{"object"}, 7561 Properties: map[string]spec.Schema{ 7562 "kind": { 7563 SchemaProps: spec.SchemaProps{ 7564 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 7565 Type: []string{"string"}, 7566 Format: "", 7567 }, 7568 }, 7569 "apiVersion": { 7570 SchemaProps: spec.SchemaProps{ 7571 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 7572 Type: []string{"string"}, 7573 Format: "", 7574 }, 7575 }, 7576 "metadata": { 7577 SchemaProps: spec.SchemaProps{ 7578 Description: "Standard object's metadata.", 7579 Default: map[string]interface{}{}, 7580 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 7581 }, 7582 }, 7583 "spec": { 7584 SchemaProps: spec.SchemaProps{ 7585 Description: "Specification of the GlobalReport.", 7586 Default: map[string]interface{}{}, 7587 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ReportTypeSpec"), 7588 }, 7589 }, 7590 }, 7591 }, 7592 }, 7593 Dependencies: []string{ 7594 "github.com/tigera/api/pkg/apis/projectcalico/v3.ReportTypeSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 7595 } 7596 } 7597 7598 func schema_pkg_apis_projectcalico_v3_GlobalReportTypeList(ref common.ReferenceCallback) common.OpenAPIDefinition { 7599 return common.OpenAPIDefinition{ 7600 Schema: spec.Schema{ 7601 SchemaProps: spec.SchemaProps{ 7602 Description: "GlobalReportTypeList contains a list of GlobalReportType resources.", 7603 Type: []string{"object"}, 7604 Properties: map[string]spec.Schema{ 7605 "kind": { 7606 SchemaProps: spec.SchemaProps{ 7607 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 7608 Type: []string{"string"}, 7609 Format: "", 7610 }, 7611 }, 7612 "apiVersion": { 7613 SchemaProps: spec.SchemaProps{ 7614 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 7615 Type: []string{"string"}, 7616 Format: "", 7617 }, 7618 }, 7619 "metadata": { 7620 SchemaProps: spec.SchemaProps{ 7621 Default: map[string]interface{}{}, 7622 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 7623 }, 7624 }, 7625 "items": { 7626 SchemaProps: spec.SchemaProps{ 7627 Type: []string{"array"}, 7628 Items: &spec.SchemaOrArray{ 7629 Schema: &spec.Schema{ 7630 SchemaProps: spec.SchemaProps{ 7631 Default: map[string]interface{}{}, 7632 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalReportType"), 7633 }, 7634 }, 7635 }, 7636 }, 7637 }, 7638 }, 7639 Required: []string{"metadata", "items"}, 7640 }, 7641 }, 7642 Dependencies: []string{ 7643 "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalReportType", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 7644 } 7645 } 7646 7647 func schema_pkg_apis_projectcalico_v3_GlobalThreatFeed(ref common.ReferenceCallback) common.OpenAPIDefinition { 7648 return common.OpenAPIDefinition{ 7649 Schema: spec.Schema{ 7650 SchemaProps: spec.SchemaProps{ 7651 Description: "GlobalThreatFeed is a source of intel for possible threats to the cluster. This object configures how Tigera components communicate with the feed and update detection jobs or policy based on the intel.", 7652 Type: []string{"object"}, 7653 Properties: map[string]spec.Schema{ 7654 "kind": { 7655 SchemaProps: spec.SchemaProps{ 7656 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 7657 Type: []string{"string"}, 7658 Format: "", 7659 }, 7660 }, 7661 "apiVersion": { 7662 SchemaProps: spec.SchemaProps{ 7663 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 7664 Type: []string{"string"}, 7665 Format: "", 7666 }, 7667 }, 7668 "metadata": { 7669 SchemaProps: spec.SchemaProps{ 7670 Description: "Standard object's metadata.", 7671 Default: map[string]interface{}{}, 7672 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 7673 }, 7674 }, 7675 "spec": { 7676 SchemaProps: spec.SchemaProps{ 7677 Description: "Specification of the GlobalThreatFeed.", 7678 Default: map[string]interface{}{}, 7679 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalThreatFeedSpec"), 7680 }, 7681 }, 7682 "status": { 7683 SchemaProps: spec.SchemaProps{ 7684 Default: map[string]interface{}{}, 7685 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalThreatFeedStatus"), 7686 }, 7687 }, 7688 }, 7689 }, 7690 }, 7691 Dependencies: []string{ 7692 "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalThreatFeedSpec", "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalThreatFeedStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 7693 } 7694 } 7695 7696 func schema_pkg_apis_projectcalico_v3_GlobalThreatFeedList(ref common.ReferenceCallback) common.OpenAPIDefinition { 7697 return common.OpenAPIDefinition{ 7698 Schema: spec.Schema{ 7699 SchemaProps: spec.SchemaProps{ 7700 Description: "GlobalThreatFeedList contains a list of GlobalThreatFeed resources.", 7701 Type: []string{"object"}, 7702 Properties: map[string]spec.Schema{ 7703 "kind": { 7704 SchemaProps: spec.SchemaProps{ 7705 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 7706 Type: []string{"string"}, 7707 Format: "", 7708 }, 7709 }, 7710 "apiVersion": { 7711 SchemaProps: spec.SchemaProps{ 7712 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 7713 Type: []string{"string"}, 7714 Format: "", 7715 }, 7716 }, 7717 "metadata": { 7718 SchemaProps: spec.SchemaProps{ 7719 Default: map[string]interface{}{}, 7720 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 7721 }, 7722 }, 7723 "items": { 7724 SchemaProps: spec.SchemaProps{ 7725 Type: []string{"array"}, 7726 Items: &spec.SchemaOrArray{ 7727 Schema: &spec.Schema{ 7728 SchemaProps: spec.SchemaProps{ 7729 Default: map[string]interface{}{}, 7730 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalThreatFeed"), 7731 }, 7732 }, 7733 }, 7734 }, 7735 }, 7736 }, 7737 Required: []string{"metadata", "items"}, 7738 }, 7739 }, 7740 Dependencies: []string{ 7741 "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalThreatFeed", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 7742 } 7743 } 7744 7745 func schema_pkg_apis_projectcalico_v3_GlobalThreatFeedSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 7746 return common.OpenAPIDefinition{ 7747 Schema: spec.Schema{ 7748 SchemaProps: spec.SchemaProps{ 7749 Description: "GlobalThreatFeedSpec contains the specification of a GlobalThreatFeed resource.", 7750 Type: []string{"object"}, 7751 Properties: map[string]spec.Schema{ 7752 "content": { 7753 SchemaProps: spec.SchemaProps{ 7754 Description: "Content describes the kind of data the data feed provides.", 7755 Type: []string{"string"}, 7756 Format: "", 7757 }, 7758 }, 7759 "mode": { 7760 SchemaProps: spec.SchemaProps{ 7761 Description: "Determines whether the Global Threat Feed is Enabled or Disabled.", 7762 Type: []string{"string"}, 7763 Format: "", 7764 }, 7765 }, 7766 "description": { 7767 SchemaProps: spec.SchemaProps{ 7768 Description: "Human-readable description of the template.", 7769 Type: []string{"string"}, 7770 Format: "", 7771 }, 7772 }, 7773 "feedType": { 7774 SchemaProps: spec.SchemaProps{ 7775 Description: "Distinguishes between Builtin Global Threat Feeds and Custom feed types.", 7776 Type: []string{"string"}, 7777 Format: "", 7778 }, 7779 }, 7780 "globalNetworkSet": { 7781 SchemaProps: spec.SchemaProps{ 7782 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalNetworkSetSync"), 7783 }, 7784 }, 7785 "pull": { 7786 SchemaProps: spec.SchemaProps{ 7787 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.Pull"), 7788 }, 7789 }, 7790 }, 7791 }, 7792 }, 7793 Dependencies: []string{ 7794 "github.com/tigera/api/pkg/apis/projectcalico/v3.GlobalNetworkSetSync", "github.com/tigera/api/pkg/apis/projectcalico/v3.Pull"}, 7795 } 7796 } 7797 7798 func schema_pkg_apis_projectcalico_v3_GlobalThreatFeedStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 7799 return common.OpenAPIDefinition{ 7800 Schema: spec.Schema{ 7801 SchemaProps: spec.SchemaProps{ 7802 Type: []string{"object"}, 7803 Properties: map[string]spec.Schema{ 7804 "lastSuccessfulSync": { 7805 SchemaProps: spec.SchemaProps{ 7806 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 7807 }, 7808 }, 7809 "lastSuccessfulSearch": { 7810 SchemaProps: spec.SchemaProps{ 7811 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 7812 }, 7813 }, 7814 "errorConditions": { 7815 SchemaProps: spec.SchemaProps{ 7816 Type: []string{"array"}, 7817 Items: &spec.SchemaOrArray{ 7818 Schema: &spec.Schema{ 7819 SchemaProps: spec.SchemaProps{ 7820 Default: map[string]interface{}{}, 7821 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ErrorCondition"), 7822 }, 7823 }, 7824 }, 7825 }, 7826 }, 7827 }, 7828 }, 7829 }, 7830 Dependencies: []string{ 7831 "github.com/tigera/api/pkg/apis/projectcalico/v3.ErrorCondition", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 7832 } 7833 } 7834 7835 func schema_pkg_apis_projectcalico_v3_HTTPHeader(ref common.ReferenceCallback) common.OpenAPIDefinition { 7836 return common.OpenAPIDefinition{ 7837 Schema: spec.Schema{ 7838 SchemaProps: spec.SchemaProps{ 7839 Type: []string{"object"}, 7840 Properties: map[string]spec.Schema{ 7841 "name": { 7842 SchemaProps: spec.SchemaProps{ 7843 Default: "", 7844 Type: []string{"string"}, 7845 Format: "", 7846 }, 7847 }, 7848 "value": { 7849 SchemaProps: spec.SchemaProps{ 7850 Type: []string{"string"}, 7851 Format: "", 7852 }, 7853 }, 7854 "valueFrom": { 7855 SchemaProps: spec.SchemaProps{ 7856 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.HTTPHeaderSource"), 7857 }, 7858 }, 7859 }, 7860 Required: []string{"name"}, 7861 }, 7862 }, 7863 Dependencies: []string{ 7864 "github.com/tigera/api/pkg/apis/projectcalico/v3.HTTPHeaderSource"}, 7865 } 7866 } 7867 7868 func schema_pkg_apis_projectcalico_v3_HTTPHeaderSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 7869 return common.OpenAPIDefinition{ 7870 Schema: spec.Schema{ 7871 SchemaProps: spec.SchemaProps{ 7872 Type: []string{"object"}, 7873 Properties: map[string]spec.Schema{ 7874 "configMapKeyRef": { 7875 SchemaProps: spec.SchemaProps{ 7876 Description: "Selects a key of a ConfigMap.", 7877 Ref: ref("k8s.io/api/core/v1.ConfigMapKeySelector"), 7878 }, 7879 }, 7880 "secretKeyRef": { 7881 SchemaProps: spec.SchemaProps{ 7882 Description: "Selects a key of a secret in the pod's namespace", 7883 Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), 7884 }, 7885 }, 7886 }, 7887 }, 7888 }, 7889 Dependencies: []string{ 7890 "k8s.io/api/core/v1.ConfigMapKeySelector", "k8s.io/api/core/v1.SecretKeySelector"}, 7891 } 7892 } 7893 7894 func schema_pkg_apis_projectcalico_v3_HTTPMatch(ref common.ReferenceCallback) common.OpenAPIDefinition { 7895 return common.OpenAPIDefinition{ 7896 Schema: spec.Schema{ 7897 SchemaProps: spec.SchemaProps{ 7898 Description: "HTTPMatch is an optional field that apply only to HTTP requests The Methods and Path fields are joined with AND", 7899 Type: []string{"object"}, 7900 Properties: map[string]spec.Schema{ 7901 "methods": { 7902 SchemaProps: spec.SchemaProps{ 7903 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.", 7904 Type: []string{"array"}, 7905 Items: &spec.SchemaOrArray{ 7906 Schema: &spec.Schema{ 7907 SchemaProps: spec.SchemaProps{ 7908 Default: "", 7909 Type: []string{"string"}, 7910 Format: "", 7911 }, 7912 }, 7913 }, 7914 }, 7915 }, 7916 "paths": { 7917 SchemaProps: spec.SchemaProps{ 7918 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.", 7919 Type: []string{"array"}, 7920 Items: &spec.SchemaOrArray{ 7921 Schema: &spec.Schema{ 7922 SchemaProps: spec.SchemaProps{ 7923 Default: map[string]interface{}{}, 7924 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.HTTPPath"), 7925 }, 7926 }, 7927 }, 7928 }, 7929 }, 7930 }, 7931 }, 7932 }, 7933 Dependencies: []string{ 7934 "github.com/tigera/api/pkg/apis/projectcalico/v3.HTTPPath"}, 7935 } 7936 } 7937 7938 func schema_pkg_apis_projectcalico_v3_HTTPPath(ref common.ReferenceCallback) common.OpenAPIDefinition { 7939 return common.OpenAPIDefinition{ 7940 Schema: spec.Schema{ 7941 SchemaProps: spec.SchemaProps{ 7942 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", 7943 Type: []string{"object"}, 7944 Properties: map[string]spec.Schema{ 7945 "exact": { 7946 SchemaProps: spec.SchemaProps{ 7947 Type: []string{"string"}, 7948 Format: "", 7949 }, 7950 }, 7951 "prefix": { 7952 SchemaProps: spec.SchemaProps{ 7953 Type: []string{"string"}, 7954 Format: "", 7955 }, 7956 }, 7957 }, 7958 }, 7959 }, 7960 } 7961 } 7962 7963 func schema_pkg_apis_projectcalico_v3_HTTPPull(ref common.ReferenceCallback) common.OpenAPIDefinition { 7964 return common.OpenAPIDefinition{ 7965 Schema: spec.Schema{ 7966 SchemaProps: spec.SchemaProps{ 7967 Type: []string{"object"}, 7968 Properties: map[string]spec.Schema{ 7969 "format": { 7970 SchemaProps: spec.SchemaProps{ 7971 Default: map[string]interface{}{}, 7972 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ThreatFeedFormat"), 7973 }, 7974 }, 7975 "url": { 7976 SchemaProps: spec.SchemaProps{ 7977 Default: "", 7978 Type: []string{"string"}, 7979 Format: "", 7980 }, 7981 }, 7982 "headers": { 7983 SchemaProps: spec.SchemaProps{ 7984 Type: []string{"array"}, 7985 Items: &spec.SchemaOrArray{ 7986 Schema: &spec.Schema{ 7987 SchemaProps: spec.SchemaProps{ 7988 Default: map[string]interface{}{}, 7989 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.HTTPHeader"), 7990 }, 7991 }, 7992 }, 7993 }, 7994 }, 7995 }, 7996 Required: []string{"url"}, 7997 }, 7998 }, 7999 Dependencies: []string{ 8000 "github.com/tigera/api/pkg/apis/projectcalico/v3.HTTPHeader", "github.com/tigera/api/pkg/apis/projectcalico/v3.ThreatFeedFormat"}, 8001 } 8002 } 8003 8004 func schema_pkg_apis_projectcalico_v3_HealthTimeoutOverride(ref common.ReferenceCallback) common.OpenAPIDefinition { 8005 return common.OpenAPIDefinition{ 8006 Schema: spec.Schema{ 8007 SchemaProps: spec.SchemaProps{ 8008 Type: []string{"object"}, 8009 Properties: map[string]spec.Schema{ 8010 "name": { 8011 SchemaProps: spec.SchemaProps{ 8012 Default: "", 8013 Type: []string{"string"}, 8014 Format: "", 8015 }, 8016 }, 8017 "timeout": { 8018 SchemaProps: spec.SchemaProps{ 8019 Default: 0, 8020 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 8021 }, 8022 }, 8023 }, 8024 Required: []string{"name", "timeout"}, 8025 }, 8026 }, 8027 Dependencies: []string{ 8028 "k8s.io/apimachinery/pkg/apis/meta/v1.Duration"}, 8029 } 8030 } 8031 8032 func schema_pkg_apis_projectcalico_v3_HostEndpoint(ref common.ReferenceCallback) common.OpenAPIDefinition { 8033 return common.OpenAPIDefinition{ 8034 Schema: spec.Schema{ 8035 SchemaProps: spec.SchemaProps{ 8036 Type: []string{"object"}, 8037 Properties: map[string]spec.Schema{ 8038 "kind": { 8039 SchemaProps: spec.SchemaProps{ 8040 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 8041 Type: []string{"string"}, 8042 Format: "", 8043 }, 8044 }, 8045 "apiVersion": { 8046 SchemaProps: spec.SchemaProps{ 8047 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 8048 Type: []string{"string"}, 8049 Format: "", 8050 }, 8051 }, 8052 "metadata": { 8053 SchemaProps: spec.SchemaProps{ 8054 Default: map[string]interface{}{}, 8055 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 8056 }, 8057 }, 8058 "spec": { 8059 SchemaProps: spec.SchemaProps{ 8060 Default: map[string]interface{}{}, 8061 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.HostEndpointSpec"), 8062 }, 8063 }, 8064 }, 8065 }, 8066 }, 8067 Dependencies: []string{ 8068 "github.com/tigera/api/pkg/apis/projectcalico/v3.HostEndpointSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 8069 } 8070 } 8071 8072 func schema_pkg_apis_projectcalico_v3_HostEndpointList(ref common.ReferenceCallback) common.OpenAPIDefinition { 8073 return common.OpenAPIDefinition{ 8074 Schema: spec.Schema{ 8075 SchemaProps: spec.SchemaProps{ 8076 Description: "HostEndpointList is a list of HostEndpoint objects.", 8077 Type: []string{"object"}, 8078 Properties: map[string]spec.Schema{ 8079 "kind": { 8080 SchemaProps: spec.SchemaProps{ 8081 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 8082 Type: []string{"string"}, 8083 Format: "", 8084 }, 8085 }, 8086 "apiVersion": { 8087 SchemaProps: spec.SchemaProps{ 8088 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 8089 Type: []string{"string"}, 8090 Format: "", 8091 }, 8092 }, 8093 "metadata": { 8094 SchemaProps: spec.SchemaProps{ 8095 Default: map[string]interface{}{}, 8096 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 8097 }, 8098 }, 8099 "items": { 8100 SchemaProps: spec.SchemaProps{ 8101 Type: []string{"array"}, 8102 Items: &spec.SchemaOrArray{ 8103 Schema: &spec.Schema{ 8104 SchemaProps: spec.SchemaProps{ 8105 Default: map[string]interface{}{}, 8106 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.HostEndpoint"), 8107 }, 8108 }, 8109 }, 8110 }, 8111 }, 8112 }, 8113 Required: []string{"items"}, 8114 }, 8115 }, 8116 Dependencies: []string{ 8117 "github.com/tigera/api/pkg/apis/projectcalico/v3.HostEndpoint", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 8118 } 8119 } 8120 8121 func schema_pkg_apis_projectcalico_v3_HostEndpointSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 8122 return common.OpenAPIDefinition{ 8123 Schema: spec.Schema{ 8124 SchemaProps: spec.SchemaProps{ 8125 Description: "HostEndpointSpec contains the specification for a HostEndpoint resource.", 8126 Type: []string{"object"}, 8127 Properties: map[string]spec.Schema{ 8128 "node": { 8129 SchemaProps: spec.SchemaProps{ 8130 Description: "The node name identifying the Calico node instance.", 8131 Type: []string{"string"}, 8132 Format: "", 8133 }, 8134 }, 8135 "interfaceName": { 8136 SchemaProps: spec.SchemaProps{ 8137 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.", 8138 Type: []string{"string"}, 8139 Format: "", 8140 }, 8141 }, 8142 "expectedIPs": { 8143 SchemaProps: spec.SchemaProps{ 8144 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.)", 8145 Type: []string{"array"}, 8146 Items: &spec.SchemaOrArray{ 8147 Schema: &spec.Schema{ 8148 SchemaProps: spec.SchemaProps{ 8149 Default: "", 8150 Type: []string{"string"}, 8151 Format: "", 8152 }, 8153 }, 8154 }, 8155 }, 8156 }, 8157 "profiles": { 8158 SchemaProps: spec.SchemaProps{ 8159 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.", 8160 Type: []string{"array"}, 8161 Items: &spec.SchemaOrArray{ 8162 Schema: &spec.Schema{ 8163 SchemaProps: spec.SchemaProps{ 8164 Default: "", 8165 Type: []string{"string"}, 8166 Format: "", 8167 }, 8168 }, 8169 }, 8170 }, 8171 }, 8172 "ports": { 8173 SchemaProps: spec.SchemaProps{ 8174 Description: "Ports contains the endpoint's named ports, which may be referenced in security policy rules.", 8175 Type: []string{"array"}, 8176 Items: &spec.SchemaOrArray{ 8177 Schema: &spec.Schema{ 8178 SchemaProps: spec.SchemaProps{ 8179 Default: map[string]interface{}{}, 8180 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.EndpointPort"), 8181 }, 8182 }, 8183 }, 8184 }, 8185 }, 8186 }, 8187 }, 8188 }, 8189 Dependencies: []string{ 8190 "github.com/tigera/api/pkg/apis/projectcalico/v3.EndpointPort"}, 8191 } 8192 } 8193 8194 func schema_pkg_apis_projectcalico_v3_ICMPFields(ref common.ReferenceCallback) common.OpenAPIDefinition { 8195 return common.OpenAPIDefinition{ 8196 Schema: spec.Schema{ 8197 SchemaProps: spec.SchemaProps{ 8198 Description: "ICMPFields defines structure for ICMP and NotICMP sub-struct for ICMP code and type", 8199 Type: []string{"object"}, 8200 Properties: map[string]spec.Schema{ 8201 "type": { 8202 SchemaProps: spec.SchemaProps{ 8203 Description: "Match on a specific ICMP type. For example a value of 8 refers to ICMP Echo Request (i.e. pings).", 8204 Type: []string{"integer"}, 8205 Format: "int32", 8206 }, 8207 }, 8208 "code": { 8209 SchemaProps: spec.SchemaProps{ 8210 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.", 8211 Type: []string{"integer"}, 8212 Format: "int32", 8213 }, 8214 }, 8215 }, 8216 }, 8217 }, 8218 } 8219 } 8220 8221 func schema_pkg_apis_projectcalico_v3_IPAMConfiguration(ref common.ReferenceCallback) common.OpenAPIDefinition { 8222 return common.OpenAPIDefinition{ 8223 Schema: spec.Schema{ 8224 SchemaProps: spec.SchemaProps{ 8225 Description: "IPAMConfiguration contains information about a block for IP address assignment.", 8226 Type: []string{"object"}, 8227 Properties: map[string]spec.Schema{ 8228 "kind": { 8229 SchemaProps: spec.SchemaProps{ 8230 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 8231 Type: []string{"string"}, 8232 Format: "", 8233 }, 8234 }, 8235 "apiVersion": { 8236 SchemaProps: spec.SchemaProps{ 8237 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 8238 Type: []string{"string"}, 8239 Format: "", 8240 }, 8241 }, 8242 "metadata": { 8243 SchemaProps: spec.SchemaProps{ 8244 Default: map[string]interface{}{}, 8245 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 8246 }, 8247 }, 8248 "spec": { 8249 SchemaProps: spec.SchemaProps{ 8250 Default: map[string]interface{}{}, 8251 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.IPAMConfigurationSpec"), 8252 }, 8253 }, 8254 }, 8255 }, 8256 }, 8257 Dependencies: []string{ 8258 "github.com/tigera/api/pkg/apis/projectcalico/v3.IPAMConfigurationSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 8259 } 8260 } 8261 8262 func schema_pkg_apis_projectcalico_v3_IPAMConfigurationList(ref common.ReferenceCallback) common.OpenAPIDefinition { 8263 return common.OpenAPIDefinition{ 8264 Schema: spec.Schema{ 8265 SchemaProps: spec.SchemaProps{ 8266 Description: "IPAMConfigurationList contains a list of IPAMConfiguration resources.", 8267 Type: []string{"object"}, 8268 Properties: map[string]spec.Schema{ 8269 "kind": { 8270 SchemaProps: spec.SchemaProps{ 8271 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 8272 Type: []string{"string"}, 8273 Format: "", 8274 }, 8275 }, 8276 "apiVersion": { 8277 SchemaProps: spec.SchemaProps{ 8278 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 8279 Type: []string{"string"}, 8280 Format: "", 8281 }, 8282 }, 8283 "metadata": { 8284 SchemaProps: spec.SchemaProps{ 8285 Default: map[string]interface{}{}, 8286 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 8287 }, 8288 }, 8289 "items": { 8290 SchemaProps: spec.SchemaProps{ 8291 Type: []string{"array"}, 8292 Items: &spec.SchemaOrArray{ 8293 Schema: &spec.Schema{ 8294 SchemaProps: spec.SchemaProps{ 8295 Default: map[string]interface{}{}, 8296 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.IPAMConfiguration"), 8297 }, 8298 }, 8299 }, 8300 }, 8301 }, 8302 }, 8303 Required: []string{"items"}, 8304 }, 8305 }, 8306 Dependencies: []string{ 8307 "github.com/tigera/api/pkg/apis/projectcalico/v3.IPAMConfiguration", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 8308 } 8309 } 8310 8311 func schema_pkg_apis_projectcalico_v3_IPAMConfigurationSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 8312 return common.OpenAPIDefinition{ 8313 Schema: spec.Schema{ 8314 SchemaProps: spec.SchemaProps{ 8315 Description: "IPAMConfigurationSpec contains the specification for an IPPool resource.", 8316 Type: []string{"object"}, 8317 Properties: map[string]spec.Schema{ 8318 "strictAffinity": { 8319 SchemaProps: spec.SchemaProps{ 8320 Description: "When StrictAffinity is true, borrowing IP addresses is not allowed.", 8321 Default: false, 8322 Type: []string{"boolean"}, 8323 Format: "", 8324 }, 8325 }, 8326 "maxBlocksPerHost": { 8327 SchemaProps: spec.SchemaProps{ 8328 Description: "MaxBlocksPerHost, if non-zero, is the max number of blocks that can be affine to each host.", 8329 Type: []string{"integer"}, 8330 Format: "int32", 8331 }, 8332 }, 8333 }, 8334 Required: []string{"strictAffinity"}, 8335 }, 8336 }, 8337 } 8338 } 8339 8340 func schema_pkg_apis_projectcalico_v3_IPIPConfiguration(ref common.ReferenceCallback) common.OpenAPIDefinition { 8341 return common.OpenAPIDefinition{ 8342 Schema: spec.Schema{ 8343 SchemaProps: spec.SchemaProps{ 8344 Type: []string{"object"}, 8345 Properties: map[string]spec.Schema{ 8346 "enabled": { 8347 SchemaProps: spec.SchemaProps{ 8348 Description: "When enabled is true, ipip tunneling will be used to deliver packets to destinations within this pool.", 8349 Type: []string{"boolean"}, 8350 Format: "", 8351 }, 8352 }, 8353 "mode": { 8354 SchemaProps: spec.SchemaProps{ 8355 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\".", 8356 Type: []string{"string"}, 8357 Format: "", 8358 }, 8359 }, 8360 }, 8361 }, 8362 }, 8363 } 8364 } 8365 8366 func schema_pkg_apis_projectcalico_v3_IPPool(ref common.ReferenceCallback) common.OpenAPIDefinition { 8367 return common.OpenAPIDefinition{ 8368 Schema: spec.Schema{ 8369 SchemaProps: spec.SchemaProps{ 8370 Type: []string{"object"}, 8371 Properties: map[string]spec.Schema{ 8372 "kind": { 8373 SchemaProps: spec.SchemaProps{ 8374 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 8375 Type: []string{"string"}, 8376 Format: "", 8377 }, 8378 }, 8379 "apiVersion": { 8380 SchemaProps: spec.SchemaProps{ 8381 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 8382 Type: []string{"string"}, 8383 Format: "", 8384 }, 8385 }, 8386 "metadata": { 8387 SchemaProps: spec.SchemaProps{ 8388 Default: map[string]interface{}{}, 8389 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 8390 }, 8391 }, 8392 "spec": { 8393 SchemaProps: spec.SchemaProps{ 8394 Default: map[string]interface{}{}, 8395 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.IPPoolSpec"), 8396 }, 8397 }, 8398 }, 8399 }, 8400 }, 8401 Dependencies: []string{ 8402 "github.com/tigera/api/pkg/apis/projectcalico/v3.IPPoolSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 8403 } 8404 } 8405 8406 func schema_pkg_apis_projectcalico_v3_IPPoolList(ref common.ReferenceCallback) common.OpenAPIDefinition { 8407 return common.OpenAPIDefinition{ 8408 Schema: spec.Schema{ 8409 SchemaProps: spec.SchemaProps{ 8410 Description: "IPPoolList contains a list of IPPool resources.", 8411 Type: []string{"object"}, 8412 Properties: map[string]spec.Schema{ 8413 "kind": { 8414 SchemaProps: spec.SchemaProps{ 8415 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 8416 Type: []string{"string"}, 8417 Format: "", 8418 }, 8419 }, 8420 "apiVersion": { 8421 SchemaProps: spec.SchemaProps{ 8422 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 8423 Type: []string{"string"}, 8424 Format: "", 8425 }, 8426 }, 8427 "metadata": { 8428 SchemaProps: spec.SchemaProps{ 8429 Default: map[string]interface{}{}, 8430 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 8431 }, 8432 }, 8433 "items": { 8434 SchemaProps: spec.SchemaProps{ 8435 Type: []string{"array"}, 8436 Items: &spec.SchemaOrArray{ 8437 Schema: &spec.Schema{ 8438 SchemaProps: spec.SchemaProps{ 8439 Default: map[string]interface{}{}, 8440 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.IPPool"), 8441 }, 8442 }, 8443 }, 8444 }, 8445 }, 8446 }, 8447 Required: []string{"items"}, 8448 }, 8449 }, 8450 Dependencies: []string{ 8451 "github.com/tigera/api/pkg/apis/projectcalico/v3.IPPool", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 8452 } 8453 } 8454 8455 func schema_pkg_apis_projectcalico_v3_IPPoolSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 8456 return common.OpenAPIDefinition{ 8457 Schema: spec.Schema{ 8458 SchemaProps: spec.SchemaProps{ 8459 Description: "IPPoolSpec contains the specification for an IPPool resource.", 8460 Type: []string{"object"}, 8461 Properties: map[string]spec.Schema{ 8462 "cidr": { 8463 SchemaProps: spec.SchemaProps{ 8464 Description: "The pool CIDR.", 8465 Default: "", 8466 Type: []string{"string"}, 8467 Format: "", 8468 }, 8469 }, 8470 "vxlanMode": { 8471 SchemaProps: spec.SchemaProps{ 8472 Description: "Contains configuration for VXLAN tunneling for this pool. If not specified, then this is defaulted to \"Never\" (i.e. VXLAN tunneling is disabled).", 8473 Type: []string{"string"}, 8474 Format: "", 8475 }, 8476 }, 8477 "ipipMode": { 8478 SchemaProps: spec.SchemaProps{ 8479 Description: "Contains configuration for IPIP tunneling for this pool. If not specified, then this is defaulted to \"Never\" (i.e. IPIP tunneling is disabled).", 8480 Type: []string{"string"}, 8481 Format: "", 8482 }, 8483 }, 8484 "natOutgoing": { 8485 SchemaProps: spec.SchemaProps{ 8486 Description: "When natOutgoing is true, packets sent from Calico networked containers in this pool to destinations outside of this pool will be masqueraded.", 8487 Type: []string{"boolean"}, 8488 Format: "", 8489 }, 8490 }, 8491 "disabled": { 8492 SchemaProps: spec.SchemaProps{ 8493 Description: "When disabled is true, Calico IPAM will not assign addresses from this pool.", 8494 Type: []string{"boolean"}, 8495 Format: "", 8496 }, 8497 }, 8498 "disableBGPExport": { 8499 SchemaProps: spec.SchemaProps{ 8500 Description: "Disable exporting routes from this IP Pool's CIDR over BGP. [Default: false]", 8501 Type: []string{"boolean"}, 8502 Format: "", 8503 }, 8504 }, 8505 "blockSize": { 8506 SchemaProps: spec.SchemaProps{ 8507 Description: "The block size to use for IP address assignments from this pool. Defaults to 26 for IPv4 and 122 for IPv6.", 8508 Type: []string{"integer"}, 8509 Format: "int32", 8510 }, 8511 }, 8512 "nodeSelector": { 8513 SchemaProps: spec.SchemaProps{ 8514 Description: "Allows IPPool to allocate for a specific node by label selector.", 8515 Type: []string{"string"}, 8516 Format: "", 8517 }, 8518 }, 8519 "ipip": { 8520 SchemaProps: spec.SchemaProps{ 8521 Description: "Deprecated: this field is only used for APIv1 backwards compatibility. Setting this field is not allowed, this field is for internal use only.", 8522 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.IPIPConfiguration"), 8523 }, 8524 }, 8525 "nat-outgoing": { 8526 SchemaProps: spec.SchemaProps{ 8527 Description: "Deprecated: this field is only used for APIv1 backwards compatibility. Setting this field is not allowed, this field is for internal use only.", 8528 Type: []string{"boolean"}, 8529 Format: "", 8530 }, 8531 }, 8532 "allowedUses": { 8533 SchemaProps: spec.SchemaProps{ 8534 Description: "AllowedUse controls what the IP pool will be used for. If not specified or empty, defaults to [\"Tunnel\", \"Workload\"] for back-compatibility", 8535 Type: []string{"array"}, 8536 Items: &spec.SchemaOrArray{ 8537 Schema: &spec.Schema{ 8538 SchemaProps: spec.SchemaProps{ 8539 Default: "", 8540 Type: []string{"string"}, 8541 Format: "", 8542 }, 8543 }, 8544 }, 8545 }, 8546 }, 8547 "awsSubnetID": { 8548 SchemaProps: spec.SchemaProps{ 8549 Description: "AWSSubnetID if specified Calico will attempt to ensure that IPs chosen from this IP pool are routed to the corresponding node by adding one or more secondary ENIs to the node and explicitly assigning the IP to one of the secondary ENIs. Important: since subnets cannot cross availability zones, it's important to use Kubernetes node selectors to avoid scheduling pods to one availability zone using an IP pool that is backed by a subnet that belongs to another availability zone. If AWSSubnetID is specified, then the CIDR of the IP pool must be contained within the specified AWS subnet.", 8550 Type: []string{"string"}, 8551 Format: "", 8552 }, 8553 }, 8554 }, 8555 Required: []string{"cidr"}, 8556 }, 8557 }, 8558 Dependencies: []string{ 8559 "github.com/tigera/api/pkg/apis/projectcalico/v3.IPIPConfiguration"}, 8560 } 8561 } 8562 8563 func schema_pkg_apis_projectcalico_v3_IPReservation(ref common.ReferenceCallback) common.OpenAPIDefinition { 8564 return common.OpenAPIDefinition{ 8565 Schema: spec.Schema{ 8566 SchemaProps: spec.SchemaProps{ 8567 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.", 8568 Type: []string{"object"}, 8569 Properties: map[string]spec.Schema{ 8570 "kind": { 8571 SchemaProps: spec.SchemaProps{ 8572 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 8573 Type: []string{"string"}, 8574 Format: "", 8575 }, 8576 }, 8577 "apiVersion": { 8578 SchemaProps: spec.SchemaProps{ 8579 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 8580 Type: []string{"string"}, 8581 Format: "", 8582 }, 8583 }, 8584 "metadata": { 8585 SchemaProps: spec.SchemaProps{ 8586 Default: map[string]interface{}{}, 8587 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 8588 }, 8589 }, 8590 "spec": { 8591 SchemaProps: spec.SchemaProps{ 8592 Default: map[string]interface{}{}, 8593 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.IPReservationSpec"), 8594 }, 8595 }, 8596 }, 8597 }, 8598 }, 8599 Dependencies: []string{ 8600 "github.com/tigera/api/pkg/apis/projectcalico/v3.IPReservationSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 8601 } 8602 } 8603 8604 func schema_pkg_apis_projectcalico_v3_IPReservationList(ref common.ReferenceCallback) common.OpenAPIDefinition { 8605 return common.OpenAPIDefinition{ 8606 Schema: spec.Schema{ 8607 SchemaProps: spec.SchemaProps{ 8608 Description: "IPReservationList contains a list of IPReservation resources.", 8609 Type: []string{"object"}, 8610 Properties: map[string]spec.Schema{ 8611 "kind": { 8612 SchemaProps: spec.SchemaProps{ 8613 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 8614 Type: []string{"string"}, 8615 Format: "", 8616 }, 8617 }, 8618 "apiVersion": { 8619 SchemaProps: spec.SchemaProps{ 8620 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 8621 Type: []string{"string"}, 8622 Format: "", 8623 }, 8624 }, 8625 "metadata": { 8626 SchemaProps: spec.SchemaProps{ 8627 Default: map[string]interface{}{}, 8628 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 8629 }, 8630 }, 8631 "items": { 8632 SchemaProps: spec.SchemaProps{ 8633 Type: []string{"array"}, 8634 Items: &spec.SchemaOrArray{ 8635 Schema: &spec.Schema{ 8636 SchemaProps: spec.SchemaProps{ 8637 Default: map[string]interface{}{}, 8638 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.IPReservation"), 8639 }, 8640 }, 8641 }, 8642 }, 8643 }, 8644 }, 8645 Required: []string{"items"}, 8646 }, 8647 }, 8648 Dependencies: []string{ 8649 "github.com/tigera/api/pkg/apis/projectcalico/v3.IPReservation", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 8650 } 8651 } 8652 8653 func schema_pkg_apis_projectcalico_v3_IPReservationSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 8654 return common.OpenAPIDefinition{ 8655 Schema: spec.Schema{ 8656 SchemaProps: spec.SchemaProps{ 8657 Description: "IPReservationSpec contains the specification for an IPReservation resource.", 8658 Type: []string{"object"}, 8659 Properties: map[string]spec.Schema{ 8660 "reservedCIDRs": { 8661 SchemaProps: spec.SchemaProps{ 8662 Description: "ReservedCIDRs is a list of CIDRs and/or IP addresses that Calico IPAM will exclude from new allocations.", 8663 Type: []string{"array"}, 8664 Items: &spec.SchemaOrArray{ 8665 Schema: &spec.Schema{ 8666 SchemaProps: spec.SchemaProps{ 8667 Default: "", 8668 Type: []string{"string"}, 8669 Format: "", 8670 }, 8671 }, 8672 }, 8673 }, 8674 }, 8675 }, 8676 }, 8677 }, 8678 } 8679 } 8680 8681 func schema_pkg_apis_projectcalico_v3_KubeConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 8682 return common.OpenAPIDefinition{ 8683 Schema: spec.Schema{ 8684 SchemaProps: spec.SchemaProps{ 8685 Type: []string{"object"}, 8686 Properties: map[string]spec.Schema{ 8687 "kubeconfig": { 8688 SchemaProps: spec.SchemaProps{ 8689 Description: "When using the Kubernetes datastore, the location of a kubeconfig file. Valid if DatastoreType is kubernetes.", 8690 Type: []string{"string"}, 8691 Format: "", 8692 }, 8693 }, 8694 "k8sAPIEndpoint": { 8695 SchemaProps: spec.SchemaProps{ 8696 Description: "Location of the Kubernetes API. Not required if using kubeconfig. Valid if DatastoreType is kubernetes.", 8697 Type: []string{"string"}, 8698 Format: "", 8699 }, 8700 }, 8701 "k8sKeyFile": { 8702 SchemaProps: spec.SchemaProps{ 8703 Description: "Location of a client key for accessing the Kubernetes API. Valid if DatastoreType is kubernetes.", 8704 Type: []string{"string"}, 8705 Format: "", 8706 }, 8707 }, 8708 "k8sCertFile": { 8709 SchemaProps: spec.SchemaProps{ 8710 Description: "Location of a client certificate for accessing the Kubernetes API. Valid if DatastoreType is kubernetes.", 8711 Type: []string{"string"}, 8712 Format: "", 8713 }, 8714 }, 8715 "k8sCAFile": { 8716 SchemaProps: spec.SchemaProps{ 8717 Description: "Location of a CA for accessing the Kubernetes API. Valid if DatastoreType is kubernetes.", 8718 Type: []string{"string"}, 8719 Format: "", 8720 }, 8721 }, 8722 "k8sAPIToken": { 8723 SchemaProps: spec.SchemaProps{ 8724 Description: "Token to be used for accessing the Kubernetes API. Valid if DatastoreType is kubernetes.", 8725 Type: []string{"string"}, 8726 Format: "", 8727 }, 8728 }, 8729 "k8sInsecureSkipTLSVerify": { 8730 SchemaProps: spec.SchemaProps{ 8731 Type: []string{"boolean"}, 8732 Format: "", 8733 }, 8734 }, 8735 "kubeconfigInline": { 8736 SchemaProps: spec.SchemaProps{ 8737 Description: "This is an alternative to Kubeconfig and if specified overrides Kubeconfig. This contains the contents that would normally be in the file pointed at by Kubeconfig.", 8738 Type: []string{"string"}, 8739 Format: "", 8740 }, 8741 }, 8742 }, 8743 }, 8744 }, 8745 } 8746 } 8747 8748 func schema_pkg_apis_projectcalico_v3_KubeControllersConfiguration(ref common.ReferenceCallback) common.OpenAPIDefinition { 8749 return common.OpenAPIDefinition{ 8750 Schema: spec.Schema{ 8751 SchemaProps: spec.SchemaProps{ 8752 Type: []string{"object"}, 8753 Properties: map[string]spec.Schema{ 8754 "kind": { 8755 SchemaProps: spec.SchemaProps{ 8756 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 8757 Type: []string{"string"}, 8758 Format: "", 8759 }, 8760 }, 8761 "apiVersion": { 8762 SchemaProps: spec.SchemaProps{ 8763 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 8764 Type: []string{"string"}, 8765 Format: "", 8766 }, 8767 }, 8768 "metadata": { 8769 SchemaProps: spec.SchemaProps{ 8770 Default: map[string]interface{}{}, 8771 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 8772 }, 8773 }, 8774 "spec": { 8775 SchemaProps: spec.SchemaProps{ 8776 Default: map[string]interface{}{}, 8777 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.KubeControllersConfigurationSpec"), 8778 }, 8779 }, 8780 "status": { 8781 SchemaProps: spec.SchemaProps{ 8782 Default: map[string]interface{}{}, 8783 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.KubeControllersConfigurationStatus"), 8784 }, 8785 }, 8786 }, 8787 }, 8788 }, 8789 Dependencies: []string{ 8790 "github.com/tigera/api/pkg/apis/projectcalico/v3.KubeControllersConfigurationSpec", "github.com/tigera/api/pkg/apis/projectcalico/v3.KubeControllersConfigurationStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 8791 } 8792 } 8793 8794 func schema_pkg_apis_projectcalico_v3_KubeControllersConfigurationList(ref common.ReferenceCallback) common.OpenAPIDefinition { 8795 return common.OpenAPIDefinition{ 8796 Schema: spec.Schema{ 8797 SchemaProps: spec.SchemaProps{ 8798 Description: "KubeControllersConfigurationList contains a list of KubeControllersConfiguration object.", 8799 Type: []string{"object"}, 8800 Properties: map[string]spec.Schema{ 8801 "kind": { 8802 SchemaProps: spec.SchemaProps{ 8803 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 8804 Type: []string{"string"}, 8805 Format: "", 8806 }, 8807 }, 8808 "apiVersion": { 8809 SchemaProps: spec.SchemaProps{ 8810 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 8811 Type: []string{"string"}, 8812 Format: "", 8813 }, 8814 }, 8815 "metadata": { 8816 SchemaProps: spec.SchemaProps{ 8817 Default: map[string]interface{}{}, 8818 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 8819 }, 8820 }, 8821 "items": { 8822 SchemaProps: spec.SchemaProps{ 8823 Type: []string{"array"}, 8824 Items: &spec.SchemaOrArray{ 8825 Schema: &spec.Schema{ 8826 SchemaProps: spec.SchemaProps{ 8827 Default: map[string]interface{}{}, 8828 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.KubeControllersConfiguration"), 8829 }, 8830 }, 8831 }, 8832 }, 8833 }, 8834 }, 8835 Required: []string{"items"}, 8836 }, 8837 }, 8838 Dependencies: []string{ 8839 "github.com/tigera/api/pkg/apis/projectcalico/v3.KubeControllersConfiguration", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 8840 } 8841 } 8842 8843 func schema_pkg_apis_projectcalico_v3_KubeControllersConfigurationSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 8844 return common.OpenAPIDefinition{ 8845 Schema: spec.Schema{ 8846 SchemaProps: spec.SchemaProps{ 8847 Description: "KubeControllersConfigurationSpec contains the values of the Kubernetes controllers configuration.", 8848 Type: []string{"object"}, 8849 Properties: map[string]spec.Schema{ 8850 "logSeverityScreen": { 8851 SchemaProps: spec.SchemaProps{ 8852 Description: "LogSeverityScreen is the log severity above which logs are sent to the stdout. [Default: Info]", 8853 Type: []string{"string"}, 8854 Format: "", 8855 }, 8856 }, 8857 "healthChecks": { 8858 SchemaProps: spec.SchemaProps{ 8859 Description: "HealthChecks enables or disables support for health checks [Default: Enabled]", 8860 Type: []string{"string"}, 8861 Format: "", 8862 }, 8863 }, 8864 "etcdV3CompactionPeriod": { 8865 SchemaProps: spec.SchemaProps{ 8866 Description: "EtcdV3CompactionPeriod is the period between etcdv3 compaction requests. Set to 0 to disable. [Default: 10m]", 8867 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 8868 }, 8869 }, 8870 "prometheusMetricsPort": { 8871 SchemaProps: spec.SchemaProps{ 8872 Description: "PrometheusMetricsPort is the TCP port that the Prometheus metrics server should bind to. Set to 0 to disable. [Default: 9094]", 8873 Type: []string{"integer"}, 8874 Format: "int32", 8875 }, 8876 }, 8877 "controllers": { 8878 SchemaProps: spec.SchemaProps{ 8879 Description: "Controllers enables and configures individual Kubernetes controllers", 8880 Default: map[string]interface{}{}, 8881 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ControllersConfig"), 8882 }, 8883 }, 8884 "debugProfilePort": { 8885 SchemaProps: spec.SchemaProps{ 8886 Description: "DebugProfilePort configures the port to serve memory and cpu profiles on. If not specified, profiling is disabled.", 8887 Type: []string{"integer"}, 8888 Format: "int32", 8889 }, 8890 }, 8891 }, 8892 Required: []string{"controllers"}, 8893 }, 8894 }, 8895 Dependencies: []string{ 8896 "github.com/tigera/api/pkg/apis/projectcalico/v3.ControllersConfig", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration"}, 8897 } 8898 } 8899 8900 func schema_pkg_apis_projectcalico_v3_KubeControllersConfigurationStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 8901 return common.OpenAPIDefinition{ 8902 Schema: spec.Schema{ 8903 SchemaProps: spec.SchemaProps{ 8904 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.", 8905 Type: []string{"object"}, 8906 Properties: map[string]spec.Schema{ 8907 "runningConfig": { 8908 SchemaProps: spec.SchemaProps{ 8909 Description: "RunningConfig contains the effective config that is running in the kube-controllers pod, after merging the API resource with any environment variables.", 8910 Default: map[string]interface{}{}, 8911 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.KubeControllersConfigurationSpec"), 8912 }, 8913 }, 8914 "environmentVars": { 8915 SchemaProps: spec.SchemaProps{ 8916 Description: "EnvironmentVars contains the environment variables on the kube-controllers that influenced the RunningConfig.", 8917 Type: []string{"object"}, 8918 AdditionalProperties: &spec.SchemaOrBool{ 8919 Allows: true, 8920 Schema: &spec.Schema{ 8921 SchemaProps: spec.SchemaProps{ 8922 Default: "", 8923 Type: []string{"string"}, 8924 Format: "", 8925 }, 8926 }, 8927 }, 8928 }, 8929 }, 8930 }, 8931 }, 8932 }, 8933 Dependencies: []string{ 8934 "github.com/tigera/api/pkg/apis/projectcalico/v3.KubeControllersConfigurationSpec"}, 8935 } 8936 } 8937 8938 func schema_pkg_apis_projectcalico_v3_LicenseKey(ref common.ReferenceCallback) common.OpenAPIDefinition { 8939 return common.OpenAPIDefinition{ 8940 Schema: spec.Schema{ 8941 SchemaProps: spec.SchemaProps{ 8942 Description: "LicenseKey contains the Tigera CNX license key for the cluster.", 8943 Type: []string{"object"}, 8944 Properties: map[string]spec.Schema{ 8945 "kind": { 8946 SchemaProps: spec.SchemaProps{ 8947 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 8948 Type: []string{"string"}, 8949 Format: "", 8950 }, 8951 }, 8952 "apiVersion": { 8953 SchemaProps: spec.SchemaProps{ 8954 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 8955 Type: []string{"string"}, 8956 Format: "", 8957 }, 8958 }, 8959 "metadata": { 8960 SchemaProps: spec.SchemaProps{ 8961 Description: "Standard object's metadata. This resource is a singleton, always named \"default\".", 8962 Default: map[string]interface{}{}, 8963 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 8964 }, 8965 }, 8966 "spec": { 8967 SchemaProps: spec.SchemaProps{ 8968 Description: "Specification of the LicenseKey.", 8969 Default: map[string]interface{}{}, 8970 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.LicenseKeySpec"), 8971 }, 8972 }, 8973 "status": { 8974 SchemaProps: spec.SchemaProps{ 8975 Description: "Status of the LicenseKey.", 8976 Default: map[string]interface{}{}, 8977 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.LicenseKeyStatus"), 8978 }, 8979 }, 8980 }, 8981 }, 8982 }, 8983 Dependencies: []string{ 8984 "github.com/tigera/api/pkg/apis/projectcalico/v3.LicenseKeySpec", "github.com/tigera/api/pkg/apis/projectcalico/v3.LicenseKeyStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 8985 } 8986 } 8987 8988 func schema_pkg_apis_projectcalico_v3_LicenseKeyList(ref common.ReferenceCallback) common.OpenAPIDefinition { 8989 return common.OpenAPIDefinition{ 8990 Schema: spec.Schema{ 8991 SchemaProps: spec.SchemaProps{ 8992 Description: "LicenseKeyList contains a list of LicenseKey resources (even though there should only be one).", 8993 Type: []string{"object"}, 8994 Properties: map[string]spec.Schema{ 8995 "kind": { 8996 SchemaProps: spec.SchemaProps{ 8997 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 8998 Type: []string{"string"}, 8999 Format: "", 9000 }, 9001 }, 9002 "apiVersion": { 9003 SchemaProps: spec.SchemaProps{ 9004 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 9005 Type: []string{"string"}, 9006 Format: "", 9007 }, 9008 }, 9009 "metadata": { 9010 SchemaProps: spec.SchemaProps{ 9011 Default: map[string]interface{}{}, 9012 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 9013 }, 9014 }, 9015 "items": { 9016 SchemaProps: spec.SchemaProps{ 9017 Type: []string{"array"}, 9018 Items: &spec.SchemaOrArray{ 9019 Schema: &spec.Schema{ 9020 SchemaProps: spec.SchemaProps{ 9021 Default: map[string]interface{}{}, 9022 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.LicenseKey"), 9023 }, 9024 }, 9025 }, 9026 }, 9027 }, 9028 }, 9029 Required: []string{"metadata", "items"}, 9030 }, 9031 }, 9032 Dependencies: []string{ 9033 "github.com/tigera/api/pkg/apis/projectcalico/v3.LicenseKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 9034 } 9035 } 9036 9037 func schema_pkg_apis_projectcalico_v3_LicenseKeySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 9038 return common.OpenAPIDefinition{ 9039 Schema: spec.Schema{ 9040 SchemaProps: spec.SchemaProps{ 9041 Description: "LicenseKeySpec contains the license key itself.", 9042 Type: []string{"object"}, 9043 Properties: map[string]spec.Schema{ 9044 "token": { 9045 SchemaProps: spec.SchemaProps{ 9046 Description: "Token is the JWT containing the license claims", 9047 Default: "", 9048 Type: []string{"string"}, 9049 Format: "", 9050 }, 9051 }, 9052 "certificate": { 9053 SchemaProps: spec.SchemaProps{ 9054 Description: "Certificate is used to validate the token.", 9055 Type: []string{"string"}, 9056 Format: "", 9057 }, 9058 }, 9059 }, 9060 Required: []string{"token"}, 9061 }, 9062 }, 9063 } 9064 } 9065 9066 func schema_pkg_apis_projectcalico_v3_LicenseKeyStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 9067 return common.OpenAPIDefinition{ 9068 Schema: spec.Schema{ 9069 SchemaProps: spec.SchemaProps{ 9070 Description: "LicenseKeyStatus contains the license key information.", 9071 Type: []string{"object"}, 9072 Properties: map[string]spec.Schema{ 9073 "expiry": { 9074 SchemaProps: spec.SchemaProps{ 9075 Description: "Expiry is the expiry date of License", 9076 Default: map[string]interface{}{}, 9077 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 9078 }, 9079 }, 9080 "maxnodes": { 9081 SchemaProps: spec.SchemaProps{ 9082 Description: "Maximum Number of Allowed Nodes", 9083 Type: []string{"integer"}, 9084 Format: "int32", 9085 }, 9086 }, 9087 "package": { 9088 SchemaProps: spec.SchemaProps{ 9089 Description: "License package defines type of Calico license that is being enforced", 9090 Type: []string{"string"}, 9091 Format: "", 9092 }, 9093 }, 9094 "features": { 9095 SchemaProps: spec.SchemaProps{ 9096 Description: "List of features that are available via the applied license", 9097 Type: []string{"array"}, 9098 Items: &spec.SchemaOrArray{ 9099 Schema: &spec.Schema{ 9100 SchemaProps: spec.SchemaProps{ 9101 Default: "", 9102 Type: []string{"string"}, 9103 Format: "", 9104 }, 9105 }, 9106 }, 9107 }, 9108 }, 9109 }, 9110 }, 9111 }, 9112 Dependencies: []string{ 9113 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 9114 } 9115 } 9116 9117 func schema_pkg_apis_projectcalico_v3_ManagedCluster(ref common.ReferenceCallback) common.OpenAPIDefinition { 9118 return common.OpenAPIDefinition{ 9119 Schema: spec.Schema{ 9120 SchemaProps: spec.SchemaProps{ 9121 Description: "ManagedCluster represents a cluster that is being managed by the multi-cluster management plane. This object configures how Tigera multi-cluster management components communicate with the corresponding cluster.", 9122 Type: []string{"object"}, 9123 Properties: map[string]spec.Schema{ 9124 "kind": { 9125 SchemaProps: spec.SchemaProps{ 9126 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 9127 Type: []string{"string"}, 9128 Format: "", 9129 }, 9130 }, 9131 "apiVersion": { 9132 SchemaProps: spec.SchemaProps{ 9133 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 9134 Type: []string{"string"}, 9135 Format: "", 9136 }, 9137 }, 9138 "metadata": { 9139 SchemaProps: spec.SchemaProps{ 9140 Description: "Standard object's metadata.", 9141 Default: map[string]interface{}{}, 9142 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 9143 }, 9144 }, 9145 "spec": { 9146 SchemaProps: spec.SchemaProps{ 9147 Description: "Specification of the ManagedCluster.", 9148 Default: map[string]interface{}{}, 9149 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ManagedClusterSpec"), 9150 }, 9151 }, 9152 "status": { 9153 SchemaProps: spec.SchemaProps{ 9154 Description: "Status of the ManagedCluster", 9155 Default: map[string]interface{}{}, 9156 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ManagedClusterStatus"), 9157 }, 9158 }, 9159 }, 9160 }, 9161 }, 9162 Dependencies: []string{ 9163 "github.com/tigera/api/pkg/apis/projectcalico/v3.ManagedClusterSpec", "github.com/tigera/api/pkg/apis/projectcalico/v3.ManagedClusterStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 9164 } 9165 } 9166 9167 func schema_pkg_apis_projectcalico_v3_ManagedClusterList(ref common.ReferenceCallback) common.OpenAPIDefinition { 9168 return common.OpenAPIDefinition{ 9169 Schema: spec.Schema{ 9170 SchemaProps: spec.SchemaProps{ 9171 Description: "ManagedClusterList contains a list of ManagedCluster resources.", 9172 Type: []string{"object"}, 9173 Properties: map[string]spec.Schema{ 9174 "kind": { 9175 SchemaProps: spec.SchemaProps{ 9176 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 9177 Type: []string{"string"}, 9178 Format: "", 9179 }, 9180 }, 9181 "apiVersion": { 9182 SchemaProps: spec.SchemaProps{ 9183 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 9184 Type: []string{"string"}, 9185 Format: "", 9186 }, 9187 }, 9188 "metadata": { 9189 SchemaProps: spec.SchemaProps{ 9190 Default: map[string]interface{}{}, 9191 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 9192 }, 9193 }, 9194 "items": { 9195 SchemaProps: spec.SchemaProps{ 9196 Type: []string{"array"}, 9197 Items: &spec.SchemaOrArray{ 9198 Schema: &spec.Schema{ 9199 SchemaProps: spec.SchemaProps{ 9200 Default: map[string]interface{}{}, 9201 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ManagedCluster"), 9202 }, 9203 }, 9204 }, 9205 }, 9206 }, 9207 }, 9208 Required: []string{"metadata", "items"}, 9209 }, 9210 }, 9211 Dependencies: []string{ 9212 "github.com/tigera/api/pkg/apis/projectcalico/v3.ManagedCluster", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 9213 } 9214 } 9215 9216 func schema_pkg_apis_projectcalico_v3_ManagedClusterSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 9217 return common.OpenAPIDefinition{ 9218 Schema: spec.Schema{ 9219 SchemaProps: spec.SchemaProps{ 9220 Description: "ManagedClusterSpec contains the specification of a ManagedCluster resource.", 9221 Type: []string{"object"}, 9222 Properties: map[string]spec.Schema{ 9223 "installationManifest": { 9224 SchemaProps: spec.SchemaProps{ 9225 Description: "Field to store dynamically generated manifest for installing component into the actual application cluster corresponding to this Managed Cluster", 9226 Type: []string{"string"}, 9227 Format: "", 9228 }, 9229 }, 9230 "operatorNamespace": { 9231 SchemaProps: spec.SchemaProps{ 9232 Description: "The namespace of the managed cluster's operator. This value is used in the generation of the InstallationManifest.", 9233 Type: []string{"string"}, 9234 Format: "", 9235 }, 9236 }, 9237 "certificate": { 9238 SchemaProps: spec.SchemaProps{ 9239 Description: "The certificate used to authenticate the managed cluster to the management cluster.", 9240 Type: []string{"string"}, 9241 Format: "byte", 9242 }, 9243 }, 9244 }, 9245 }, 9246 }, 9247 } 9248 } 9249 9250 func schema_pkg_apis_projectcalico_v3_ManagedClusterStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 9251 return common.OpenAPIDefinition{ 9252 Schema: spec.Schema{ 9253 SchemaProps: spec.SchemaProps{ 9254 Type: []string{"object"}, 9255 Properties: map[string]spec.Schema{ 9256 "conditions": { 9257 SchemaProps: spec.SchemaProps{ 9258 Type: []string{"array"}, 9259 Items: &spec.SchemaOrArray{ 9260 Schema: &spec.Schema{ 9261 SchemaProps: spec.SchemaProps{ 9262 Default: map[string]interface{}{}, 9263 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ManagedClusterStatusCondition"), 9264 }, 9265 }, 9266 }, 9267 }, 9268 }, 9269 }, 9270 }, 9271 }, 9272 Dependencies: []string{ 9273 "github.com/tigera/api/pkg/apis/projectcalico/v3.ManagedClusterStatusCondition"}, 9274 } 9275 } 9276 9277 func schema_pkg_apis_projectcalico_v3_ManagedClusterStatusCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 9278 return common.OpenAPIDefinition{ 9279 Schema: spec.Schema{ 9280 SchemaProps: spec.SchemaProps{ 9281 Description: "Condition contains various status information", 9282 Type: []string{"object"}, 9283 Properties: map[string]spec.Schema{ 9284 "message": { 9285 SchemaProps: spec.SchemaProps{ 9286 Type: []string{"string"}, 9287 Format: "", 9288 }, 9289 }, 9290 "reason": { 9291 SchemaProps: spec.SchemaProps{ 9292 Type: []string{"string"}, 9293 Format: "", 9294 }, 9295 }, 9296 "status": { 9297 SchemaProps: spec.SchemaProps{ 9298 Default: "", 9299 Type: []string{"string"}, 9300 Format: "", 9301 }, 9302 }, 9303 "type": { 9304 SchemaProps: spec.SchemaProps{ 9305 Default: "", 9306 Type: []string{"string"}, 9307 Format: "", 9308 }, 9309 }, 9310 }, 9311 Required: []string{"status", "type"}, 9312 }, 9313 }, 9314 } 9315 } 9316 9317 func schema_pkg_apis_projectcalico_v3_NamedSelector(ref common.ReferenceCallback) common.OpenAPIDefinition { 9318 return common.OpenAPIDefinition{ 9319 Schema: spec.Schema{ 9320 SchemaProps: spec.SchemaProps{ 9321 Description: "A Calico format label selector with an associated name.", 9322 Type: []string{"object"}, 9323 Properties: map[string]spec.Schema{ 9324 "name": { 9325 SchemaProps: spec.SchemaProps{ 9326 Default: "", 9327 Type: []string{"string"}, 9328 Format: "", 9329 }, 9330 }, 9331 "selector": { 9332 SchemaProps: spec.SchemaProps{ 9333 Default: "", 9334 Type: []string{"string"}, 9335 Format: "", 9336 }, 9337 }, 9338 }, 9339 Required: []string{"name", "selector"}, 9340 }, 9341 }, 9342 } 9343 } 9344 9345 func schema_pkg_apis_projectcalico_v3_NamesAndLabelsMatch(ref common.ReferenceCallback) common.OpenAPIDefinition { 9346 return common.OpenAPIDefinition{ 9347 Schema: spec.Schema{ 9348 SchemaProps: spec.SchemaProps{ 9349 Description: "NamesAndLabelsMatch is used to specify resource matches using both label and name selection.", 9350 Type: []string{"object"}, 9351 Properties: map[string]spec.Schema{ 9352 "names": { 9353 SchemaProps: spec.SchemaProps{ 9354 Description: "Names is an optional field that specifies a set of resources by name.", 9355 Type: []string{"array"}, 9356 Items: &spec.SchemaOrArray{ 9357 Schema: &spec.Schema{ 9358 SchemaProps: spec.SchemaProps{ 9359 Default: "", 9360 Type: []string{"string"}, 9361 Format: "", 9362 }, 9363 }, 9364 }, 9365 }, 9366 }, 9367 "selector": { 9368 SchemaProps: spec.SchemaProps{ 9369 Description: "Selector is an optional field that selects a set of resources by label. If both Names and Selector are specified then they are AND'ed.", 9370 Type: []string{"string"}, 9371 Format: "", 9372 }, 9373 }, 9374 }, 9375 }, 9376 }, 9377 } 9378 } 9379 9380 func schema_pkg_apis_projectcalico_v3_NamespaceControllerConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 9381 return common.OpenAPIDefinition{ 9382 Schema: spec.Schema{ 9383 SchemaProps: spec.SchemaProps{ 9384 Description: "NamespaceControllerConfig configures the service account controller, which syncs Kubernetes service accounts to Calico profiles (only used for etcdv3 datastore).", 9385 Type: []string{"object"}, 9386 Properties: map[string]spec.Schema{ 9387 "reconcilerPeriod": { 9388 SchemaProps: spec.SchemaProps{ 9389 Description: "ReconcilerPeriod is the period to perform reconciliation with the Calico datastore. [Default: 5m]", 9390 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 9391 }, 9392 }, 9393 }, 9394 }, 9395 }, 9396 Dependencies: []string{ 9397 "k8s.io/apimachinery/pkg/apis/meta/v1.Duration"}, 9398 } 9399 } 9400 9401 func schema_pkg_apis_projectcalico_v3_NetworkPolicy(ref common.ReferenceCallback) common.OpenAPIDefinition { 9402 return common.OpenAPIDefinition{ 9403 Schema: spec.Schema{ 9404 SchemaProps: spec.SchemaProps{ 9405 Type: []string{"object"}, 9406 Properties: map[string]spec.Schema{ 9407 "kind": { 9408 SchemaProps: spec.SchemaProps{ 9409 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 9410 Type: []string{"string"}, 9411 Format: "", 9412 }, 9413 }, 9414 "apiVersion": { 9415 SchemaProps: spec.SchemaProps{ 9416 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 9417 Type: []string{"string"}, 9418 Format: "", 9419 }, 9420 }, 9421 "metadata": { 9422 SchemaProps: spec.SchemaProps{ 9423 Default: map[string]interface{}{}, 9424 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 9425 }, 9426 }, 9427 "spec": { 9428 SchemaProps: spec.SchemaProps{ 9429 Default: map[string]interface{}{}, 9430 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.NetworkPolicySpec"), 9431 }, 9432 }, 9433 }, 9434 }, 9435 }, 9436 Dependencies: []string{ 9437 "github.com/tigera/api/pkg/apis/projectcalico/v3.NetworkPolicySpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 9438 } 9439 } 9440 9441 func schema_pkg_apis_projectcalico_v3_NetworkPolicyList(ref common.ReferenceCallback) common.OpenAPIDefinition { 9442 return common.OpenAPIDefinition{ 9443 Schema: spec.Schema{ 9444 SchemaProps: spec.SchemaProps{ 9445 Description: "NetworkPolicyList is a list of Policy objects.", 9446 Type: []string{"object"}, 9447 Properties: map[string]spec.Schema{ 9448 "kind": { 9449 SchemaProps: spec.SchemaProps{ 9450 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 9451 Type: []string{"string"}, 9452 Format: "", 9453 }, 9454 }, 9455 "apiVersion": { 9456 SchemaProps: spec.SchemaProps{ 9457 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 9458 Type: []string{"string"}, 9459 Format: "", 9460 }, 9461 }, 9462 "metadata": { 9463 SchemaProps: spec.SchemaProps{ 9464 Default: map[string]interface{}{}, 9465 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 9466 }, 9467 }, 9468 "items": { 9469 SchemaProps: spec.SchemaProps{ 9470 Type: []string{"array"}, 9471 Items: &spec.SchemaOrArray{ 9472 Schema: &spec.Schema{ 9473 SchemaProps: spec.SchemaProps{ 9474 Default: map[string]interface{}{}, 9475 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.NetworkPolicy"), 9476 }, 9477 }, 9478 }, 9479 }, 9480 }, 9481 }, 9482 Required: []string{"items"}, 9483 }, 9484 }, 9485 Dependencies: []string{ 9486 "github.com/tigera/api/pkg/apis/projectcalico/v3.NetworkPolicy", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 9487 } 9488 } 9489 9490 func schema_pkg_apis_projectcalico_v3_NetworkPolicySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 9491 return common.OpenAPIDefinition{ 9492 Schema: spec.Schema{ 9493 SchemaProps: spec.SchemaProps{ 9494 Type: []string{"object"}, 9495 Properties: map[string]spec.Schema{ 9496 "tier": { 9497 SchemaProps: spec.SchemaProps{ 9498 Description: "The name of the tier that this policy belongs to. If this is omitted, the default tier (name is \"default\") is assumed. The specified tier must exist in order to create security policies within the tier, the \"default\" tier is created automatically if it does not exist, this means for deployments requiring only a single Tier, the tier name may be omitted on all policy management requests.", 9499 Type: []string{"string"}, 9500 Format: "", 9501 }, 9502 }, 9503 "order": { 9504 SchemaProps: spec.SchemaProps{ 9505 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 within the same tier. 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\" within the tier.", 9506 Type: []string{"number"}, 9507 Format: "double", 9508 }, 9509 }, 9510 "ingress": { 9511 SchemaProps: spec.SchemaProps{ 9512 Description: "The ordered set of ingress rules. Each rule contains a set of packet match criteria and a corresponding action to apply.", 9513 Type: []string{"array"}, 9514 Items: &spec.SchemaOrArray{ 9515 Schema: &spec.Schema{ 9516 SchemaProps: spec.SchemaProps{ 9517 Default: map[string]interface{}{}, 9518 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.Rule"), 9519 }, 9520 }, 9521 }, 9522 }, 9523 }, 9524 "egress": { 9525 SchemaProps: spec.SchemaProps{ 9526 Description: "The ordered set of egress rules. Each rule contains a set of packet match criteria and a corresponding action to apply.", 9527 Type: []string{"array"}, 9528 Items: &spec.SchemaOrArray{ 9529 Schema: &spec.Schema{ 9530 SchemaProps: spec.SchemaProps{ 9531 Default: map[string]interface{}{}, 9532 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.Rule"), 9533 }, 9534 }, 9535 }, 9536 }, 9537 }, 9538 "selector": { 9539 SchemaProps: spec.SchemaProps{ 9540 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)", 9541 Type: []string{"string"}, 9542 Format: "", 9543 }, 9544 }, 9545 "types": { 9546 SchemaProps: spec.SchemaProps{ 9547 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.", 9548 Type: []string{"array"}, 9549 Items: &spec.SchemaOrArray{ 9550 Schema: &spec.Schema{ 9551 SchemaProps: spec.SchemaProps{ 9552 Default: "", 9553 Type: []string{"string"}, 9554 Format: "", 9555 }, 9556 }, 9557 }, 9558 }, 9559 }, 9560 "serviceAccountSelector": { 9561 SchemaProps: spec.SchemaProps{ 9562 Description: "ServiceAccountSelector is an optional field for an expression used to select a pod based on service accounts.", 9563 Type: []string{"string"}, 9564 Format: "", 9565 }, 9566 }, 9567 "performanceHints": { 9568 SchemaProps: spec.SchemaProps{ 9569 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.", 9570 Type: []string{"array"}, 9571 Items: &spec.SchemaOrArray{ 9572 Schema: &spec.Schema{ 9573 SchemaProps: spec.SchemaProps{ 9574 Default: "", 9575 Type: []string{"string"}, 9576 Format: "", 9577 }, 9578 }, 9579 }, 9580 }, 9581 }, 9582 }, 9583 }, 9584 }, 9585 Dependencies: []string{ 9586 "github.com/tigera/api/pkg/apis/projectcalico/v3.Rule"}, 9587 } 9588 } 9589 9590 func schema_pkg_apis_projectcalico_v3_NetworkSet(ref common.ReferenceCallback) common.OpenAPIDefinition { 9591 return common.OpenAPIDefinition{ 9592 Schema: spec.Schema{ 9593 SchemaProps: spec.SchemaProps{ 9594 Type: []string{"object"}, 9595 Properties: map[string]spec.Schema{ 9596 "kind": { 9597 SchemaProps: spec.SchemaProps{ 9598 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 9599 Type: []string{"string"}, 9600 Format: "", 9601 }, 9602 }, 9603 "apiVersion": { 9604 SchemaProps: spec.SchemaProps{ 9605 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 9606 Type: []string{"string"}, 9607 Format: "", 9608 }, 9609 }, 9610 "metadata": { 9611 SchemaProps: spec.SchemaProps{ 9612 Default: map[string]interface{}{}, 9613 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 9614 }, 9615 }, 9616 "spec": { 9617 SchemaProps: spec.SchemaProps{ 9618 Default: map[string]interface{}{}, 9619 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.NetworkSetSpec"), 9620 }, 9621 }, 9622 }, 9623 }, 9624 }, 9625 Dependencies: []string{ 9626 "github.com/tigera/api/pkg/apis/projectcalico/v3.NetworkSetSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 9627 } 9628 } 9629 9630 func schema_pkg_apis_projectcalico_v3_NetworkSetList(ref common.ReferenceCallback) common.OpenAPIDefinition { 9631 return common.OpenAPIDefinition{ 9632 Schema: spec.Schema{ 9633 SchemaProps: spec.SchemaProps{ 9634 Description: "NetworkSetList is a list of NetworkSet objects.", 9635 Type: []string{"object"}, 9636 Properties: map[string]spec.Schema{ 9637 "kind": { 9638 SchemaProps: spec.SchemaProps{ 9639 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 9640 Type: []string{"string"}, 9641 Format: "", 9642 }, 9643 }, 9644 "apiVersion": { 9645 SchemaProps: spec.SchemaProps{ 9646 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 9647 Type: []string{"string"}, 9648 Format: "", 9649 }, 9650 }, 9651 "metadata": { 9652 SchemaProps: spec.SchemaProps{ 9653 Default: map[string]interface{}{}, 9654 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 9655 }, 9656 }, 9657 "items": { 9658 SchemaProps: spec.SchemaProps{ 9659 Type: []string{"array"}, 9660 Items: &spec.SchemaOrArray{ 9661 Schema: &spec.Schema{ 9662 SchemaProps: spec.SchemaProps{ 9663 Default: map[string]interface{}{}, 9664 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.NetworkSet"), 9665 }, 9666 }, 9667 }, 9668 }, 9669 }, 9670 }, 9671 Required: []string{"items"}, 9672 }, 9673 }, 9674 Dependencies: []string{ 9675 "github.com/tigera/api/pkg/apis/projectcalico/v3.NetworkSet", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 9676 } 9677 } 9678 9679 func schema_pkg_apis_projectcalico_v3_NetworkSetSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 9680 return common.OpenAPIDefinition{ 9681 Schema: spec.Schema{ 9682 SchemaProps: spec.SchemaProps{ 9683 Description: "NetworkSetSpec contains the specification for a NetworkSet resource.", 9684 Type: []string{"object"}, 9685 Properties: map[string]spec.Schema{ 9686 "nets": { 9687 SchemaProps: spec.SchemaProps{ 9688 Description: "The list of IP networks that belong to this set.", 9689 Type: []string{"array"}, 9690 Items: &spec.SchemaOrArray{ 9691 Schema: &spec.Schema{ 9692 SchemaProps: spec.SchemaProps{ 9693 Default: "", 9694 Type: []string{"string"}, 9695 Format: "", 9696 }, 9697 }, 9698 }, 9699 }, 9700 }, 9701 "allowedEgressDomains": { 9702 SchemaProps: spec.SchemaProps{ 9703 Description: "The list of domain names that belong to this set and are honored in egress allow rules only. Domain names specified here only work to allow egress traffic from the cluster to external destinations. They don't work to _deny_ traffic to destinations specified by domain name, or to allow ingress traffic from _sources_ specified by domain name.", 9704 Type: []string{"array"}, 9705 Items: &spec.SchemaOrArray{ 9706 Schema: &spec.Schema{ 9707 SchemaProps: spec.SchemaProps{ 9708 Default: "", 9709 Type: []string{"string"}, 9710 Format: "", 9711 }, 9712 }, 9713 }, 9714 }, 9715 }, 9716 }, 9717 }, 9718 }, 9719 } 9720 } 9721 9722 func schema_pkg_apis_projectcalico_v3_NodeControllerConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 9723 return common.OpenAPIDefinition{ 9724 Schema: spec.Schema{ 9725 SchemaProps: spec.SchemaProps{ 9726 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.", 9727 Type: []string{"object"}, 9728 Properties: map[string]spec.Schema{ 9729 "reconcilerPeriod": { 9730 SchemaProps: spec.SchemaProps{ 9731 Description: "ReconcilerPeriod is the period to perform reconciliation with the Calico datastore. [Default: 5m]", 9732 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 9733 }, 9734 }, 9735 "syncLabels": { 9736 SchemaProps: spec.SchemaProps{ 9737 Description: "SyncLabels controls whether to copy Kubernetes node labels to Calico nodes. [Default: Enabled]", 9738 Type: []string{"string"}, 9739 Format: "", 9740 }, 9741 }, 9742 "hostEndpoint": { 9743 SchemaProps: spec.SchemaProps{ 9744 Description: "HostEndpoint controls syncing nodes to host endpoints. Disabled by default, set to nil to disable.", 9745 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.AutoHostEndpointConfig"), 9746 }, 9747 }, 9748 "leakGracePeriod": { 9749 SchemaProps: spec.SchemaProps{ 9750 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]", 9751 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 9752 }, 9753 }, 9754 }, 9755 }, 9756 }, 9757 Dependencies: []string{ 9758 "github.com/tigera/api/pkg/apis/projectcalico/v3.AutoHostEndpointConfig", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration"}, 9759 } 9760 } 9761 9762 func schema_pkg_apis_projectcalico_v3_PacketCapture(ref common.ReferenceCallback) common.OpenAPIDefinition { 9763 return common.OpenAPIDefinition{ 9764 Schema: spec.Schema{ 9765 SchemaProps: spec.SchemaProps{ 9766 Description: "PacketCapture contains the configuration for any packet capture.", 9767 Type: []string{"object"}, 9768 Properties: map[string]spec.Schema{ 9769 "kind": { 9770 SchemaProps: spec.SchemaProps{ 9771 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 9772 Type: []string{"string"}, 9773 Format: "", 9774 }, 9775 }, 9776 "apiVersion": { 9777 SchemaProps: spec.SchemaProps{ 9778 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 9779 Type: []string{"string"}, 9780 Format: "", 9781 }, 9782 }, 9783 "metadata": { 9784 SchemaProps: spec.SchemaProps{ 9785 Description: "Standard object's metadata.", 9786 Default: map[string]interface{}{}, 9787 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 9788 }, 9789 }, 9790 "spec": { 9791 SchemaProps: spec.SchemaProps{ 9792 Description: "Specification of the PacketCapture.", 9793 Default: map[string]interface{}{}, 9794 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.PacketCaptureSpec"), 9795 }, 9796 }, 9797 "status": { 9798 SchemaProps: spec.SchemaProps{ 9799 Description: "Status of the PacketCapture", 9800 Default: map[string]interface{}{}, 9801 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.PacketCaptureStatus"), 9802 }, 9803 }, 9804 }, 9805 }, 9806 }, 9807 Dependencies: []string{ 9808 "github.com/tigera/api/pkg/apis/projectcalico/v3.PacketCaptureSpec", "github.com/tigera/api/pkg/apis/projectcalico/v3.PacketCaptureStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 9809 } 9810 } 9811 9812 func schema_pkg_apis_projectcalico_v3_PacketCaptureFile(ref common.ReferenceCallback) common.OpenAPIDefinition { 9813 return common.OpenAPIDefinition{ 9814 Schema: spec.Schema{ 9815 SchemaProps: spec.SchemaProps{ 9816 Description: "PacketCaptureFile describes files generated by a PacketCapture. It describes the location of the packet capture files that is identified via a node, its directory and the file names generated.", 9817 Type: []string{"object"}, 9818 Properties: map[string]spec.Schema{ 9819 "node": { 9820 SchemaProps: spec.SchemaProps{ 9821 Description: "Node identifies with a physical node from the cluster via its hostname", 9822 Type: []string{"string"}, 9823 Format: "", 9824 }, 9825 }, 9826 "directory": { 9827 SchemaProps: spec.SchemaProps{ 9828 Description: "Directory represents the path inside the calico-node container for the the generated files", 9829 Type: []string{"string"}, 9830 Format: "", 9831 }, 9832 }, 9833 "fileNames": { 9834 SchemaProps: spec.SchemaProps{ 9835 Description: "FileNames represents the name of the generated file for a PacketCapture ordered alphanumerically. The active packet capture file will be identified using the following schema: \"{workload endpoint name}_{host network interface}.pcap\" . Rotated capture files name will contain an index matching the rotation timestamp.", 9836 Type: []string{"array"}, 9837 Items: &spec.SchemaOrArray{ 9838 Schema: &spec.Schema{ 9839 SchemaProps: spec.SchemaProps{ 9840 Default: "", 9841 Type: []string{"string"}, 9842 Format: "", 9843 }, 9844 }, 9845 }, 9846 }, 9847 }, 9848 "state": { 9849 SchemaProps: spec.SchemaProps{ 9850 Type: []string{"string"}, 9851 Format: "", 9852 }, 9853 }, 9854 }, 9855 }, 9856 }, 9857 } 9858 } 9859 9860 func schema_pkg_apis_projectcalico_v3_PacketCaptureList(ref common.ReferenceCallback) common.OpenAPIDefinition { 9861 return common.OpenAPIDefinition{ 9862 Schema: spec.Schema{ 9863 SchemaProps: spec.SchemaProps{ 9864 Description: "PacketCaptureList contains a list of PacketCapture resources.", 9865 Type: []string{"object"}, 9866 Properties: map[string]spec.Schema{ 9867 "kind": { 9868 SchemaProps: spec.SchemaProps{ 9869 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 9870 Type: []string{"string"}, 9871 Format: "", 9872 }, 9873 }, 9874 "apiVersion": { 9875 SchemaProps: spec.SchemaProps{ 9876 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 9877 Type: []string{"string"}, 9878 Format: "", 9879 }, 9880 }, 9881 "metadata": { 9882 SchemaProps: spec.SchemaProps{ 9883 Default: map[string]interface{}{}, 9884 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 9885 }, 9886 }, 9887 "items": { 9888 SchemaProps: spec.SchemaProps{ 9889 Type: []string{"array"}, 9890 Items: &spec.SchemaOrArray{ 9891 Schema: &spec.Schema{ 9892 SchemaProps: spec.SchemaProps{ 9893 Default: map[string]interface{}{}, 9894 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.PacketCapture"), 9895 }, 9896 }, 9897 }, 9898 }, 9899 }, 9900 }, 9901 Required: []string{"metadata", "items"}, 9902 }, 9903 }, 9904 Dependencies: []string{ 9905 "github.com/tigera/api/pkg/apis/projectcalico/v3.PacketCapture", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 9906 } 9907 } 9908 9909 func schema_pkg_apis_projectcalico_v3_PacketCaptureRule(ref common.ReferenceCallback) common.OpenAPIDefinition { 9910 return common.OpenAPIDefinition{ 9911 Schema: spec.Schema{ 9912 SchemaProps: spec.SchemaProps{ 9913 Description: "A PacketCaptureRule encapsulates a set of match criteria for traffic captured from an interface.", 9914 Type: []string{"object"}, 9915 Properties: map[string]spec.Schema{ 9916 "protocol": { 9917 SchemaProps: spec.SchemaProps{ 9918 Description: "Protocol is an optional field that defines a filter for all traffic for a specific IP protocol.\n\nMust be one of these string values: \"TCP\", \"UDP\", \"ICMP\", \"ICMPv6\", \"SCTP\", \"UDPLite\" or an integer in the range 1-255.", 9919 Ref: ref("github.com/tigera/api/pkg/lib/numorstring.Protocol"), 9920 }, 9921 }, 9922 "ports": { 9923 SchemaProps: spec.SchemaProps{ 9924 Description: "Ports is an optional field that defines a filter for all traffic that has a source or destination port that matches one of these ranges/values. This value is a list of integers or strings that represent ranges of ports.", 9925 Type: []string{"array"}, 9926 Items: &spec.SchemaOrArray{ 9927 Schema: &spec.Schema{ 9928 SchemaProps: spec.SchemaProps{ 9929 Default: map[string]interface{}{}, 9930 Ref: ref("github.com/tigera/api/pkg/lib/numorstring.Port"), 9931 }, 9932 }, 9933 }, 9934 }, 9935 }, 9936 }, 9937 }, 9938 }, 9939 Dependencies: []string{ 9940 "github.com/tigera/api/pkg/lib/numorstring.Port", "github.com/tigera/api/pkg/lib/numorstring.Protocol"}, 9941 } 9942 } 9943 9944 func schema_pkg_apis_projectcalico_v3_PacketCaptureSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 9945 return common.OpenAPIDefinition{ 9946 Schema: spec.Schema{ 9947 SchemaProps: spec.SchemaProps{ 9948 Description: "PacketCaptureSpec contains the values of the packet capture.", 9949 Type: []string{"object"}, 9950 Properties: map[string]spec.Schema{ 9951 "selector": { 9952 SchemaProps: spec.SchemaProps{ 9953 Description: "The selector is an expression used to pick out the endpoints that the policy should be applied to. The selector will only match endpoints in the same namespace as the PacketCapture resource.\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() -> matches all endpoints.\n\tan empty selector will default to all\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)", 9954 Type: []string{"string"}, 9955 Format: "", 9956 }, 9957 }, 9958 "filters": { 9959 SchemaProps: spec.SchemaProps{ 9960 Description: "The ordered set of filters applied to traffic captured from an interface. Each rule contains a set of packet match criteria.", 9961 Type: []string{"array"}, 9962 Items: &spec.SchemaOrArray{ 9963 Schema: &spec.Schema{ 9964 SchemaProps: spec.SchemaProps{ 9965 Default: map[string]interface{}{}, 9966 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.PacketCaptureRule"), 9967 }, 9968 }, 9969 }, 9970 }, 9971 }, 9972 "startTime": { 9973 SchemaProps: spec.SchemaProps{ 9974 Description: "Defines the start time from which this PacketCapture will capture packets. If omitted or the value is in the past, the capture will start immediately. If the value is changed to a future time, capture will stop immediately and restart at that time", 9975 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 9976 }, 9977 }, 9978 "endTime": { 9979 SchemaProps: spec.SchemaProps{ 9980 Description: "Defines the end time at which this PacketCapture will stop capturing packets. If omitted the capture will continue indefinitely. If the value is changed to the past, capture will stop immediately.", 9981 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 9982 }, 9983 }, 9984 }, 9985 }, 9986 }, 9987 Dependencies: []string{ 9988 "github.com/tigera/api/pkg/apis/projectcalico/v3.PacketCaptureRule", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 9989 } 9990 } 9991 9992 func schema_pkg_apis_projectcalico_v3_PacketCaptureStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 9993 return common.OpenAPIDefinition{ 9994 Schema: spec.Schema{ 9995 SchemaProps: spec.SchemaProps{ 9996 Description: "PacketCaptureStatus describes the files that have been captured, for a given PacketCapture, on each node that generates packet capture files", 9997 Type: []string{"object"}, 9998 Properties: map[string]spec.Schema{ 9999 "files": { 10000 SchemaProps: spec.SchemaProps{ 10001 Type: []string{"array"}, 10002 Items: &spec.SchemaOrArray{ 10003 Schema: &spec.Schema{ 10004 SchemaProps: spec.SchemaProps{ 10005 Default: map[string]interface{}{}, 10006 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.PacketCaptureFile"), 10007 }, 10008 }, 10009 }, 10010 }, 10011 }, 10012 }, 10013 }, 10014 }, 10015 Dependencies: []string{ 10016 "github.com/tigera/api/pkg/apis/projectcalico/v3.PacketCaptureFile"}, 10017 } 10018 } 10019 10020 func schema_pkg_apis_projectcalico_v3_PolicyControllerConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 10021 return common.OpenAPIDefinition{ 10022 Schema: spec.Schema{ 10023 SchemaProps: spec.SchemaProps{ 10024 Description: "PolicyControllerConfig configures the network policy controller, which syncs Kubernetes policies to Calico policies (only used for etcdv3 datastore).", 10025 Type: []string{"object"}, 10026 Properties: map[string]spec.Schema{ 10027 "reconcilerPeriod": { 10028 SchemaProps: spec.SchemaProps{ 10029 Description: "ReconcilerPeriod is the period to perform reconciliation with the Calico datastore. [Default: 5m]", 10030 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 10031 }, 10032 }, 10033 }, 10034 }, 10035 }, 10036 Dependencies: []string{ 10037 "k8s.io/apimachinery/pkg/apis/meta/v1.Duration"}, 10038 } 10039 } 10040 10041 func schema_pkg_apis_projectcalico_v3_PolicyRecommendationScope(ref common.ReferenceCallback) common.OpenAPIDefinition { 10042 return common.OpenAPIDefinition{ 10043 Schema: spec.Schema{ 10044 SchemaProps: spec.SchemaProps{ 10045 Type: []string{"object"}, 10046 Properties: map[string]spec.Schema{ 10047 "kind": { 10048 SchemaProps: spec.SchemaProps{ 10049 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 10050 Type: []string{"string"}, 10051 Format: "", 10052 }, 10053 }, 10054 "apiVersion": { 10055 SchemaProps: spec.SchemaProps{ 10056 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 10057 Type: []string{"string"}, 10058 Format: "", 10059 }, 10060 }, 10061 "metadata": { 10062 SchemaProps: spec.SchemaProps{ 10063 Default: map[string]interface{}{}, 10064 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 10065 }, 10066 }, 10067 "spec": { 10068 SchemaProps: spec.SchemaProps{ 10069 Default: map[string]interface{}{}, 10070 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.PolicyRecommendationScopeSpec"), 10071 }, 10072 }, 10073 "status": { 10074 SchemaProps: spec.SchemaProps{ 10075 Default: map[string]interface{}{}, 10076 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.PolicyRecommendationScopeStatus"), 10077 }, 10078 }, 10079 }, 10080 }, 10081 }, 10082 Dependencies: []string{ 10083 "github.com/tigera/api/pkg/apis/projectcalico/v3.PolicyRecommendationScopeSpec", "github.com/tigera/api/pkg/apis/projectcalico/v3.PolicyRecommendationScopeStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 10084 } 10085 } 10086 10087 func schema_pkg_apis_projectcalico_v3_PolicyRecommendationScopeList(ref common.ReferenceCallback) common.OpenAPIDefinition { 10088 return common.OpenAPIDefinition{ 10089 Schema: spec.Schema{ 10090 SchemaProps: spec.SchemaProps{ 10091 Description: "PolicyRecommendationList contains a list of Monitor", 10092 Type: []string{"object"}, 10093 Properties: map[string]spec.Schema{ 10094 "kind": { 10095 SchemaProps: spec.SchemaProps{ 10096 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 10097 Type: []string{"string"}, 10098 Format: "", 10099 }, 10100 }, 10101 "apiVersion": { 10102 SchemaProps: spec.SchemaProps{ 10103 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 10104 Type: []string{"string"}, 10105 Format: "", 10106 }, 10107 }, 10108 "metadata": { 10109 SchemaProps: spec.SchemaProps{ 10110 Default: map[string]interface{}{}, 10111 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 10112 }, 10113 }, 10114 "items": { 10115 SchemaProps: spec.SchemaProps{ 10116 Type: []string{"array"}, 10117 Items: &spec.SchemaOrArray{ 10118 Schema: &spec.Schema{ 10119 SchemaProps: spec.SchemaProps{ 10120 Default: map[string]interface{}{}, 10121 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.PolicyRecommendationScope"), 10122 }, 10123 }, 10124 }, 10125 }, 10126 }, 10127 }, 10128 Required: []string{"items"}, 10129 }, 10130 }, 10131 Dependencies: []string{ 10132 "github.com/tigera/api/pkg/apis/projectcalico/v3.PolicyRecommendationScope", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 10133 } 10134 } 10135 10136 func schema_pkg_apis_projectcalico_v3_PolicyRecommendationScopeNamespaceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 10137 return common.OpenAPIDefinition{ 10138 Schema: spec.Schema{ 10139 SchemaProps: spec.SchemaProps{ 10140 Description: "PolicyRecommendationScopeNamespaceSpec contains namespace information that defines the namespace based recommended policy.", 10141 Type: []string{"object"}, 10142 Properties: map[string]spec.Schema{ 10143 "intraNamespacePassThroughTraffic": { 10144 SchemaProps: spec.SchemaProps{ 10145 Description: "Pass intra-namespace traffic. [Default: false]", 10146 Type: []string{"boolean"}, 10147 Format: "", 10148 }, 10149 }, 10150 "recStatus": { 10151 SchemaProps: spec.SchemaProps{ 10152 Description: "Recommendation status. One of Enabled, Disabled.", 10153 Type: []string{"string"}, 10154 Format: "", 10155 }, 10156 }, 10157 "selector": { 10158 SchemaProps: spec.SchemaProps{ 10159 Description: "The namespace selector is an expression used to pick out the namespaces that the policy recommendation engine should create policies for. The syntax is the same as the NetworkPolicy.projectcalico.org resource selectors.", 10160 Default: "", 10161 Type: []string{"string"}, 10162 Format: "", 10163 }, 10164 }, 10165 "tierName": { 10166 SchemaProps: spec.SchemaProps{ 10167 Description: "The name of the policy recommendation tier for namespace-isolated policies. [Default: \"namespace-isolation\"]", 10168 Type: []string{"string"}, 10169 Format: "", 10170 }, 10171 }, 10172 }, 10173 Required: []string{"selector"}, 10174 }, 10175 }, 10176 } 10177 } 10178 10179 func schema_pkg_apis_projectcalico_v3_PolicyRecommendationScopeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 10180 return common.OpenAPIDefinition{ 10181 Schema: spec.Schema{ 10182 SchemaProps: spec.SchemaProps{ 10183 Type: []string{"object"}, 10184 Properties: map[string]spec.Schema{ 10185 "interval": { 10186 SchemaProps: spec.SchemaProps{ 10187 Description: "How frequently to run the recommendation engine to create and refine recommended policies. [Default: 150s]", 10188 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 10189 }, 10190 }, 10191 "initialLookback": { 10192 SchemaProps: spec.SchemaProps{ 10193 Description: "How far back to look in flow logs when first creating a recommended policy. [Default: 24h]", 10194 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 10195 }, 10196 }, 10197 "stabilizationPeriod": { 10198 SchemaProps: spec.SchemaProps{ 10199 Description: "StabilizationPeriod is the amount of time a recommended policy should remain unchanged to be deemed stable and ready to be enforced. [Default: 10m]", 10200 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 10201 }, 10202 }, 10203 "maxRules": { 10204 SchemaProps: spec.SchemaProps{ 10205 Description: "The maximum number of rules that are permitted in the ingress or egress set. For egress rules, any egress domain rules will be simplified by contracting all domains into a single egress domain NetworkSet. If the number of rules exceeds this limit, the recommendation engine will treat this as an error condition. [Default: 20]", 10206 Type: []string{"integer"}, 10207 Format: "int32", 10208 }, 10209 }, 10210 "policiesLearningCutOff": { 10211 SchemaProps: spec.SchemaProps{ 10212 Description: "The number of staged policies that are actively learning at any one time, after which the policy recommendation engine will stop adding new recommendations. [Default: 20]", 10213 Type: []string{"integer"}, 10214 Format: "int32", 10215 }, 10216 }, 10217 "namespaceSpec": { 10218 SchemaProps: spec.SchemaProps{ 10219 Description: "The namespace spec contains the namespace relative recommendation vars.", 10220 Default: map[string]interface{}{}, 10221 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.PolicyRecommendationScopeNamespaceSpec"), 10222 }, 10223 }, 10224 }, 10225 }, 10226 }, 10227 Dependencies: []string{ 10228 "github.com/tigera/api/pkg/apis/projectcalico/v3.PolicyRecommendationScopeNamespaceSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration"}, 10229 } 10230 } 10231 10232 func schema_pkg_apis_projectcalico_v3_PolicyRecommendationScopeStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 10233 return common.OpenAPIDefinition{ 10234 Schema: spec.Schema{ 10235 SchemaProps: spec.SchemaProps{ 10236 Type: []string{"object"}, 10237 Properties: map[string]spec.Schema{ 10238 "conditions": { 10239 SchemaProps: spec.SchemaProps{ 10240 Type: []string{"array"}, 10241 Items: &spec.SchemaOrArray{ 10242 Schema: &spec.Schema{ 10243 SchemaProps: spec.SchemaProps{ 10244 Default: map[string]interface{}{}, 10245 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.PolicyRecommendationScopeStatusCondition"), 10246 }, 10247 }, 10248 }, 10249 }, 10250 }, 10251 }, 10252 }, 10253 }, 10254 Dependencies: []string{ 10255 "github.com/tigera/api/pkg/apis/projectcalico/v3.PolicyRecommendationScopeStatusCondition"}, 10256 } 10257 } 10258 10259 func schema_pkg_apis_projectcalico_v3_PolicyRecommendationScopeStatusCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 10260 return common.OpenAPIDefinition{ 10261 Schema: spec.Schema{ 10262 SchemaProps: spec.SchemaProps{ 10263 Description: "Condition contains various status information", 10264 Type: []string{"object"}, 10265 Properties: map[string]spec.Schema{ 10266 "message": { 10267 SchemaProps: spec.SchemaProps{ 10268 Type: []string{"string"}, 10269 Format: "", 10270 }, 10271 }, 10272 "reason": { 10273 SchemaProps: spec.SchemaProps{ 10274 Type: []string{"string"}, 10275 Format: "", 10276 }, 10277 }, 10278 "status": { 10279 SchemaProps: spec.SchemaProps{ 10280 Default: "", 10281 Type: []string{"string"}, 10282 Format: "", 10283 }, 10284 }, 10285 "type": { 10286 SchemaProps: spec.SchemaProps{ 10287 Default: "", 10288 Type: []string{"string"}, 10289 Format: "", 10290 }, 10291 }, 10292 }, 10293 Required: []string{"status", "type"}, 10294 }, 10295 }, 10296 } 10297 } 10298 10299 func schema_pkg_apis_projectcalico_v3_Position(ref common.ReferenceCallback) common.OpenAPIDefinition { 10300 return common.OpenAPIDefinition{ 10301 Schema: spec.Schema{ 10302 SchemaProps: spec.SchemaProps{ 10303 Description: "UI screen position.", 10304 Type: []string{"object"}, 10305 Properties: map[string]spec.Schema{ 10306 "id": { 10307 SchemaProps: spec.SchemaProps{ 10308 Default: "", 10309 Type: []string{"string"}, 10310 Format: "", 10311 }, 10312 }, 10313 "xPos": { 10314 SchemaProps: spec.SchemaProps{ 10315 Default: 0, 10316 Type: []string{"integer"}, 10317 Format: "int32", 10318 }, 10319 }, 10320 "yPos": { 10321 SchemaProps: spec.SchemaProps{ 10322 Default: 0, 10323 Type: []string{"integer"}, 10324 Format: "int32", 10325 }, 10326 }, 10327 "zPos": { 10328 SchemaProps: spec.SchemaProps{ 10329 Default: 0, 10330 Type: []string{"integer"}, 10331 Format: "int32", 10332 }, 10333 }, 10334 }, 10335 Required: []string{"id", "xPos", "yPos", "zPos"}, 10336 }, 10337 }, 10338 } 10339 } 10340 10341 func schema_pkg_apis_projectcalico_v3_PrefixAdvertisement(ref common.ReferenceCallback) common.OpenAPIDefinition { 10342 return common.OpenAPIDefinition{ 10343 Schema: spec.Schema{ 10344 SchemaProps: spec.SchemaProps{ 10345 Description: "PrefixAdvertisement configures advertisement properties for the specified CIDR.", 10346 Type: []string{"object"}, 10347 Properties: map[string]spec.Schema{ 10348 "cidr": { 10349 SchemaProps: spec.SchemaProps{ 10350 Description: "CIDR for which properties should be advertised.", 10351 Type: []string{"string"}, 10352 Format: "", 10353 }, 10354 }, 10355 "communities": { 10356 SchemaProps: spec.SchemaProps{ 10357 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.", 10358 Type: []string{"array"}, 10359 Items: &spec.SchemaOrArray{ 10360 Schema: &spec.Schema{ 10361 SchemaProps: spec.SchemaProps{ 10362 Default: "", 10363 Type: []string{"string"}, 10364 Format: "", 10365 }, 10366 }, 10367 }, 10368 }, 10369 }, 10370 }, 10371 }, 10372 }, 10373 } 10374 } 10375 10376 func schema_pkg_apis_projectcalico_v3_Profile(ref common.ReferenceCallback) common.OpenAPIDefinition { 10377 return common.OpenAPIDefinition{ 10378 Schema: spec.Schema{ 10379 SchemaProps: spec.SchemaProps{ 10380 Type: []string{"object"}, 10381 Properties: map[string]spec.Schema{ 10382 "kind": { 10383 SchemaProps: spec.SchemaProps{ 10384 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 10385 Type: []string{"string"}, 10386 Format: "", 10387 }, 10388 }, 10389 "apiVersion": { 10390 SchemaProps: spec.SchemaProps{ 10391 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 10392 Type: []string{"string"}, 10393 Format: "", 10394 }, 10395 }, 10396 "metadata": { 10397 SchemaProps: spec.SchemaProps{ 10398 Default: map[string]interface{}{}, 10399 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 10400 }, 10401 }, 10402 "spec": { 10403 SchemaProps: spec.SchemaProps{ 10404 Default: map[string]interface{}{}, 10405 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ProfileSpec"), 10406 }, 10407 }, 10408 }, 10409 }, 10410 }, 10411 Dependencies: []string{ 10412 "github.com/tigera/api/pkg/apis/projectcalico/v3.ProfileSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 10413 } 10414 } 10415 10416 func schema_pkg_apis_projectcalico_v3_ProfileList(ref common.ReferenceCallback) common.OpenAPIDefinition { 10417 return common.OpenAPIDefinition{ 10418 Schema: spec.Schema{ 10419 SchemaProps: spec.SchemaProps{ 10420 Description: "ProfileList is a list of Profile objects.", 10421 Type: []string{"object"}, 10422 Properties: map[string]spec.Schema{ 10423 "kind": { 10424 SchemaProps: spec.SchemaProps{ 10425 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 10426 Type: []string{"string"}, 10427 Format: "", 10428 }, 10429 }, 10430 "apiVersion": { 10431 SchemaProps: spec.SchemaProps{ 10432 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 10433 Type: []string{"string"}, 10434 Format: "", 10435 }, 10436 }, 10437 "metadata": { 10438 SchemaProps: spec.SchemaProps{ 10439 Default: map[string]interface{}{}, 10440 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 10441 }, 10442 }, 10443 "items": { 10444 SchemaProps: spec.SchemaProps{ 10445 Type: []string{"array"}, 10446 Items: &spec.SchemaOrArray{ 10447 Schema: &spec.Schema{ 10448 SchemaProps: spec.SchemaProps{ 10449 Default: map[string]interface{}{}, 10450 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.Profile"), 10451 }, 10452 }, 10453 }, 10454 }, 10455 }, 10456 }, 10457 Required: []string{"items"}, 10458 }, 10459 }, 10460 Dependencies: []string{ 10461 "github.com/tigera/api/pkg/apis/projectcalico/v3.Profile", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 10462 } 10463 } 10464 10465 func schema_pkg_apis_projectcalico_v3_ProfileSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 10466 return common.OpenAPIDefinition{ 10467 Schema: spec.Schema{ 10468 SchemaProps: spec.SchemaProps{ 10469 Description: "ProfileSpec contains the specification for a security Profile resource.", 10470 Type: []string{"object"}, 10471 Properties: map[string]spec.Schema{ 10472 "ingress": { 10473 SchemaProps: spec.SchemaProps{ 10474 Description: "The ordered set of ingress rules. Each rule contains a set of packet match criteria and a corresponding action to apply.", 10475 Type: []string{"array"}, 10476 Items: &spec.SchemaOrArray{ 10477 Schema: &spec.Schema{ 10478 SchemaProps: spec.SchemaProps{ 10479 Default: map[string]interface{}{}, 10480 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.Rule"), 10481 }, 10482 }, 10483 }, 10484 }, 10485 }, 10486 "egress": { 10487 SchemaProps: spec.SchemaProps{ 10488 Description: "The ordered set of egress rules. Each rule contains a set of packet match criteria and a corresponding action to apply.", 10489 Type: []string{"array"}, 10490 Items: &spec.SchemaOrArray{ 10491 Schema: &spec.Schema{ 10492 SchemaProps: spec.SchemaProps{ 10493 Default: map[string]interface{}{}, 10494 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.Rule"), 10495 }, 10496 }, 10497 }, 10498 }, 10499 }, 10500 "labelsToApply": { 10501 SchemaProps: spec.SchemaProps{ 10502 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.", 10503 Type: []string{"object"}, 10504 AdditionalProperties: &spec.SchemaOrBool{ 10505 Allows: true, 10506 Schema: &spec.Schema{ 10507 SchemaProps: spec.SchemaProps{ 10508 Default: "", 10509 Type: []string{"string"}, 10510 Format: "", 10511 }, 10512 }, 10513 }, 10514 }, 10515 }, 10516 "egressGateway": { 10517 SchemaProps: spec.SchemaProps{ 10518 Description: "Egress control.", 10519 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.EgressGatewaySpec"), 10520 }, 10521 }, 10522 }, 10523 }, 10524 }, 10525 Dependencies: []string{ 10526 "github.com/tigera/api/pkg/apis/projectcalico/v3.EgressGatewaySpec", "github.com/tigera/api/pkg/apis/projectcalico/v3.Rule"}, 10527 } 10528 } 10529 10530 func schema_pkg_apis_projectcalico_v3_ProtoPort(ref common.ReferenceCallback) common.OpenAPIDefinition { 10531 return common.OpenAPIDefinition{ 10532 Schema: spec.Schema{ 10533 SchemaProps: spec.SchemaProps{ 10534 Description: "ProtoPort is combination of protocol, port, and CIDR. Protocol and port must be specified.", 10535 Type: []string{"object"}, 10536 Properties: map[string]spec.Schema{ 10537 "protocol": { 10538 SchemaProps: spec.SchemaProps{ 10539 Default: "", 10540 Type: []string{"string"}, 10541 Format: "", 10542 }, 10543 }, 10544 "port": { 10545 SchemaProps: spec.SchemaProps{ 10546 Default: 0, 10547 Type: []string{"integer"}, 10548 Format: "int32", 10549 }, 10550 }, 10551 "net": { 10552 SchemaProps: spec.SchemaProps{ 10553 Default: "", 10554 Type: []string{"string"}, 10555 Format: "", 10556 }, 10557 }, 10558 }, 10559 Required: []string{"protocol", "port"}, 10560 }, 10561 }, 10562 } 10563 } 10564 10565 func schema_pkg_apis_projectcalico_v3_Pull(ref common.ReferenceCallback) common.OpenAPIDefinition { 10566 return common.OpenAPIDefinition{ 10567 Schema: spec.Schema{ 10568 SchemaProps: spec.SchemaProps{ 10569 Type: []string{"object"}, 10570 Properties: map[string]spec.Schema{ 10571 "period": { 10572 SchemaProps: spec.SchemaProps{ 10573 Type: []string{"string"}, 10574 Format: "", 10575 }, 10576 }, 10577 "http": { 10578 SchemaProps: spec.SchemaProps{ 10579 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.HTTPPull"), 10580 }, 10581 }, 10582 }, 10583 Required: []string{"http"}, 10584 }, 10585 }, 10586 Dependencies: []string{ 10587 "github.com/tigera/api/pkg/apis/projectcalico/v3.HTTPPull"}, 10588 } 10589 } 10590 10591 func schema_pkg_apis_projectcalico_v3_RemoteClusterConfiguration(ref common.ReferenceCallback) common.OpenAPIDefinition { 10592 return common.OpenAPIDefinition{ 10593 Schema: spec.Schema{ 10594 SchemaProps: spec.SchemaProps{ 10595 Description: "RemoteClusterConfiguration contains the configuration for remote clusters.", 10596 Type: []string{"object"}, 10597 Properties: map[string]spec.Schema{ 10598 "kind": { 10599 SchemaProps: spec.SchemaProps{ 10600 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 10601 Type: []string{"string"}, 10602 Format: "", 10603 }, 10604 }, 10605 "apiVersion": { 10606 SchemaProps: spec.SchemaProps{ 10607 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 10608 Type: []string{"string"}, 10609 Format: "", 10610 }, 10611 }, 10612 "metadata": { 10613 SchemaProps: spec.SchemaProps{ 10614 Description: "Standard object's metadata.", 10615 Default: map[string]interface{}{}, 10616 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 10617 }, 10618 }, 10619 "spec": { 10620 SchemaProps: spec.SchemaProps{ 10621 Description: "Specification of the RemoteClusterConfiguration.", 10622 Default: map[string]interface{}{}, 10623 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.RemoteClusterConfigurationSpec"), 10624 }, 10625 }, 10626 }, 10627 }, 10628 }, 10629 Dependencies: []string{ 10630 "github.com/tigera/api/pkg/apis/projectcalico/v3.RemoteClusterConfigurationSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 10631 } 10632 } 10633 10634 func schema_pkg_apis_projectcalico_v3_RemoteClusterConfigurationList(ref common.ReferenceCallback) common.OpenAPIDefinition { 10635 return common.OpenAPIDefinition{ 10636 Schema: spec.Schema{ 10637 SchemaProps: spec.SchemaProps{ 10638 Description: "RemoteClusterConfigurationList contains a list of RemoteClusterConfiguration resources", 10639 Type: []string{"object"}, 10640 Properties: map[string]spec.Schema{ 10641 "kind": { 10642 SchemaProps: spec.SchemaProps{ 10643 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 10644 Type: []string{"string"}, 10645 Format: "", 10646 }, 10647 }, 10648 "apiVersion": { 10649 SchemaProps: spec.SchemaProps{ 10650 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 10651 Type: []string{"string"}, 10652 Format: "", 10653 }, 10654 }, 10655 "metadata": { 10656 SchemaProps: spec.SchemaProps{ 10657 Default: map[string]interface{}{}, 10658 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 10659 }, 10660 }, 10661 "items": { 10662 SchemaProps: spec.SchemaProps{ 10663 Type: []string{"array"}, 10664 Items: &spec.SchemaOrArray{ 10665 Schema: &spec.Schema{ 10666 SchemaProps: spec.SchemaProps{ 10667 Default: map[string]interface{}{}, 10668 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.RemoteClusterConfiguration"), 10669 }, 10670 }, 10671 }, 10672 }, 10673 }, 10674 }, 10675 Required: []string{"metadata", "items"}, 10676 }, 10677 }, 10678 Dependencies: []string{ 10679 "github.com/tigera/api/pkg/apis/projectcalico/v3.RemoteClusterConfiguration", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 10680 } 10681 } 10682 10683 func schema_pkg_apis_projectcalico_v3_RemoteClusterConfigurationSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 10684 return common.OpenAPIDefinition{ 10685 Schema: spec.Schema{ 10686 SchemaProps: spec.SchemaProps{ 10687 Description: "RemoteClusterConfigurationSpec contains the values of describing the cluster.", 10688 Type: []string{"object"}, 10689 Properties: map[string]spec.Schema{ 10690 "datastoreType": { 10691 SchemaProps: spec.SchemaProps{ 10692 Description: "Indicates the datastore to use. If unspecified, defaults to etcdv3", 10693 Type: []string{"string"}, 10694 Format: "", 10695 }, 10696 }, 10697 "clusterAccessSecret": { 10698 SchemaProps: spec.SchemaProps{ 10699 Description: "Specifies a Secret to read for the RemoteClusterconfiguration. If defined all datastore configuration in this struct will be cleared and overwritten with the appropriate fields in the Secret.", 10700 Ref: ref("k8s.io/api/core/v1.ObjectReference"), 10701 }, 10702 }, 10703 "etcdEndpoints": { 10704 SchemaProps: spec.SchemaProps{ 10705 Description: "A comma separated list of etcd endpoints. Valid if DatastoreType is etcdv3. [Default: ]", 10706 Type: []string{"string"}, 10707 Format: "", 10708 }, 10709 }, 10710 "etcdUsername": { 10711 SchemaProps: spec.SchemaProps{ 10712 Description: "User name for RBAC. Valid if DatastoreType is etcdv3.", 10713 Type: []string{"string"}, 10714 Format: "", 10715 }, 10716 }, 10717 "etcdPassword": { 10718 SchemaProps: spec.SchemaProps{ 10719 Description: "Password for the given user name. Valid if DatastoreType is etcdv3.", 10720 Type: []string{"string"}, 10721 Format: "", 10722 }, 10723 }, 10724 "etcdKeyFile": { 10725 SchemaProps: spec.SchemaProps{ 10726 Description: "Path to the etcd key file. Valid if DatastoreType is etcdv3.", 10727 Type: []string{"string"}, 10728 Format: "", 10729 }, 10730 }, 10731 "etcdCertFile": { 10732 SchemaProps: spec.SchemaProps{ 10733 Description: "Path to the etcd client certificate. Valid if DatastoreType is etcdv3.", 10734 Type: []string{"string"}, 10735 Format: "", 10736 }, 10737 }, 10738 "etcdCACertFile": { 10739 SchemaProps: spec.SchemaProps{ 10740 Description: "Path to the etcd Certificate Authority file. Valid if DatastoreType is etcdv3.", 10741 Type: []string{"string"}, 10742 Format: "", 10743 }, 10744 }, 10745 "etcdKey": { 10746 SchemaProps: spec.SchemaProps{ 10747 Description: "These config file parameters are to support inline certificates, keys and CA / Trusted certificate.", 10748 Type: []string{"string"}, 10749 Format: "", 10750 }, 10751 }, 10752 "etcdCert": { 10753 SchemaProps: spec.SchemaProps{ 10754 Type: []string{"string"}, 10755 Format: "", 10756 }, 10757 }, 10758 "etcdCACert": { 10759 SchemaProps: spec.SchemaProps{ 10760 Type: []string{"string"}, 10761 Format: "", 10762 }, 10763 }, 10764 "kubeconfig": { 10765 SchemaProps: spec.SchemaProps{ 10766 Description: "When using the Kubernetes datastore, the location of a kubeconfig file. Valid if DatastoreType is kubernetes.", 10767 Type: []string{"string"}, 10768 Format: "", 10769 }, 10770 }, 10771 "k8sAPIEndpoint": { 10772 SchemaProps: spec.SchemaProps{ 10773 Description: "Location of the Kubernetes API. Not required if using kubeconfig. Valid if DatastoreType is kubernetes.", 10774 Type: []string{"string"}, 10775 Format: "", 10776 }, 10777 }, 10778 "k8sKeyFile": { 10779 SchemaProps: spec.SchemaProps{ 10780 Description: "Location of a client key for accessing the Kubernetes API. Valid if DatastoreType is kubernetes.", 10781 Type: []string{"string"}, 10782 Format: "", 10783 }, 10784 }, 10785 "k8sCertFile": { 10786 SchemaProps: spec.SchemaProps{ 10787 Description: "Location of a client certificate for accessing the Kubernetes API. Valid if DatastoreType is kubernetes.", 10788 Type: []string{"string"}, 10789 Format: "", 10790 }, 10791 }, 10792 "k8sCAFile": { 10793 SchemaProps: spec.SchemaProps{ 10794 Description: "Location of a CA for accessing the Kubernetes API. Valid if DatastoreType is kubernetes.", 10795 Type: []string{"string"}, 10796 Format: "", 10797 }, 10798 }, 10799 "k8sAPIToken": { 10800 SchemaProps: spec.SchemaProps{ 10801 Description: "Token to be used for accessing the Kubernetes API. Valid if DatastoreType is kubernetes.", 10802 Type: []string{"string"}, 10803 Format: "", 10804 }, 10805 }, 10806 "k8sInsecureSkipTLSVerify": { 10807 SchemaProps: spec.SchemaProps{ 10808 Type: []string{"boolean"}, 10809 Format: "", 10810 }, 10811 }, 10812 "kubeconfigInline": { 10813 SchemaProps: spec.SchemaProps{ 10814 Description: "This is an alternative to Kubeconfig and if specified overrides Kubeconfig. This contains the contents that would normally be in the file pointed at by Kubeconfig.", 10815 Type: []string{"string"}, 10816 Format: "", 10817 }, 10818 }, 10819 "syncOptions": { 10820 SchemaProps: spec.SchemaProps{ 10821 Description: "Configuration options that do not relate to the underlying datastore connection. These fields relate to the syncing of resources once the connection is established. These fields can be set independent of the other connection-oriented fields, e.g. they can be set when ClusterAccessSecret is non-nil.", 10822 Default: map[string]interface{}{}, 10823 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.RemoteClusterSyncOptions"), 10824 }, 10825 }, 10826 }, 10827 }, 10828 }, 10829 Dependencies: []string{ 10830 "github.com/tigera/api/pkg/apis/projectcalico/v3.RemoteClusterSyncOptions", "k8s.io/api/core/v1.ObjectReference"}, 10831 } 10832 } 10833 10834 func schema_pkg_apis_projectcalico_v3_RemoteClusterSyncOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 10835 return common.OpenAPIDefinition{ 10836 Schema: spec.Schema{ 10837 SchemaProps: spec.SchemaProps{ 10838 Type: []string{"object"}, 10839 Properties: map[string]spec.Schema{ 10840 "overlayRoutingMode": { 10841 SchemaProps: spec.SchemaProps{ 10842 Description: "Determines whether overlay routing will be established between federated clusters. If unspecified during create or update of RemoteClusterConfiguration, this field will default based on the encapsulation mode of the local cluster at the time of RemoteClusterConfiguration application: \"Enabled\" if VXLAN, \"Disabled\" otherwise. If upgrading from a version that predates this field, this field will default to \"Disabled\".", 10843 Type: []string{"string"}, 10844 Format: "", 10845 }, 10846 }, 10847 }, 10848 }, 10849 }, 10850 } 10851 } 10852 10853 func schema_pkg_apis_projectcalico_v3_ReportData(ref common.ReferenceCallback) common.OpenAPIDefinition { 10854 return common.OpenAPIDefinition{ 10855 Schema: spec.Schema{ 10856 SchemaProps: spec.SchemaProps{ 10857 Description: "ReportData contains the aggregated data available for rendering in report templates. The data available is dependent on the selector/report configuration.\n\nThe data is stored directly in elastic search. To reduce nesting and simplify indexing, all summary values are contained at the top level.", 10858 Type: []string{"object"}, 10859 Properties: map[string]spec.Schema{ 10860 "reportName": { 10861 SchemaProps: spec.SchemaProps{ 10862 Default: "", 10863 Type: []string{"string"}, 10864 Format: "", 10865 }, 10866 }, 10867 "reportTypeName": { 10868 SchemaProps: spec.SchemaProps{ 10869 Default: "", 10870 Type: []string{"string"}, 10871 Format: "", 10872 }, 10873 }, 10874 "reportSpec": { 10875 SchemaProps: spec.SchemaProps{ 10876 Default: map[string]interface{}{}, 10877 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ReportSpec"), 10878 }, 10879 }, 10880 "reportTypeSpec": { 10881 SchemaProps: spec.SchemaProps{ 10882 Default: map[string]interface{}{}, 10883 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ReportTypeSpec"), 10884 }, 10885 }, 10886 "startTime": { 10887 SchemaProps: spec.SchemaProps{ 10888 Default: map[string]interface{}{}, 10889 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 10890 }, 10891 }, 10892 "endTime": { 10893 SchemaProps: spec.SchemaProps{ 10894 Default: map[string]interface{}{}, 10895 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 10896 }, 10897 }, 10898 "generationTime": { 10899 SchemaProps: spec.SchemaProps{ 10900 Default: map[string]interface{}{}, 10901 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 10902 }, 10903 }, 10904 "endpoints": { 10905 SchemaProps: spec.SchemaProps{ 10906 Description: "The set of in-scope endpoints.", 10907 Type: []string{"array"}, 10908 Items: &spec.SchemaOrArray{ 10909 Schema: &spec.Schema{ 10910 SchemaProps: spec.SchemaProps{ 10911 Default: map[string]interface{}{}, 10912 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.EndpointsReportEndpoint"), 10913 }, 10914 }, 10915 }, 10916 }, 10917 }, 10918 "endpointsSummary": { 10919 SchemaProps: spec.SchemaProps{ 10920 Description: "Endpoint stats in a reporting period.", 10921 Default: map[string]interface{}{}, 10922 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.EndpointsSummary"), 10923 }, 10924 }, 10925 "namespaces": { 10926 SchemaProps: spec.SchemaProps{ 10927 Description: "The set of namespaces containing in-scope endpoints.", 10928 Type: []string{"array"}, 10929 Items: &spec.SchemaOrArray{ 10930 Schema: &spec.Schema{ 10931 SchemaProps: spec.SchemaProps{ 10932 Default: map[string]interface{}{}, 10933 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.EndpointsReportNamespace"), 10934 }, 10935 }, 10936 }, 10937 }, 10938 }, 10939 "namespacesSummary": { 10940 SchemaProps: spec.SchemaProps{ 10941 Description: "Endpoint stats for given namespaces in a reporting period.", 10942 Default: map[string]interface{}{}, 10943 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.EndpointsSummary"), 10944 }, 10945 }, 10946 "services": { 10947 SchemaProps: spec.SchemaProps{ 10948 Description: "The set of services containing in-scope endpoints.", 10949 Type: []string{"array"}, 10950 Items: &spec.SchemaOrArray{ 10951 Schema: &spec.Schema{ 10952 SchemaProps: spec.SchemaProps{ 10953 Default: map[string]interface{}{}, 10954 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.EndpointsReportService"), 10955 }, 10956 }, 10957 }, 10958 }, 10959 }, 10960 "servicesSummary": { 10961 SchemaProps: spec.SchemaProps{ 10962 Description: "Endpoint stats for services in a reporting period.", 10963 Default: map[string]interface{}{}, 10964 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.EndpointsSummary"), 10965 }, 10966 }, 10967 "auditEvents": { 10968 SchemaProps: spec.SchemaProps{ 10969 Description: "The time-ordered set of in-scope audit events that occurred within the reporting interval.", 10970 Type: []string{"array"}, 10971 Items: &spec.SchemaOrArray{ 10972 Schema: &spec.Schema{ 10973 SchemaProps: spec.SchemaProps{ 10974 Default: map[string]interface{}{}, 10975 Ref: ref("k8s.io/apiserver/pkg/apis/audit.Event"), 10976 }, 10977 }, 10978 }, 10979 }, 10980 }, 10981 "auditSummary": { 10982 SchemaProps: spec.SchemaProps{ 10983 Description: "Audit log stats in a reporting period.", 10984 Default: map[string]interface{}{}, 10985 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.AuditSummary"), 10986 }, 10987 }, 10988 "flows": { 10989 SchemaProps: spec.SchemaProps{ 10990 Description: "Flows for in-scope endpoints that have been recorded within the reporting period.", 10991 Type: []string{"array"}, 10992 Items: &spec.SchemaOrArray{ 10993 Schema: &spec.Schema{ 10994 SchemaProps: spec.SchemaProps{ 10995 Default: map[string]interface{}{}, 10996 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.EndpointsReportFlow"), 10997 }, 10998 }, 10999 }, 11000 }, 11001 }, 11002 "cisBenchmark": { 11003 SchemaProps: spec.SchemaProps{ 11004 Description: "CISBenchmark contains the per-node results of a cis benchmark scan.", 11005 Type: []string{"array"}, 11006 Items: &spec.SchemaOrArray{ 11007 Schema: &spec.Schema{ 11008 SchemaProps: spec.SchemaProps{ 11009 Default: map[string]interface{}{}, 11010 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.CISBenchmarkNode"), 11011 }, 11012 }, 11013 }, 11014 }, 11015 }, 11016 "cisBenchmarkSummary": { 11017 SchemaProps: spec.SchemaProps{ 11018 Description: "CISBenchmarkSummary high level test results.", 11019 Default: map[string]interface{}{}, 11020 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.CISBenchmarkSummary"), 11021 }, 11022 }, 11023 }, 11024 Required: []string{"reportName", "reportTypeName", "reportSpec", "reportTypeSpec", "startTime", "endTime", "generationTime"}, 11025 }, 11026 }, 11027 Dependencies: []string{ 11028 "github.com/tigera/api/pkg/apis/projectcalico/v3.AuditSummary", "github.com/tigera/api/pkg/apis/projectcalico/v3.CISBenchmarkNode", "github.com/tigera/api/pkg/apis/projectcalico/v3.CISBenchmarkSummary", "github.com/tigera/api/pkg/apis/projectcalico/v3.EndpointsReportEndpoint", "github.com/tigera/api/pkg/apis/projectcalico/v3.EndpointsReportFlow", "github.com/tigera/api/pkg/apis/projectcalico/v3.EndpointsReportNamespace", "github.com/tigera/api/pkg/apis/projectcalico/v3.EndpointsReportService", "github.com/tigera/api/pkg/apis/projectcalico/v3.EndpointsSummary", "github.com/tigera/api/pkg/apis/projectcalico/v3.ReportSpec", "github.com/tigera/api/pkg/apis/projectcalico/v3.ReportTypeSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.Time", "k8s.io/apiserver/pkg/apis/audit.Event"}, 11029 } 11030 } 11031 11032 func schema_pkg_apis_projectcalico_v3_ReportJob(ref common.ReferenceCallback) common.OpenAPIDefinition { 11033 return common.OpenAPIDefinition{ 11034 Schema: spec.Schema{ 11035 SchemaProps: spec.SchemaProps{ 11036 Description: "ReportJob contains", 11037 Type: []string{"object"}, 11038 Properties: map[string]spec.Schema{ 11039 "start": { 11040 SchemaProps: spec.SchemaProps{ 11041 Description: "The start time of the report.", 11042 Default: map[string]interface{}{}, 11043 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 11044 }, 11045 }, 11046 "end": { 11047 SchemaProps: spec.SchemaProps{ 11048 Description: "The end time of the report.", 11049 Default: map[string]interface{}{}, 11050 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 11051 }, 11052 }, 11053 "job": { 11054 SchemaProps: spec.SchemaProps{ 11055 Description: "A reference to the report creation job if known.", 11056 Ref: ref("k8s.io/api/core/v1.ObjectReference"), 11057 }, 11058 }, 11059 }, 11060 Required: []string{"start", "end", "job"}, 11061 }, 11062 }, 11063 Dependencies: []string{ 11064 "k8s.io/api/core/v1.ObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 11065 } 11066 } 11067 11068 func schema_pkg_apis_projectcalico_v3_ReportSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 11069 return common.OpenAPIDefinition{ 11070 Schema: spec.Schema{ 11071 SchemaProps: spec.SchemaProps{ 11072 Description: "ReportSpec contains the values of the GlobalReport.", 11073 Type: []string{"object"}, 11074 Properties: map[string]spec.Schema{ 11075 "reportType": { 11076 SchemaProps: spec.SchemaProps{ 11077 Description: "The name of the report type.", 11078 Default: "", 11079 Type: []string{"string"}, 11080 Format: "", 11081 }, 11082 }, 11083 "endpoints": { 11084 SchemaProps: spec.SchemaProps{ 11085 Description: "Endpoints is used to specify which endpoints are in-scope and stored in the generated report data. Only used if endpoints data and/or audit logs are gathered in the report. If omitted, treated as everything in-scope.", 11086 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.EndpointsSelection"), 11087 }, 11088 }, 11089 "schedule": { 11090 SchemaProps: spec.SchemaProps{ 11091 Description: "The report schedule specified in cron format. This specifies both the start and end times of each report, where the end time of one report becomes the start time of the next report. Separate jobs are created to generate a report, and the job generates the report data from archived audit and traffic data. To ensure this data is actually archived, the jobs to generate each report starts at a configurable time *after* the end time of the report that is being generated. The default job start delay is 30m, but is configurable through the compliance-controller environments. The cron format has minute accuracy, but only up to two values may be configured for the minute column which means you may only have at most two reports for each hour period.", 11092 Type: []string{"string"}, 11093 Format: "", 11094 }, 11095 }, 11096 "jobNodeSelector": { 11097 SchemaProps: spec.SchemaProps{ 11098 Description: "The node selector used to specify which nodes the report job may be scheduled on.", 11099 Type: []string{"object"}, 11100 AdditionalProperties: &spec.SchemaOrBool{ 11101 Allows: true, 11102 Schema: &spec.Schema{ 11103 SchemaProps: spec.SchemaProps{ 11104 Default: "", 11105 Type: []string{"string"}, 11106 Format: "", 11107 }, 11108 }, 11109 }, 11110 }, 11111 }, 11112 "suspend": { 11113 SchemaProps: spec.SchemaProps{ 11114 Description: "This flag tells the controller to suspend subsequent jobs for generating reports, it does not apply to already started jobs. If jobs are resumed then the controller will start creating jobs for any reports that were missed while the job was suspended.", 11115 Type: []string{"boolean"}, 11116 Format: "", 11117 }, 11118 }, 11119 "cis": { 11120 SchemaProps: spec.SchemaProps{ 11121 Description: "This field contain all the parameters for configuring a CIS benchmark report.", 11122 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.CISBenchmarkParams"), 11123 }, 11124 }, 11125 }, 11126 Required: []string{"reportType"}, 11127 }, 11128 }, 11129 Dependencies: []string{ 11130 "github.com/tigera/api/pkg/apis/projectcalico/v3.CISBenchmarkParams", "github.com/tigera/api/pkg/apis/projectcalico/v3.EndpointsSelection"}, 11131 } 11132 } 11133 11134 func schema_pkg_apis_projectcalico_v3_ReportStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 11135 return common.OpenAPIDefinition{ 11136 Schema: spec.Schema{ 11137 SchemaProps: spec.SchemaProps{ 11138 Description: "ReportStatus contains the status of the automated report generation.", 11139 Type: []string{"object"}, 11140 Properties: map[string]spec.Schema{ 11141 "lastSuccessfulReportJobs": { 11142 SchemaProps: spec.SchemaProps{ 11143 Description: "The configured report jobs that have completed successfully.", 11144 Type: []string{"array"}, 11145 Items: &spec.SchemaOrArray{ 11146 Schema: &spec.Schema{ 11147 SchemaProps: spec.SchemaProps{ 11148 Default: map[string]interface{}{}, 11149 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.CompletedReportJob"), 11150 }, 11151 }, 11152 }, 11153 }, 11154 }, 11155 "lastFailedReportJobs": { 11156 SchemaProps: spec.SchemaProps{ 11157 Description: "The configured report jobs that have failed.", 11158 Type: []string{"array"}, 11159 Items: &spec.SchemaOrArray{ 11160 Schema: &spec.Schema{ 11161 SchemaProps: spec.SchemaProps{ 11162 Default: map[string]interface{}{}, 11163 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.CompletedReportJob"), 11164 }, 11165 }, 11166 }, 11167 }, 11168 }, 11169 "activeReportJobs": { 11170 SchemaProps: spec.SchemaProps{ 11171 Description: "The set of active report jobs.", 11172 Type: []string{"array"}, 11173 Items: &spec.SchemaOrArray{ 11174 Schema: &spec.Schema{ 11175 SchemaProps: spec.SchemaProps{ 11176 Default: map[string]interface{}{}, 11177 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ReportJob"), 11178 }, 11179 }, 11180 }, 11181 }, 11182 }, 11183 "lastScheduledReportJob": { 11184 SchemaProps: spec.SchemaProps{ 11185 Description: "The last scheduled report job.", 11186 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ReportJob"), 11187 }, 11188 }, 11189 }, 11190 }, 11191 }, 11192 Dependencies: []string{ 11193 "github.com/tigera/api/pkg/apis/projectcalico/v3.CompletedReportJob", "github.com/tigera/api/pkg/apis/projectcalico/v3.ReportJob"}, 11194 } 11195 } 11196 11197 func schema_pkg_apis_projectcalico_v3_ReportTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { 11198 return common.OpenAPIDefinition{ 11199 Schema: spec.Schema{ 11200 SchemaProps: spec.SchemaProps{ 11201 Description: "ReportTemplate defines a template used to render a report into downloadable or UI compatible format.", 11202 Type: []string{"object"}, 11203 Properties: map[string]spec.Schema{ 11204 "name": { 11205 SchemaProps: spec.SchemaProps{ 11206 Description: "The name of this template. This should be unique across all template names within a ReportType. This will be used by the UI as the suffix of the downloadable file name.", 11207 Type: []string{"string"}, 11208 Format: "", 11209 }, 11210 }, 11211 "description": { 11212 SchemaProps: spec.SchemaProps{ 11213 Description: "A user-facing description of the template.", 11214 Type: []string{"string"}, 11215 Format: "", 11216 }, 11217 }, 11218 "template": { 11219 SchemaProps: spec.SchemaProps{ 11220 Description: "The base-64 encoded go template used to render the report data.", 11221 Type: []string{"string"}, 11222 Format: "", 11223 }, 11224 }, 11225 }, 11226 }, 11227 }, 11228 } 11229 } 11230 11231 func schema_pkg_apis_projectcalico_v3_ReportTypeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 11232 return common.OpenAPIDefinition{ 11233 Schema: spec.Schema{ 11234 SchemaProps: spec.SchemaProps{ 11235 Description: "ReportTypeSpec contains the various templates, and configuration used to render a specific type of report.", 11236 Type: []string{"object"}, 11237 Properties: map[string]spec.Schema{ 11238 "uiSummaryTemplate": { 11239 SchemaProps: spec.SchemaProps{ 11240 Description: "The summary template, explicitly used by the UI to render a summary version of the report. This should render to json containing a sets of widgets that the UI can use to render the summary. The rendered data is returned on the list query of the reports.", 11241 Default: map[string]interface{}{}, 11242 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ReportTemplate"), 11243 }, 11244 }, 11245 "downloadTemplates": { 11246 SchemaProps: spec.SchemaProps{ 11247 Description: "The set of templates used to render the report for downloads.", 11248 Type: []string{"array"}, 11249 Items: &spec.SchemaOrArray{ 11250 Schema: &spec.Schema{ 11251 SchemaProps: spec.SchemaProps{ 11252 Default: map[string]interface{}{}, 11253 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ReportTemplate"), 11254 }, 11255 }, 11256 }, 11257 }, 11258 }, 11259 "includeEndpointData": { 11260 SchemaProps: spec.SchemaProps{ 11261 Description: "Whether to include endpoint data in the report. The actual endpoints included may be filtered by the Report, but will otherwise contain the full set of endpoints.", 11262 Type: []string{"boolean"}, 11263 Format: "", 11264 }, 11265 }, 11266 "includeEndpointFlowLogData": { 11267 SchemaProps: spec.SchemaProps{ 11268 Description: "Whether to include endpoint-to-endpoint flow log data in the report.", 11269 Type: []string{"boolean"}, 11270 Format: "", 11271 }, 11272 }, 11273 "auditEventsSelection": { 11274 SchemaProps: spec.SchemaProps{ 11275 Description: "What audit log data should be included in the report. If not specified, the report will contain no audit log data. The selection may be further filtered by the Report.", 11276 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.AuditEventsSelection"), 11277 }, 11278 }, 11279 "includeCISBenchmarkData": { 11280 SchemaProps: spec.SchemaProps{ 11281 Description: "Whether to include the full cis benchmark test results in the report.", 11282 Type: []string{"boolean"}, 11283 Format: "", 11284 }, 11285 }, 11286 }, 11287 }, 11288 }, 11289 Dependencies: []string{ 11290 "github.com/tigera/api/pkg/apis/projectcalico/v3.AuditEventsSelection", "github.com/tigera/api/pkg/apis/projectcalico/v3.ReportTemplate"}, 11291 } 11292 } 11293 11294 func schema_pkg_apis_projectcalico_v3_ResourceID(ref common.ReferenceCallback) common.OpenAPIDefinition { 11295 return common.OpenAPIDefinition{ 11296 Schema: spec.Schema{ 11297 SchemaProps: spec.SchemaProps{ 11298 Description: "ResourceID is used to identify a resource instance in the report data.", 11299 Type: []string{"object"}, 11300 Properties: map[string]spec.Schema{ 11301 "kind": { 11302 SchemaProps: spec.SchemaProps{ 11303 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 11304 Type: []string{"string"}, 11305 Format: "", 11306 }, 11307 }, 11308 "apiVersion": { 11309 SchemaProps: spec.SchemaProps{ 11310 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 11311 Type: []string{"string"}, 11312 Format: "", 11313 }, 11314 }, 11315 "name": { 11316 SchemaProps: spec.SchemaProps{ 11317 Type: []string{"string"}, 11318 Format: "", 11319 }, 11320 }, 11321 "namespace": { 11322 SchemaProps: spec.SchemaProps{ 11323 Type: []string{"string"}, 11324 Format: "", 11325 }, 11326 }, 11327 "uuid": { 11328 SchemaProps: spec.SchemaProps{ 11329 Type: []string{"string"}, 11330 Format: "", 11331 }, 11332 }, 11333 }, 11334 }, 11335 }, 11336 } 11337 } 11338 11339 func schema_pkg_apis_projectcalico_v3_RouteTableIDRange(ref common.ReferenceCallback) common.OpenAPIDefinition { 11340 return common.OpenAPIDefinition{ 11341 Schema: spec.Schema{ 11342 SchemaProps: spec.SchemaProps{ 11343 Type: []string{"object"}, 11344 Properties: map[string]spec.Schema{ 11345 "min": { 11346 SchemaProps: spec.SchemaProps{ 11347 Default: 0, 11348 Type: []string{"integer"}, 11349 Format: "int32", 11350 }, 11351 }, 11352 "max": { 11353 SchemaProps: spec.SchemaProps{ 11354 Default: 0, 11355 Type: []string{"integer"}, 11356 Format: "int32", 11357 }, 11358 }, 11359 }, 11360 Required: []string{"min", "max"}, 11361 }, 11362 }, 11363 } 11364 } 11365 11366 func schema_pkg_apis_projectcalico_v3_RouteTableRange(ref common.ReferenceCallback) common.OpenAPIDefinition { 11367 return common.OpenAPIDefinition{ 11368 Schema: spec.Schema{ 11369 SchemaProps: spec.SchemaProps{ 11370 Type: []string{"object"}, 11371 Properties: map[string]spec.Schema{ 11372 "min": { 11373 SchemaProps: spec.SchemaProps{ 11374 Default: 0, 11375 Type: []string{"integer"}, 11376 Format: "int32", 11377 }, 11378 }, 11379 "max": { 11380 SchemaProps: spec.SchemaProps{ 11381 Default: 0, 11382 Type: []string{"integer"}, 11383 Format: "int32", 11384 }, 11385 }, 11386 }, 11387 Required: []string{"min", "max"}, 11388 }, 11389 }, 11390 } 11391 } 11392 11393 func schema_pkg_apis_projectcalico_v3_Rule(ref common.ReferenceCallback) common.OpenAPIDefinition { 11394 return common.OpenAPIDefinition{ 11395 Schema: spec.Schema{ 11396 SchemaProps: spec.SchemaProps{ 11397 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.", 11398 Type: []string{"object"}, 11399 Properties: map[string]spec.Schema{ 11400 "action": { 11401 SchemaProps: spec.SchemaProps{ 11402 Default: "", 11403 Type: []string{"string"}, 11404 Format: "", 11405 }, 11406 }, 11407 "ipVersion": { 11408 SchemaProps: spec.SchemaProps{ 11409 Description: "IPVersion is an optional field that restricts the rule to only match a specific IP version.", 11410 Type: []string{"integer"}, 11411 Format: "int32", 11412 }, 11413 }, 11414 "protocol": { 11415 SchemaProps: spec.SchemaProps{ 11416 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.", 11417 Ref: ref("github.com/tigera/api/pkg/lib/numorstring.Protocol"), 11418 }, 11419 }, 11420 "icmp": { 11421 SchemaProps: spec.SchemaProps{ 11422 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\".", 11423 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ICMPFields"), 11424 }, 11425 }, 11426 "notProtocol": { 11427 SchemaProps: spec.SchemaProps{ 11428 Description: "NotProtocol is the negated version of the Protocol field.", 11429 Ref: ref("github.com/tigera/api/pkg/lib/numorstring.Protocol"), 11430 }, 11431 }, 11432 "notICMP": { 11433 SchemaProps: spec.SchemaProps{ 11434 Description: "NotICMP is the negated version of the ICMP field.", 11435 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ICMPFields"), 11436 }, 11437 }, 11438 "source": { 11439 SchemaProps: spec.SchemaProps{ 11440 Description: "Source contains the match criteria that apply to source entity.", 11441 Default: map[string]interface{}{}, 11442 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.EntityRule"), 11443 }, 11444 }, 11445 "destination": { 11446 SchemaProps: spec.SchemaProps{ 11447 Description: "Destination contains the match criteria that apply to destination entity.", 11448 Default: map[string]interface{}{}, 11449 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.EntityRule"), 11450 }, 11451 }, 11452 "http": { 11453 SchemaProps: spec.SchemaProps{ 11454 Description: "HTTP contains match criteria that apply to HTTP requests.", 11455 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.HTTPMatch"), 11456 }, 11457 }, 11458 "metadata": { 11459 SchemaProps: spec.SchemaProps{ 11460 Description: "Metadata contains additional information for this rule", 11461 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.RuleMetadata"), 11462 }, 11463 }, 11464 }, 11465 Required: []string{"action"}, 11466 }, 11467 }, 11468 Dependencies: []string{ 11469 "github.com/tigera/api/pkg/apis/projectcalico/v3.EntityRule", "github.com/tigera/api/pkg/apis/projectcalico/v3.HTTPMatch", "github.com/tigera/api/pkg/apis/projectcalico/v3.ICMPFields", "github.com/tigera/api/pkg/apis/projectcalico/v3.RuleMetadata", "github.com/tigera/api/pkg/lib/numorstring.Protocol"}, 11470 } 11471 } 11472 11473 func schema_pkg_apis_projectcalico_v3_RuleMetadata(ref common.ReferenceCallback) common.OpenAPIDefinition { 11474 return common.OpenAPIDefinition{ 11475 Schema: spec.Schema{ 11476 SchemaProps: spec.SchemaProps{ 11477 Type: []string{"object"}, 11478 Properties: map[string]spec.Schema{ 11479 "annotations": { 11480 SchemaProps: spec.SchemaProps{ 11481 Description: "Annotations is a set of key value pairs that give extra information about the rule", 11482 Type: []string{"object"}, 11483 AdditionalProperties: &spec.SchemaOrBool{ 11484 Allows: true, 11485 Schema: &spec.Schema{ 11486 SchemaProps: spec.SchemaProps{ 11487 Default: "", 11488 Type: []string{"string"}, 11489 Format: "", 11490 }, 11491 }, 11492 }, 11493 }, 11494 }, 11495 }, 11496 }, 11497 }, 11498 } 11499 } 11500 11501 func schema_pkg_apis_projectcalico_v3_SecurityEventWebhook(ref common.ReferenceCallback) common.OpenAPIDefinition { 11502 return common.OpenAPIDefinition{ 11503 Schema: spec.Schema{ 11504 SchemaProps: spec.SchemaProps{ 11505 Type: []string{"object"}, 11506 Properties: map[string]spec.Schema{ 11507 "kind": { 11508 SchemaProps: spec.SchemaProps{ 11509 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 11510 Type: []string{"string"}, 11511 Format: "", 11512 }, 11513 }, 11514 "apiVersion": { 11515 SchemaProps: spec.SchemaProps{ 11516 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 11517 Type: []string{"string"}, 11518 Format: "", 11519 }, 11520 }, 11521 "metadata": { 11522 SchemaProps: spec.SchemaProps{ 11523 Default: map[string]interface{}{}, 11524 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 11525 }, 11526 }, 11527 "status": { 11528 SchemaProps: spec.SchemaProps{ 11529 Type: []string{"array"}, 11530 Items: &spec.SchemaOrArray{ 11531 Schema: &spec.Schema{ 11532 SchemaProps: spec.SchemaProps{ 11533 Default: map[string]interface{}{}, 11534 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Condition"), 11535 }, 11536 }, 11537 }, 11538 }, 11539 }, 11540 "spec": { 11541 SchemaProps: spec.SchemaProps{ 11542 Default: map[string]interface{}{}, 11543 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.SecurityEventWebhookSpec"), 11544 }, 11545 }, 11546 }, 11547 Required: []string{"spec"}, 11548 }, 11549 }, 11550 Dependencies: []string{ 11551 "github.com/tigera/api/pkg/apis/projectcalico/v3.SecurityEventWebhookSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.Condition", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 11552 } 11553 } 11554 11555 func schema_pkg_apis_projectcalico_v3_SecurityEventWebhookConfigVar(ref common.ReferenceCallback) common.OpenAPIDefinition { 11556 return common.OpenAPIDefinition{ 11557 Schema: spec.Schema{ 11558 SchemaProps: spec.SchemaProps{ 11559 Type: []string{"object"}, 11560 Properties: map[string]spec.Schema{ 11561 "name": { 11562 SchemaProps: spec.SchemaProps{ 11563 Default: "", 11564 Type: []string{"string"}, 11565 Format: "", 11566 }, 11567 }, 11568 "value": { 11569 SchemaProps: spec.SchemaProps{ 11570 Type: []string{"string"}, 11571 Format: "", 11572 }, 11573 }, 11574 "valueFrom": { 11575 SchemaProps: spec.SchemaProps{ 11576 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.SecurityEventWebhookConfigVarSource"), 11577 }, 11578 }, 11579 }, 11580 Required: []string{"name"}, 11581 }, 11582 }, 11583 Dependencies: []string{ 11584 "github.com/tigera/api/pkg/apis/projectcalico/v3.SecurityEventWebhookConfigVarSource"}, 11585 } 11586 } 11587 11588 func schema_pkg_apis_projectcalico_v3_SecurityEventWebhookConfigVarSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 11589 return common.OpenAPIDefinition{ 11590 Schema: spec.Schema{ 11591 SchemaProps: spec.SchemaProps{ 11592 Type: []string{"object"}, 11593 Properties: map[string]spec.Schema{ 11594 "configMapKeyRef": { 11595 SchemaProps: spec.SchemaProps{ 11596 Ref: ref("k8s.io/api/core/v1.ConfigMapKeySelector"), 11597 }, 11598 }, 11599 "secretKeyRef": { 11600 SchemaProps: spec.SchemaProps{ 11601 Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), 11602 }, 11603 }, 11604 }, 11605 }, 11606 }, 11607 Dependencies: []string{ 11608 "k8s.io/api/core/v1.ConfigMapKeySelector", "k8s.io/api/core/v1.SecretKeySelector"}, 11609 } 11610 } 11611 11612 func schema_pkg_apis_projectcalico_v3_SecurityEventWebhookList(ref common.ReferenceCallback) common.OpenAPIDefinition { 11613 return common.OpenAPIDefinition{ 11614 Schema: spec.Schema{ 11615 SchemaProps: spec.SchemaProps{ 11616 Type: []string{"object"}, 11617 Properties: map[string]spec.Schema{ 11618 "kind": { 11619 SchemaProps: spec.SchemaProps{ 11620 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 11621 Type: []string{"string"}, 11622 Format: "", 11623 }, 11624 }, 11625 "apiVersion": { 11626 SchemaProps: spec.SchemaProps{ 11627 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 11628 Type: []string{"string"}, 11629 Format: "", 11630 }, 11631 }, 11632 "metadata": { 11633 SchemaProps: spec.SchemaProps{ 11634 Default: map[string]interface{}{}, 11635 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 11636 }, 11637 }, 11638 "items": { 11639 SchemaProps: spec.SchemaProps{ 11640 Type: []string{"array"}, 11641 Items: &spec.SchemaOrArray{ 11642 Schema: &spec.Schema{ 11643 SchemaProps: spec.SchemaProps{ 11644 Default: map[string]interface{}{}, 11645 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.SecurityEventWebhook"), 11646 }, 11647 }, 11648 }, 11649 }, 11650 }, 11651 }, 11652 Required: []string{"metadata", "items"}, 11653 }, 11654 }, 11655 Dependencies: []string{ 11656 "github.com/tigera/api/pkg/apis/projectcalico/v3.SecurityEventWebhook", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 11657 } 11658 } 11659 11660 func schema_pkg_apis_projectcalico_v3_SecurityEventWebhookSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 11661 return common.OpenAPIDefinition{ 11662 Schema: spec.Schema{ 11663 SchemaProps: spec.SchemaProps{ 11664 Type: []string{"object"}, 11665 Properties: map[string]spec.Schema{ 11666 "consumer": { 11667 SchemaProps: spec.SchemaProps{ 11668 Description: "indicates the SecurityEventWebhook intended consumer, one of: Slack, Jira", 11669 Default: "", 11670 Type: []string{"string"}, 11671 Format: "", 11672 }, 11673 }, 11674 "state": { 11675 SchemaProps: spec.SchemaProps{ 11676 Description: "defines the webhook desired state, one of: Enabled, Disabled or Debug", 11677 Default: "", 11678 Type: []string{"string"}, 11679 Format: "", 11680 }, 11681 }, 11682 "query": { 11683 SchemaProps: spec.SchemaProps{ 11684 Description: "defines the SecurityEventWebhook query to be executed against fields of SecurityEvents", 11685 Default: "", 11686 Type: []string{"string"}, 11687 Format: "", 11688 }, 11689 }, 11690 "config": { 11691 SchemaProps: spec.SchemaProps{ 11692 Description: "contains the SecurityEventWebhook's configuration associated with the intended Consumer", 11693 Type: []string{"array"}, 11694 Items: &spec.SchemaOrArray{ 11695 Schema: &spec.Schema{ 11696 SchemaProps: spec.SchemaProps{ 11697 Default: map[string]interface{}{}, 11698 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.SecurityEventWebhookConfigVar"), 11699 }, 11700 }, 11701 }, 11702 }, 11703 }, 11704 }, 11705 Required: []string{"consumer", "state", "query", "config"}, 11706 }, 11707 }, 11708 Dependencies: []string{ 11709 "github.com/tigera/api/pkg/apis/projectcalico/v3.SecurityEventWebhookConfigVar"}, 11710 } 11711 } 11712 11713 func schema_pkg_apis_projectcalico_v3_ServiceAccountControllerConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 11714 return common.OpenAPIDefinition{ 11715 Schema: spec.Schema{ 11716 SchemaProps: spec.SchemaProps{ 11717 Description: "ServiceAccountControllerConfig configures the service account controller, which syncs Kubernetes service accounts to Calico profiles (only used for etcdv3 datastore).", 11718 Type: []string{"object"}, 11719 Properties: map[string]spec.Schema{ 11720 "reconcilerPeriod": { 11721 SchemaProps: spec.SchemaProps{ 11722 Description: "ReconcilerPeriod is the period to perform reconciliation with the Calico datastore. [Default: 5m]", 11723 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 11724 }, 11725 }, 11726 }, 11727 }, 11728 }, 11729 Dependencies: []string{ 11730 "k8s.io/apimachinery/pkg/apis/meta/v1.Duration"}, 11731 } 11732 } 11733 11734 func schema_pkg_apis_projectcalico_v3_ServiceAccountMatch(ref common.ReferenceCallback) common.OpenAPIDefinition { 11735 return common.OpenAPIDefinition{ 11736 Schema: spec.Schema{ 11737 SchemaProps: spec.SchemaProps{ 11738 Type: []string{"object"}, 11739 Properties: map[string]spec.Schema{ 11740 "names": { 11741 SchemaProps: spec.SchemaProps{ 11742 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.", 11743 Type: []string{"array"}, 11744 Items: &spec.SchemaOrArray{ 11745 Schema: &spec.Schema{ 11746 SchemaProps: spec.SchemaProps{ 11747 Default: "", 11748 Type: []string{"string"}, 11749 Format: "", 11750 }, 11751 }, 11752 }, 11753 }, 11754 }, 11755 "selector": { 11756 SchemaProps: spec.SchemaProps{ 11757 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.", 11758 Type: []string{"string"}, 11759 Format: "", 11760 }, 11761 }, 11762 }, 11763 }, 11764 }, 11765 } 11766 } 11767 11768 func schema_pkg_apis_projectcalico_v3_ServiceClusterIPBlock(ref common.ReferenceCallback) common.OpenAPIDefinition { 11769 return common.OpenAPIDefinition{ 11770 Schema: spec.Schema{ 11771 SchemaProps: spec.SchemaProps{ 11772 Description: "ServiceClusterIPBlock represents a single allowed ClusterIP CIDR block.", 11773 Type: []string{"object"}, 11774 Properties: map[string]spec.Schema{ 11775 "cidr": { 11776 SchemaProps: spec.SchemaProps{ 11777 Type: []string{"string"}, 11778 Format: "", 11779 }, 11780 }, 11781 }, 11782 }, 11783 }, 11784 } 11785 } 11786 11787 func schema_pkg_apis_projectcalico_v3_ServiceExternalIPBlock(ref common.ReferenceCallback) common.OpenAPIDefinition { 11788 return common.OpenAPIDefinition{ 11789 Schema: spec.Schema{ 11790 SchemaProps: spec.SchemaProps{ 11791 Description: "ServiceExternalIPBlock represents a single allowed External IP CIDR block.", 11792 Type: []string{"object"}, 11793 Properties: map[string]spec.Schema{ 11794 "cidr": { 11795 SchemaProps: spec.SchemaProps{ 11796 Type: []string{"string"}, 11797 Format: "", 11798 }, 11799 }, 11800 }, 11801 }, 11802 }, 11803 } 11804 } 11805 11806 func schema_pkg_apis_projectcalico_v3_ServiceLoadBalancerIPBlock(ref common.ReferenceCallback) common.OpenAPIDefinition { 11807 return common.OpenAPIDefinition{ 11808 Schema: spec.Schema{ 11809 SchemaProps: spec.SchemaProps{ 11810 Description: "ServiceLoadBalancerIPBlock represents a single allowed LoadBalancer IP CIDR block.", 11811 Type: []string{"object"}, 11812 Properties: map[string]spec.Schema{ 11813 "cidr": { 11814 SchemaProps: spec.SchemaProps{ 11815 Type: []string{"string"}, 11816 Format: "", 11817 }, 11818 }, 11819 }, 11820 }, 11821 }, 11822 } 11823 } 11824 11825 func schema_pkg_apis_projectcalico_v3_ServiceMatch(ref common.ReferenceCallback) common.OpenAPIDefinition { 11826 return common.OpenAPIDefinition{ 11827 Schema: spec.Schema{ 11828 SchemaProps: spec.SchemaProps{ 11829 Type: []string{"object"}, 11830 Properties: map[string]spec.Schema{ 11831 "name": { 11832 SchemaProps: spec.SchemaProps{ 11833 Description: "Name specifies the name of a Kubernetes Service to match.", 11834 Type: []string{"string"}, 11835 Format: "", 11836 }, 11837 }, 11838 "namespace": { 11839 SchemaProps: spec.SchemaProps{ 11840 Description: "Namespace specifies the namespace of the given Service. If left empty, the rule will match within this policy's namespace.", 11841 Type: []string{"string"}, 11842 Format: "", 11843 }, 11844 }, 11845 }, 11846 }, 11847 }, 11848 } 11849 } 11850 11851 func schema_pkg_apis_projectcalico_v3_StagedGlobalNetworkPolicy(ref common.ReferenceCallback) common.OpenAPIDefinition { 11852 return common.OpenAPIDefinition{ 11853 Schema: spec.Schema{ 11854 SchemaProps: spec.SchemaProps{ 11855 Description: "StagedGlobalNetworkPolicy is a staged GlobalNetworkPolicy.", 11856 Type: []string{"object"}, 11857 Properties: map[string]spec.Schema{ 11858 "kind": { 11859 SchemaProps: spec.SchemaProps{ 11860 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 11861 Type: []string{"string"}, 11862 Format: "", 11863 }, 11864 }, 11865 "apiVersion": { 11866 SchemaProps: spec.SchemaProps{ 11867 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 11868 Type: []string{"string"}, 11869 Format: "", 11870 }, 11871 }, 11872 "metadata": { 11873 SchemaProps: spec.SchemaProps{ 11874 Description: "Standard object's metadata.", 11875 Default: map[string]interface{}{}, 11876 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 11877 }, 11878 }, 11879 "spec": { 11880 SchemaProps: spec.SchemaProps{ 11881 Description: "Specification of the Policy.", 11882 Default: map[string]interface{}{}, 11883 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.StagedGlobalNetworkPolicySpec"), 11884 }, 11885 }, 11886 }, 11887 }, 11888 }, 11889 Dependencies: []string{ 11890 "github.com/tigera/api/pkg/apis/projectcalico/v3.StagedGlobalNetworkPolicySpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 11891 } 11892 } 11893 11894 func schema_pkg_apis_projectcalico_v3_StagedGlobalNetworkPolicyList(ref common.ReferenceCallback) common.OpenAPIDefinition { 11895 return common.OpenAPIDefinition{ 11896 Schema: spec.Schema{ 11897 SchemaProps: spec.SchemaProps{ 11898 Description: "StagedGlobalNetworkPolicyList contains a list of GlobalNetworkPolicy resources.", 11899 Type: []string{"object"}, 11900 Properties: map[string]spec.Schema{ 11901 "kind": { 11902 SchemaProps: spec.SchemaProps{ 11903 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 11904 Type: []string{"string"}, 11905 Format: "", 11906 }, 11907 }, 11908 "apiVersion": { 11909 SchemaProps: spec.SchemaProps{ 11910 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 11911 Type: []string{"string"}, 11912 Format: "", 11913 }, 11914 }, 11915 "metadata": { 11916 SchemaProps: spec.SchemaProps{ 11917 Default: map[string]interface{}{}, 11918 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 11919 }, 11920 }, 11921 "items": { 11922 SchemaProps: spec.SchemaProps{ 11923 Type: []string{"array"}, 11924 Items: &spec.SchemaOrArray{ 11925 Schema: &spec.Schema{ 11926 SchemaProps: spec.SchemaProps{ 11927 Default: map[string]interface{}{}, 11928 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.StagedGlobalNetworkPolicy"), 11929 }, 11930 }, 11931 }, 11932 }, 11933 }, 11934 }, 11935 Required: []string{"metadata", "items"}, 11936 }, 11937 }, 11938 Dependencies: []string{ 11939 "github.com/tigera/api/pkg/apis/projectcalico/v3.StagedGlobalNetworkPolicy", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 11940 } 11941 } 11942 11943 func schema_pkg_apis_projectcalico_v3_StagedGlobalNetworkPolicySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 11944 return common.OpenAPIDefinition{ 11945 Schema: spec.Schema{ 11946 SchemaProps: spec.SchemaProps{ 11947 Type: []string{"object"}, 11948 Properties: map[string]spec.Schema{ 11949 "stagedAction": { 11950 SchemaProps: spec.SchemaProps{ 11951 Description: "The staged action. If this is omitted, the default is Set.", 11952 Type: []string{"string"}, 11953 Format: "", 11954 }, 11955 }, 11956 "tier": { 11957 SchemaProps: spec.SchemaProps{ 11958 Description: "The name of the tier that this policy belongs to. If this is omitted, the default tier (name is \"default\") is assumed. The specified tier must exist in order to create security policies within the tier, the \"default\" tier is created automatically if it does not exist, this means for deployments requiring only a single Tier, the tier name may be omitted on all policy management requests.", 11959 Type: []string{"string"}, 11960 Format: "", 11961 }, 11962 }, 11963 "order": { 11964 SchemaProps: spec.SchemaProps{ 11965 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 within the same tier. 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\" within the tier.", 11966 Type: []string{"number"}, 11967 Format: "double", 11968 }, 11969 }, 11970 "ingress": { 11971 SchemaProps: spec.SchemaProps{ 11972 Description: "The ordered set of ingress rules. Each rule contains a set of packet match criteria and a corresponding action to apply.", 11973 Type: []string{"array"}, 11974 Items: &spec.SchemaOrArray{ 11975 Schema: &spec.Schema{ 11976 SchemaProps: spec.SchemaProps{ 11977 Default: map[string]interface{}{}, 11978 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.Rule"), 11979 }, 11980 }, 11981 }, 11982 }, 11983 }, 11984 "egress": { 11985 SchemaProps: spec.SchemaProps{ 11986 Description: "The ordered set of egress rules. Each rule contains a set of packet match criteria and a corresponding action to apply.", 11987 Type: []string{"array"}, 11988 Items: &spec.SchemaOrArray{ 11989 Schema: &spec.Schema{ 11990 SchemaProps: spec.SchemaProps{ 11991 Default: map[string]interface{}{}, 11992 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.Rule"), 11993 }, 11994 }, 11995 }, 11996 }, 11997 }, 11998 "selector": { 11999 SchemaProps: spec.SchemaProps{ 12000 Description: "The selector is an expression used to pick 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)", 12001 Type: []string{"string"}, 12002 Format: "", 12003 }, 12004 }, 12005 "types": { 12006 SchemaProps: spec.SchemaProps{ 12007 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.", 12008 Type: []string{"array"}, 12009 Items: &spec.SchemaOrArray{ 12010 Schema: &spec.Schema{ 12011 SchemaProps: spec.SchemaProps{ 12012 Default: "", 12013 Type: []string{"string"}, 12014 Format: "", 12015 }, 12016 }, 12017 }, 12018 }, 12019 }, 12020 "doNotTrack": { 12021 SchemaProps: spec.SchemaProps{ 12022 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.", 12023 Type: []string{"boolean"}, 12024 Format: "", 12025 }, 12026 }, 12027 "preDNAT": { 12028 SchemaProps: spec.SchemaProps{ 12029 Description: "PreDNAT indicates to apply the rules in this policy before any DNAT.", 12030 Type: []string{"boolean"}, 12031 Format: "", 12032 }, 12033 }, 12034 "applyOnForward": { 12035 SchemaProps: spec.SchemaProps{ 12036 Description: "ApplyOnForward indicates to apply the rules in this policy on forward traffic.", 12037 Type: []string{"boolean"}, 12038 Format: "", 12039 }, 12040 }, 12041 "serviceAccountSelector": { 12042 SchemaProps: spec.SchemaProps{ 12043 Description: "ServiceAccountSelector is an optional field for an expression used to select a pod based on service accounts.", 12044 Type: []string{"string"}, 12045 Format: "", 12046 }, 12047 }, 12048 "namespaceSelector": { 12049 SchemaProps: spec.SchemaProps{ 12050 Description: "NamespaceSelector is an optional field for an expression used to select a pod based on namespaces.", 12051 Type: []string{"string"}, 12052 Format: "", 12053 }, 12054 }, 12055 "performanceHints": { 12056 SchemaProps: spec.SchemaProps{ 12057 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.", 12058 Type: []string{"array"}, 12059 Items: &spec.SchemaOrArray{ 12060 Schema: &spec.Schema{ 12061 SchemaProps: spec.SchemaProps{ 12062 Default: "", 12063 Type: []string{"string"}, 12064 Format: "", 12065 }, 12066 }, 12067 }, 12068 }, 12069 }, 12070 }, 12071 }, 12072 }, 12073 Dependencies: []string{ 12074 "github.com/tigera/api/pkg/apis/projectcalico/v3.Rule"}, 12075 } 12076 } 12077 12078 func schema_pkg_apis_projectcalico_v3_StagedKubernetesNetworkPolicy(ref common.ReferenceCallback) common.OpenAPIDefinition { 12079 return common.OpenAPIDefinition{ 12080 Schema: spec.Schema{ 12081 SchemaProps: spec.SchemaProps{ 12082 Description: "StagedKubernetesNetworkPolicy is a staged GlobalNetworkPolicy.", 12083 Type: []string{"object"}, 12084 Properties: map[string]spec.Schema{ 12085 "kind": { 12086 SchemaProps: spec.SchemaProps{ 12087 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 12088 Type: []string{"string"}, 12089 Format: "", 12090 }, 12091 }, 12092 "apiVersion": { 12093 SchemaProps: spec.SchemaProps{ 12094 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 12095 Type: []string{"string"}, 12096 Format: "", 12097 }, 12098 }, 12099 "metadata": { 12100 SchemaProps: spec.SchemaProps{ 12101 Description: "Standard object's metadata.", 12102 Default: map[string]interface{}{}, 12103 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 12104 }, 12105 }, 12106 "spec": { 12107 SchemaProps: spec.SchemaProps{ 12108 Description: "Specification of the Policy.", 12109 Default: map[string]interface{}{}, 12110 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.StagedKubernetesNetworkPolicySpec"), 12111 }, 12112 }, 12113 }, 12114 }, 12115 }, 12116 Dependencies: []string{ 12117 "github.com/tigera/api/pkg/apis/projectcalico/v3.StagedKubernetesNetworkPolicySpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 12118 } 12119 } 12120 12121 func schema_pkg_apis_projectcalico_v3_StagedKubernetesNetworkPolicyList(ref common.ReferenceCallback) common.OpenAPIDefinition { 12122 return common.OpenAPIDefinition{ 12123 Schema: spec.Schema{ 12124 SchemaProps: spec.SchemaProps{ 12125 Description: "StagedKubernetesNetworkPolicyList contains a list of StagedKubernetesNetworkPolicy resources.", 12126 Type: []string{"object"}, 12127 Properties: map[string]spec.Schema{ 12128 "kind": { 12129 SchemaProps: spec.SchemaProps{ 12130 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 12131 Type: []string{"string"}, 12132 Format: "", 12133 }, 12134 }, 12135 "apiVersion": { 12136 SchemaProps: spec.SchemaProps{ 12137 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 12138 Type: []string{"string"}, 12139 Format: "", 12140 }, 12141 }, 12142 "metadata": { 12143 SchemaProps: spec.SchemaProps{ 12144 Default: map[string]interface{}{}, 12145 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 12146 }, 12147 }, 12148 "items": { 12149 SchemaProps: spec.SchemaProps{ 12150 Type: []string{"array"}, 12151 Items: &spec.SchemaOrArray{ 12152 Schema: &spec.Schema{ 12153 SchemaProps: spec.SchemaProps{ 12154 Default: map[string]interface{}{}, 12155 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.StagedKubernetesNetworkPolicy"), 12156 }, 12157 }, 12158 }, 12159 }, 12160 }, 12161 }, 12162 Required: []string{"metadata", "items"}, 12163 }, 12164 }, 12165 Dependencies: []string{ 12166 "github.com/tigera/api/pkg/apis/projectcalico/v3.StagedKubernetesNetworkPolicy", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 12167 } 12168 } 12169 12170 func schema_pkg_apis_projectcalico_v3_StagedKubernetesNetworkPolicySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 12171 return common.OpenAPIDefinition{ 12172 Schema: spec.Schema{ 12173 SchemaProps: spec.SchemaProps{ 12174 Type: []string{"object"}, 12175 Properties: map[string]spec.Schema{ 12176 "stagedAction": { 12177 SchemaProps: spec.SchemaProps{ 12178 Description: "The staged action. If this is omitted, the default is Set.", 12179 Type: []string{"string"}, 12180 Format: "", 12181 }, 12182 }, 12183 "podSelector": { 12184 SchemaProps: spec.SchemaProps{ 12185 Description: "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.", 12186 Default: map[string]interface{}{}, 12187 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), 12188 }, 12189 }, 12190 "ingress": { 12191 SchemaProps: spec.SchemaProps{ 12192 Description: "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)", 12193 Type: []string{"array"}, 12194 Items: &spec.SchemaOrArray{ 12195 Schema: &spec.Schema{ 12196 SchemaProps: spec.SchemaProps{ 12197 Default: map[string]interface{}{}, 12198 Ref: ref("k8s.io/api/networking/v1.NetworkPolicyIngressRule"), 12199 }, 12200 }, 12201 }, 12202 }, 12203 }, 12204 "egress": { 12205 SchemaProps: spec.SchemaProps{ 12206 Description: "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", 12207 Type: []string{"array"}, 12208 Items: &spec.SchemaOrArray{ 12209 Schema: &spec.Schema{ 12210 SchemaProps: spec.SchemaProps{ 12211 Default: map[string]interface{}{}, 12212 Ref: ref("k8s.io/api/networking/v1.NetworkPolicyEgressRule"), 12213 }, 12214 }, 12215 }, 12216 }, 12217 }, 12218 "policyTypes": { 12219 SchemaProps: spec.SchemaProps{ 12220 Description: "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", 12221 Type: []string{"array"}, 12222 Items: &spec.SchemaOrArray{ 12223 Schema: &spec.Schema{ 12224 SchemaProps: spec.SchemaProps{ 12225 Default: "", 12226 Type: []string{"string"}, 12227 Format: "", 12228 }, 12229 }, 12230 }, 12231 }, 12232 }, 12233 }, 12234 }, 12235 }, 12236 Dependencies: []string{ 12237 "k8s.io/api/networking/v1.NetworkPolicyEgressRule", "k8s.io/api/networking/v1.NetworkPolicyIngressRule", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, 12238 } 12239 } 12240 12241 func schema_pkg_apis_projectcalico_v3_StagedNetworkPolicy(ref common.ReferenceCallback) common.OpenAPIDefinition { 12242 return common.OpenAPIDefinition{ 12243 Schema: spec.Schema{ 12244 SchemaProps: spec.SchemaProps{ 12245 Description: "StagedNetworkPolicy is a staged NetworkPolicy. StagedNetworkPolicy is the Namespaced-equivalent of the StagedGlobalNetworkPolicy.", 12246 Type: []string{"object"}, 12247 Properties: map[string]spec.Schema{ 12248 "kind": { 12249 SchemaProps: spec.SchemaProps{ 12250 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 12251 Type: []string{"string"}, 12252 Format: "", 12253 }, 12254 }, 12255 "apiVersion": { 12256 SchemaProps: spec.SchemaProps{ 12257 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 12258 Type: []string{"string"}, 12259 Format: "", 12260 }, 12261 }, 12262 "metadata": { 12263 SchemaProps: spec.SchemaProps{ 12264 Description: "Standard object's metadata.", 12265 Default: map[string]interface{}{}, 12266 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 12267 }, 12268 }, 12269 "spec": { 12270 SchemaProps: spec.SchemaProps{ 12271 Description: "Specification of the Policy.", 12272 Default: map[string]interface{}{}, 12273 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.StagedNetworkPolicySpec"), 12274 }, 12275 }, 12276 }, 12277 }, 12278 }, 12279 Dependencies: []string{ 12280 "github.com/tigera/api/pkg/apis/projectcalico/v3.StagedNetworkPolicySpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 12281 } 12282 } 12283 12284 func schema_pkg_apis_projectcalico_v3_StagedNetworkPolicyList(ref common.ReferenceCallback) common.OpenAPIDefinition { 12285 return common.OpenAPIDefinition{ 12286 Schema: spec.Schema{ 12287 SchemaProps: spec.SchemaProps{ 12288 Description: "StagedNetworkPolicyList contains a list of StagedNetworkPolicy resources.", 12289 Type: []string{"object"}, 12290 Properties: map[string]spec.Schema{ 12291 "kind": { 12292 SchemaProps: spec.SchemaProps{ 12293 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 12294 Type: []string{"string"}, 12295 Format: "", 12296 }, 12297 }, 12298 "apiVersion": { 12299 SchemaProps: spec.SchemaProps{ 12300 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 12301 Type: []string{"string"}, 12302 Format: "", 12303 }, 12304 }, 12305 "metadata": { 12306 SchemaProps: spec.SchemaProps{ 12307 Default: map[string]interface{}{}, 12308 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 12309 }, 12310 }, 12311 "items": { 12312 SchemaProps: spec.SchemaProps{ 12313 Type: []string{"array"}, 12314 Items: &spec.SchemaOrArray{ 12315 Schema: &spec.Schema{ 12316 SchemaProps: spec.SchemaProps{ 12317 Default: map[string]interface{}{}, 12318 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.StagedNetworkPolicy"), 12319 }, 12320 }, 12321 }, 12322 }, 12323 }, 12324 }, 12325 Required: []string{"metadata", "items"}, 12326 }, 12327 }, 12328 Dependencies: []string{ 12329 "github.com/tigera/api/pkg/apis/projectcalico/v3.StagedNetworkPolicy", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 12330 } 12331 } 12332 12333 func schema_pkg_apis_projectcalico_v3_StagedNetworkPolicySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 12334 return common.OpenAPIDefinition{ 12335 Schema: spec.Schema{ 12336 SchemaProps: spec.SchemaProps{ 12337 Type: []string{"object"}, 12338 Properties: map[string]spec.Schema{ 12339 "stagedAction": { 12340 SchemaProps: spec.SchemaProps{ 12341 Description: "The staged action. If this is omitted, the default is Set.", 12342 Type: []string{"string"}, 12343 Format: "", 12344 }, 12345 }, 12346 "tier": { 12347 SchemaProps: spec.SchemaProps{ 12348 Description: "The name of the tier that this policy belongs to. If this is omitted, the default tier (name is \"default\") is assumed. The specified tier must exist in order to create security policies within the tier, the \"default\" tier is created automatically if it does not exist, this means for deployments requiring only a single Tier, the tier name may be omitted on all policy management requests.", 12349 Type: []string{"string"}, 12350 Format: "", 12351 }, 12352 }, 12353 "order": { 12354 SchemaProps: spec.SchemaProps{ 12355 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 within the same tier. 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\" within the tier.", 12356 Type: []string{"number"}, 12357 Format: "double", 12358 }, 12359 }, 12360 "ingress": { 12361 SchemaProps: spec.SchemaProps{ 12362 Description: "The ordered set of ingress rules. Each rule contains a set of packet match criteria and a corresponding action to apply.", 12363 Type: []string{"array"}, 12364 Items: &spec.SchemaOrArray{ 12365 Schema: &spec.Schema{ 12366 SchemaProps: spec.SchemaProps{ 12367 Default: map[string]interface{}{}, 12368 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.Rule"), 12369 }, 12370 }, 12371 }, 12372 }, 12373 }, 12374 "egress": { 12375 SchemaProps: spec.SchemaProps{ 12376 Description: "The ordered set of egress rules. Each rule contains a set of packet match criteria and a corresponding action to apply.", 12377 Type: []string{"array"}, 12378 Items: &spec.SchemaOrArray{ 12379 Schema: &spec.Schema{ 12380 SchemaProps: spec.SchemaProps{ 12381 Default: map[string]interface{}{}, 12382 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.Rule"), 12383 }, 12384 }, 12385 }, 12386 }, 12387 }, 12388 "selector": { 12389 SchemaProps: spec.SchemaProps{ 12390 Description: "The selector is an expression used to pick 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)", 12391 Type: []string{"string"}, 12392 Format: "", 12393 }, 12394 }, 12395 "types": { 12396 SchemaProps: spec.SchemaProps{ 12397 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.", 12398 Type: []string{"array"}, 12399 Items: &spec.SchemaOrArray{ 12400 Schema: &spec.Schema{ 12401 SchemaProps: spec.SchemaProps{ 12402 Default: "", 12403 Type: []string{"string"}, 12404 Format: "", 12405 }, 12406 }, 12407 }, 12408 }, 12409 }, 12410 "serviceAccountSelector": { 12411 SchemaProps: spec.SchemaProps{ 12412 Description: "ServiceAccountSelector is an optional field for an expression used to select a pod based on service accounts.", 12413 Type: []string{"string"}, 12414 Format: "", 12415 }, 12416 }, 12417 "performanceHints": { 12418 SchemaProps: spec.SchemaProps{ 12419 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.", 12420 Type: []string{"array"}, 12421 Items: &spec.SchemaOrArray{ 12422 Schema: &spec.Schema{ 12423 SchemaProps: spec.SchemaProps{ 12424 Default: "", 12425 Type: []string{"string"}, 12426 Format: "", 12427 }, 12428 }, 12429 }, 12430 }, 12431 }, 12432 }, 12433 }, 12434 }, 12435 Dependencies: []string{ 12436 "github.com/tigera/api/pkg/apis/projectcalico/v3.Rule"}, 12437 } 12438 } 12439 12440 func schema_pkg_apis_projectcalico_v3_ThreatFeedFormat(ref common.ReferenceCallback) common.OpenAPIDefinition { 12441 return common.OpenAPIDefinition{ 12442 Schema: spec.Schema{ 12443 SchemaProps: spec.SchemaProps{ 12444 Type: []string{"object"}, 12445 Properties: map[string]spec.Schema{ 12446 "newlineDelimited": { 12447 SchemaProps: spec.SchemaProps{ 12448 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ThreatFeedFormatNewlineDelimited"), 12449 }, 12450 }, 12451 "json": { 12452 SchemaProps: spec.SchemaProps{ 12453 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ThreatFeedFormatJSON"), 12454 }, 12455 }, 12456 "csv": { 12457 SchemaProps: spec.SchemaProps{ 12458 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.ThreatFeedFormatCSV"), 12459 }, 12460 }, 12461 }, 12462 }, 12463 }, 12464 Dependencies: []string{ 12465 "github.com/tigera/api/pkg/apis/projectcalico/v3.ThreatFeedFormatCSV", "github.com/tigera/api/pkg/apis/projectcalico/v3.ThreatFeedFormatJSON", "github.com/tigera/api/pkg/apis/projectcalico/v3.ThreatFeedFormatNewlineDelimited"}, 12466 } 12467 } 12468 12469 func schema_pkg_apis_projectcalico_v3_ThreatFeedFormatCSV(ref common.ReferenceCallback) common.OpenAPIDefinition { 12470 return common.OpenAPIDefinition{ 12471 Schema: spec.Schema{ 12472 SchemaProps: spec.SchemaProps{ 12473 Type: []string{"object"}, 12474 Properties: map[string]spec.Schema{ 12475 "fieldNum": { 12476 SchemaProps: spec.SchemaProps{ 12477 Type: []string{"integer"}, 12478 Format: "int32", 12479 }, 12480 }, 12481 "fieldName": { 12482 SchemaProps: spec.SchemaProps{ 12483 Type: []string{"string"}, 12484 Format: "", 12485 }, 12486 }, 12487 "header": { 12488 SchemaProps: spec.SchemaProps{ 12489 Type: []string{"boolean"}, 12490 Format: "", 12491 }, 12492 }, 12493 "columnDelimiter": { 12494 SchemaProps: spec.SchemaProps{ 12495 Type: []string{"string"}, 12496 Format: "", 12497 }, 12498 }, 12499 "commentDelimiter": { 12500 SchemaProps: spec.SchemaProps{ 12501 Type: []string{"string"}, 12502 Format: "", 12503 }, 12504 }, 12505 "recordSize": { 12506 SchemaProps: spec.SchemaProps{ 12507 Type: []string{"integer"}, 12508 Format: "int32", 12509 }, 12510 }, 12511 "disableRecordSizeValidation": { 12512 SchemaProps: spec.SchemaProps{ 12513 Type: []string{"boolean"}, 12514 Format: "", 12515 }, 12516 }, 12517 }, 12518 }, 12519 }, 12520 } 12521 } 12522 12523 func schema_pkg_apis_projectcalico_v3_ThreatFeedFormatJSON(ref common.ReferenceCallback) common.OpenAPIDefinition { 12524 return common.OpenAPIDefinition{ 12525 Schema: spec.Schema{ 12526 SchemaProps: spec.SchemaProps{ 12527 Type: []string{"object"}, 12528 Properties: map[string]spec.Schema{ 12529 "path": { 12530 SchemaProps: spec.SchemaProps{ 12531 Type: []string{"string"}, 12532 Format: "", 12533 }, 12534 }, 12535 }, 12536 }, 12537 }, 12538 } 12539 } 12540 12541 func schema_pkg_apis_projectcalico_v3_ThreatFeedFormatNewlineDelimited(ref common.ReferenceCallback) common.OpenAPIDefinition { 12542 return common.OpenAPIDefinition{ 12543 Schema: spec.Schema{ 12544 SchemaProps: spec.SchemaProps{ 12545 Type: []string{"object"}, 12546 }, 12547 }, 12548 } 12549 } 12550 12551 func schema_pkg_apis_projectcalico_v3_Tier(ref common.ReferenceCallback) common.OpenAPIDefinition { 12552 return common.OpenAPIDefinition{ 12553 Schema: spec.Schema{ 12554 SchemaProps: spec.SchemaProps{ 12555 Description: "Tier contains a set of policies that are applied to packets. Multiple tiers may be created and each tier is applied in the order specified in the tier specification. Tier is globally-scoped (i.e. not Namespaced).", 12556 Type: []string{"object"}, 12557 Properties: map[string]spec.Schema{ 12558 "kind": { 12559 SchemaProps: spec.SchemaProps{ 12560 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 12561 Type: []string{"string"}, 12562 Format: "", 12563 }, 12564 }, 12565 "apiVersion": { 12566 SchemaProps: spec.SchemaProps{ 12567 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 12568 Type: []string{"string"}, 12569 Format: "", 12570 }, 12571 }, 12572 "metadata": { 12573 SchemaProps: spec.SchemaProps{ 12574 Description: "Standard object's metadata.", 12575 Default: map[string]interface{}{}, 12576 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 12577 }, 12578 }, 12579 "spec": { 12580 SchemaProps: spec.SchemaProps{ 12581 Description: "Specification of the Tier.", 12582 Default: map[string]interface{}{}, 12583 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.TierSpec"), 12584 }, 12585 }, 12586 }, 12587 }, 12588 }, 12589 Dependencies: []string{ 12590 "github.com/tigera/api/pkg/apis/projectcalico/v3.TierSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 12591 } 12592 } 12593 12594 func schema_pkg_apis_projectcalico_v3_TierList(ref common.ReferenceCallback) common.OpenAPIDefinition { 12595 return common.OpenAPIDefinition{ 12596 Schema: spec.Schema{ 12597 SchemaProps: spec.SchemaProps{ 12598 Description: "TierList contains a list of Tier resources.", 12599 Type: []string{"object"}, 12600 Properties: map[string]spec.Schema{ 12601 "kind": { 12602 SchemaProps: spec.SchemaProps{ 12603 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 12604 Type: []string{"string"}, 12605 Format: "", 12606 }, 12607 }, 12608 "apiVersion": { 12609 SchemaProps: spec.SchemaProps{ 12610 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 12611 Type: []string{"string"}, 12612 Format: "", 12613 }, 12614 }, 12615 "metadata": { 12616 SchemaProps: spec.SchemaProps{ 12617 Default: map[string]interface{}{}, 12618 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 12619 }, 12620 }, 12621 "items": { 12622 SchemaProps: spec.SchemaProps{ 12623 Type: []string{"array"}, 12624 Items: &spec.SchemaOrArray{ 12625 Schema: &spec.Schema{ 12626 SchemaProps: spec.SchemaProps{ 12627 Default: map[string]interface{}{}, 12628 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.Tier"), 12629 }, 12630 }, 12631 }, 12632 }, 12633 }, 12634 }, 12635 Required: []string{"metadata", "items"}, 12636 }, 12637 }, 12638 Dependencies: []string{ 12639 "github.com/tigera/api/pkg/apis/projectcalico/v3.Tier", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 12640 } 12641 } 12642 12643 func schema_pkg_apis_projectcalico_v3_TierSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 12644 return common.OpenAPIDefinition{ 12645 Schema: spec.Schema{ 12646 SchemaProps: spec.SchemaProps{ 12647 Description: "TierSpec contains the specification for a security policy tier resource.", 12648 Type: []string{"object"}, 12649 Properties: map[string]spec.Schema{ 12650 "order": { 12651 SchemaProps: spec.SchemaProps{ 12652 Description: "Order is an optional field that specifies the order in which the tier is applied. Tiers 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 tier will be applied last. Tiers with identical order will be applied in alphanumerical order based on the Tier \"Name\".", 12653 Type: []string{"number"}, 12654 Format: "double", 12655 }, 12656 }, 12657 }, 12658 }, 12659 }, 12660 } 12661 } 12662 12663 func schema_pkg_apis_projectcalico_v3_UIDashboard(ref common.ReferenceCallback) common.OpenAPIDefinition { 12664 return common.OpenAPIDefinition{ 12665 Schema: spec.Schema{ 12666 SchemaProps: spec.SchemaProps{ 12667 Description: "UIDashboard contains the data for a UI dashboard.", 12668 Type: []string{"object"}, 12669 Properties: map[string]spec.Schema{ 12670 "dashboardData": { 12671 SchemaProps: spec.SchemaProps{ 12672 Description: "Array of dashboard data", 12673 Type: []string{"array"}, 12674 Items: &spec.SchemaOrArray{ 12675 Schema: &spec.Schema{ 12676 SchemaProps: spec.SchemaProps{ 12677 Default: map[string]interface{}{}, 12678 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.DashboardData"), 12679 }, 12680 }, 12681 }, 12682 }, 12683 }, 12684 }, 12685 }, 12686 }, 12687 Dependencies: []string{ 12688 "github.com/tigera/api/pkg/apis/projectcalico/v3.DashboardData"}, 12689 } 12690 } 12691 12692 func schema_pkg_apis_projectcalico_v3_UIGraphLayer(ref common.ReferenceCallback) common.OpenAPIDefinition { 12693 return common.OpenAPIDefinition{ 12694 Schema: spec.Schema{ 12695 SchemaProps: spec.SchemaProps{ 12696 Description: "UIGraphLayer contains the data for a UI graph layer.", 12697 Type: []string{"object"}, 12698 Properties: map[string]spec.Schema{ 12699 "nodes": { 12700 SchemaProps: spec.SchemaProps{ 12701 Description: "The nodes that are aggregated into a single layer.", 12702 Type: []string{"array"}, 12703 Items: &spec.SchemaOrArray{ 12704 Schema: &spec.Schema{ 12705 SchemaProps: spec.SchemaProps{ 12706 Default: map[string]interface{}{}, 12707 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.UIGraphNode"), 12708 }, 12709 }, 12710 }, 12711 }, 12712 }, 12713 "icon": { 12714 SchemaProps: spec.SchemaProps{ 12715 Description: "A user-configurable icon. If not specified, the default layer icon is used for this layer node.", 12716 Type: []string{"string"}, 12717 Format: "", 12718 }, 12719 }, 12720 "color": { 12721 SchemaProps: spec.SchemaProps{ 12722 Description: "The color used to represent the layer when an Icon has not been specified.", 12723 Type: []string{"string"}, 12724 Format: "", 12725 }, 12726 }, 12727 }, 12728 Required: []string{"nodes"}, 12729 }, 12730 }, 12731 Dependencies: []string{ 12732 "github.com/tigera/api/pkg/apis/projectcalico/v3.UIGraphNode"}, 12733 } 12734 } 12735 12736 func schema_pkg_apis_projectcalico_v3_UIGraphNode(ref common.ReferenceCallback) common.OpenAPIDefinition { 12737 return common.OpenAPIDefinition{ 12738 Schema: spec.Schema{ 12739 SchemaProps: spec.SchemaProps{ 12740 Description: "UIGraphNode contains details about a graph node so that the UI can render it correctly.", 12741 Type: []string{"object"}, 12742 Properties: map[string]spec.Schema{ 12743 "id": { 12744 SchemaProps: spec.SchemaProps{ 12745 Description: "The node ID.", 12746 Default: "", 12747 Type: []string{"string"}, 12748 Format: "", 12749 }, 12750 }, 12751 "type": { 12752 SchemaProps: spec.SchemaProps{ 12753 Description: "The node type.", 12754 Default: "", 12755 Type: []string{"string"}, 12756 Format: "", 12757 }, 12758 }, 12759 "name": { 12760 SchemaProps: spec.SchemaProps{ 12761 Description: "The node name.", 12762 Default: "", 12763 Type: []string{"string"}, 12764 Format: "", 12765 }, 12766 }, 12767 "namespace": { 12768 SchemaProps: spec.SchemaProps{ 12769 Description: "The node namespace.", 12770 Type: []string{"string"}, 12771 Format: "", 12772 }, 12773 }, 12774 }, 12775 Required: []string{"id", "type", "name"}, 12776 }, 12777 }, 12778 } 12779 } 12780 12781 func schema_pkg_apis_projectcalico_v3_UIGraphNodeView(ref common.ReferenceCallback) common.OpenAPIDefinition { 12782 return common.OpenAPIDefinition{ 12783 Schema: spec.Schema{ 12784 SchemaProps: spec.SchemaProps{ 12785 Description: "UIGraphNodeView contains the view configuration for a specific graph node.", 12786 Type: []string{"object"}, 12787 Properties: map[string]spec.Schema{ 12788 "id": { 12789 SchemaProps: spec.SchemaProps{ 12790 Description: "The node ID.", 12791 Default: "", 12792 Type: []string{"string"}, 12793 Format: "", 12794 }, 12795 }, 12796 "type": { 12797 SchemaProps: spec.SchemaProps{ 12798 Description: "The node type.", 12799 Default: "", 12800 Type: []string{"string"}, 12801 Format: "", 12802 }, 12803 }, 12804 "name": { 12805 SchemaProps: spec.SchemaProps{ 12806 Description: "The node name.", 12807 Default: "", 12808 Type: []string{"string"}, 12809 Format: "", 12810 }, 12811 }, 12812 "namespace": { 12813 SchemaProps: spec.SchemaProps{ 12814 Description: "The node namespace.", 12815 Type: []string{"string"}, 12816 Format: "", 12817 }, 12818 }, 12819 "inFocus": { 12820 SchemaProps: spec.SchemaProps{ 12821 Description: "This node is a primary focus of the graph (i.e. the graph contains this node and connected nodes).", 12822 Type: []string{"boolean"}, 12823 Format: "", 12824 }, 12825 }, 12826 "expanded": { 12827 SchemaProps: spec.SchemaProps{ 12828 Description: "This node is expanded to the next level. This node can, for example, be a layer that is expanded into its constituent parts.", 12829 Type: []string{"boolean"}, 12830 Format: "", 12831 }, 12832 }, 12833 "followIngress": { 12834 SchemaProps: spec.SchemaProps{ 12835 Description: "Whether the ingress/egress connections to/from this node are included in the graph. This effectively brings more nodes into focus.", 12836 Type: []string{"boolean"}, 12837 Format: "", 12838 }, 12839 }, 12840 "followEgress": { 12841 SchemaProps: spec.SchemaProps{ 12842 Type: []string{"boolean"}, 12843 Format: "", 12844 }, 12845 }, 12846 "deemphasize": { 12847 SchemaProps: spec.SchemaProps{ 12848 Description: "Whether the UI should de-emphasize the node when visible. This is just a UI directive and does not correspond to a backend parameter.", 12849 Type: []string{"boolean"}, 12850 Format: "", 12851 }, 12852 }, 12853 "hide": { 12854 SchemaProps: spec.SchemaProps{ 12855 Description: "Whether the UI should hide the node. This is just a UI directive and does not correspond to a backend parameter.", 12856 Type: []string{"boolean"}, 12857 Format: "", 12858 }, 12859 }, 12860 "hideUnrelated": { 12861 SchemaProps: spec.SchemaProps{ 12862 Description: "Whether the UI should hide unrelated nodes. This is just a UI directive and does not correspond to a backend parameter.", 12863 Type: []string{"boolean"}, 12864 Format: "", 12865 }, 12866 }, 12867 }, 12868 Required: []string{"id", "type", "name"}, 12869 }, 12870 }, 12871 } 12872 } 12873 12874 func schema_pkg_apis_projectcalico_v3_UIGraphView(ref common.ReferenceCallback) common.OpenAPIDefinition { 12875 return common.OpenAPIDefinition{ 12876 Schema: spec.Schema{ 12877 SchemaProps: spec.SchemaProps{ 12878 Description: "UIGraphView contains the data for a UI graph view.", 12879 Type: []string{"object"}, 12880 Properties: map[string]spec.Schema{ 12881 "expandPorts": { 12882 SchemaProps: spec.SchemaProps{ 12883 Description: "Whether ports are expanded. If false, port information is aggregated.", 12884 Type: []string{"boolean"}, 12885 Format: "", 12886 }, 12887 }, 12888 "followConnectionDirection": { 12889 SchemaProps: spec.SchemaProps{ 12890 Description: "Whether or not to automatically follow directly connected nodes.", 12891 Type: []string{"boolean"}, 12892 Format: "", 12893 }, 12894 }, 12895 "splitIngressEgress": { 12896 SchemaProps: spec.SchemaProps{ 12897 Description: "Whether to split HostEndpoints, NetworkSets and Networks into separate ingress and egress nodes or to combine them. In a service-centric view, splitting these makes the graph clearer. This never splits pods which represent a true microservice which has ingress and egress connections.", 12898 Type: []string{"boolean"}, 12899 Format: "", 12900 }, 12901 }, 12902 "hostAggregationSelectors": { 12903 SchemaProps: spec.SchemaProps{ 12904 Description: "The set of selectors used to aggregate hosts (Kubernetes nodes). Nodes are aggregated based on the supplied set of selectors. In the case of overlapping selectors, the order specified in the slice is the order checked and so the first selector to match is used. The nodes will be aggregated into a graph node with the name specified in the NamedSelector.", 12905 Type: []string{"array"}, 12906 Items: &spec.SchemaOrArray{ 12907 Schema: &spec.Schema{ 12908 SchemaProps: spec.SchemaProps{ 12909 Default: map[string]interface{}{}, 12910 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.NamedSelector"), 12911 }, 12912 }, 12913 }, 12914 }, 12915 }, 12916 "layoutType": { 12917 SchemaProps: spec.SchemaProps{ 12918 Description: "Layout type. Semi-arbitrary value used to specify the layout-type/algorithm. For example could specify different layout algorithms, or click-to-grid. Mostly here for future use.", 12919 Type: []string{"string"}, 12920 Format: "", 12921 }, 12922 }, 12923 "positions": { 12924 SchemaProps: spec.SchemaProps{ 12925 Description: "Positions of graph nodes.", 12926 Type: []string{"array"}, 12927 Items: &spec.SchemaOrArray{ 12928 Schema: &spec.Schema{ 12929 SchemaProps: spec.SchemaProps{ 12930 Default: map[string]interface{}{}, 12931 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.Position"), 12932 }, 12933 }, 12934 }, 12935 }, 12936 }, 12937 "layers": { 12938 SchemaProps: spec.SchemaProps{ 12939 Description: "The set of layer names that are active in this view. Note that layers may be defined, but it is not necessary to have each layer \"active\". Corresponds directly to the name of the UISettings resource that contains a layer definition.", 12940 Type: []string{"array"}, 12941 Items: &spec.SchemaOrArray{ 12942 Schema: &spec.Schema{ 12943 SchemaProps: spec.SchemaProps{ 12944 Default: "", 12945 Type: []string{"string"}, 12946 Format: "", 12947 }, 12948 }, 12949 }, 12950 }, 12951 }, 12952 "nodes": { 12953 SchemaProps: spec.SchemaProps{ 12954 Description: "Graph node specific view data. This provides information about what is in focus, expanded, hidden, deemphasized etc. at a per-node level.", 12955 Type: []string{"array"}, 12956 Items: &spec.SchemaOrArray{ 12957 Schema: &spec.Schema{ 12958 SchemaProps: spec.SchemaProps{ 12959 Default: map[string]interface{}{}, 12960 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.UIGraphNodeView"), 12961 }, 12962 }, 12963 }, 12964 }, 12965 }, 12966 }, 12967 }, 12968 }, 12969 Dependencies: []string{ 12970 "github.com/tigera/api/pkg/apis/projectcalico/v3.NamedSelector", "github.com/tigera/api/pkg/apis/projectcalico/v3.Position", "github.com/tigera/api/pkg/apis/projectcalico/v3.UIGraphNodeView"}, 12971 } 12972 } 12973 12974 func schema_pkg_apis_projectcalico_v3_UISettings(ref common.ReferenceCallback) common.OpenAPIDefinition { 12975 return common.OpenAPIDefinition{ 12976 Schema: spec.Schema{ 12977 SchemaProps: spec.SchemaProps{ 12978 Description: "UISettings contains UI settings.", 12979 Type: []string{"object"}, 12980 Properties: map[string]spec.Schema{ 12981 "kind": { 12982 SchemaProps: spec.SchemaProps{ 12983 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 12984 Type: []string{"string"}, 12985 Format: "", 12986 }, 12987 }, 12988 "apiVersion": { 12989 SchemaProps: spec.SchemaProps{ 12990 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 12991 Type: []string{"string"}, 12992 Format: "", 12993 }, 12994 }, 12995 "metadata": { 12996 SchemaProps: spec.SchemaProps{ 12997 Description: "Standard object's metadata.", 12998 Default: map[string]interface{}{}, 12999 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 13000 }, 13001 }, 13002 "spec": { 13003 SchemaProps: spec.SchemaProps{ 13004 Description: "Specification of the UISettings.", 13005 Default: map[string]interface{}{}, 13006 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.UISettingsSpec"), 13007 }, 13008 }, 13009 }, 13010 }, 13011 }, 13012 Dependencies: []string{ 13013 "github.com/tigera/api/pkg/apis/projectcalico/v3.UISettingsSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 13014 } 13015 } 13016 13017 func schema_pkg_apis_projectcalico_v3_UISettingsGroup(ref common.ReferenceCallback) common.OpenAPIDefinition { 13018 return common.OpenAPIDefinition{ 13019 Schema: spec.Schema{ 13020 SchemaProps: spec.SchemaProps{ 13021 Description: "UISettingsGroup contains the settings that dictate how many UI settings may be created for a specific cluster/user combination. UI settings may only be persisted if there is a corresponding UISettingsGroup resource.", 13022 Type: []string{"object"}, 13023 Properties: map[string]spec.Schema{ 13024 "kind": { 13025 SchemaProps: spec.SchemaProps{ 13026 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 13027 Type: []string{"string"}, 13028 Format: "", 13029 }, 13030 }, 13031 "apiVersion": { 13032 SchemaProps: spec.SchemaProps{ 13033 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 13034 Type: []string{"string"}, 13035 Format: "", 13036 }, 13037 }, 13038 "metadata": { 13039 SchemaProps: spec.SchemaProps{ 13040 Description: "Standard object's metadata.", 13041 Default: map[string]interface{}{}, 13042 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 13043 }, 13044 }, 13045 "spec": { 13046 SchemaProps: spec.SchemaProps{ 13047 Description: "Specification of the UISettingsGroup.", 13048 Default: map[string]interface{}{}, 13049 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.UISettingsGroupSpec"), 13050 }, 13051 }, 13052 }, 13053 }, 13054 }, 13055 Dependencies: []string{ 13056 "github.com/tigera/api/pkg/apis/projectcalico/v3.UISettingsGroupSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 13057 } 13058 } 13059 13060 func schema_pkg_apis_projectcalico_v3_UISettingsGroupList(ref common.ReferenceCallback) common.OpenAPIDefinition { 13061 return common.OpenAPIDefinition{ 13062 Schema: spec.Schema{ 13063 SchemaProps: spec.SchemaProps{ 13064 Description: "UISettingsGroupList contains a list of UISettingsGroup resources.", 13065 Type: []string{"object"}, 13066 Properties: map[string]spec.Schema{ 13067 "kind": { 13068 SchemaProps: spec.SchemaProps{ 13069 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 13070 Type: []string{"string"}, 13071 Format: "", 13072 }, 13073 }, 13074 "apiVersion": { 13075 SchemaProps: spec.SchemaProps{ 13076 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 13077 Type: []string{"string"}, 13078 Format: "", 13079 }, 13080 }, 13081 "metadata": { 13082 SchemaProps: spec.SchemaProps{ 13083 Default: map[string]interface{}{}, 13084 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 13085 }, 13086 }, 13087 "items": { 13088 SchemaProps: spec.SchemaProps{ 13089 Type: []string{"array"}, 13090 Items: &spec.SchemaOrArray{ 13091 Schema: &spec.Schema{ 13092 SchemaProps: spec.SchemaProps{ 13093 Default: map[string]interface{}{}, 13094 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.UISettingsGroup"), 13095 }, 13096 }, 13097 }, 13098 }, 13099 }, 13100 }, 13101 Required: []string{"metadata", "items"}, 13102 }, 13103 }, 13104 Dependencies: []string{ 13105 "github.com/tigera/api/pkg/apis/projectcalico/v3.UISettingsGroup", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 13106 } 13107 } 13108 13109 func schema_pkg_apis_projectcalico_v3_UISettingsGroupSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 13110 return common.OpenAPIDefinition{ 13111 Schema: spec.Schema{ 13112 SchemaProps: spec.SchemaProps{ 13113 Description: "UISettingsGroupSpec contains the specification for a UISettingsGroup resource.", 13114 Type: []string{"object"}, 13115 Properties: map[string]spec.Schema{ 13116 "description": { 13117 SchemaProps: spec.SchemaProps{ 13118 Description: "This description is displayed by the UI when asking where to store any UI-specific settings such as views, layers, dashboards etc. This name should be a short description that relates the settings to the set of clusters defined below, the set of users or groups that are able to access to these settings (defined via RBAC) or the set of applications common to the set of users or groups that can access these settings. Examples might be: - \"cluster\" when these settings apply to the whole cluster - \"global\" when these settings apply to all clusters (in an Multi-Cluster environment) - \"security team\" if these settings are accessible only to the security group and therefore\n applicable to the applications accessible by that team\n- \"storefront\" if these settings are accessible to all users and groups that can access the\n storefront set of applications\n- \"user\" if these settings are accessible to only a single user", 13119 Default: "", 13120 Type: []string{"string"}, 13121 Format: "", 13122 }, 13123 }, 13124 "filterType": { 13125 SchemaProps: spec.SchemaProps{ 13126 Description: "The type of filter to use when listing and watching the UISettings associated with this group. If set to None a List/watch of UISettings in this group will return all UISettings. If set to User a list/watch of UISettings in this group will return only UISettings created by the user making the request. For settings groups that are specific to users and where multiple users may access the settings in this group we recommend setting this to \"User\" to avoid cluttering up the UI with settings for other users. Note this is only a filter. Full lockdown of UISettings for specific users should be handled using appropriate RBAC.", 13127 Type: []string{"string"}, 13128 Format: "", 13129 }, 13130 }, 13131 }, 13132 Required: []string{"description"}, 13133 }, 13134 }, 13135 } 13136 } 13137 13138 func schema_pkg_apis_projectcalico_v3_UISettingsList(ref common.ReferenceCallback) common.OpenAPIDefinition { 13139 return common.OpenAPIDefinition{ 13140 Schema: spec.Schema{ 13141 SchemaProps: spec.SchemaProps{ 13142 Description: "UISettingsList contains a list of UISettings resources.", 13143 Type: []string{"object"}, 13144 Properties: map[string]spec.Schema{ 13145 "kind": { 13146 SchemaProps: spec.SchemaProps{ 13147 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 13148 Type: []string{"string"}, 13149 Format: "", 13150 }, 13151 }, 13152 "apiVersion": { 13153 SchemaProps: spec.SchemaProps{ 13154 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 13155 Type: []string{"string"}, 13156 Format: "", 13157 }, 13158 }, 13159 "metadata": { 13160 SchemaProps: spec.SchemaProps{ 13161 Default: map[string]interface{}{}, 13162 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 13163 }, 13164 }, 13165 "items": { 13166 SchemaProps: spec.SchemaProps{ 13167 Type: []string{"array"}, 13168 Items: &spec.SchemaOrArray{ 13169 Schema: &spec.Schema{ 13170 SchemaProps: spec.SchemaProps{ 13171 Default: map[string]interface{}{}, 13172 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.UISettings"), 13173 }, 13174 }, 13175 }, 13176 }, 13177 }, 13178 }, 13179 Required: []string{"metadata", "items"}, 13180 }, 13181 }, 13182 Dependencies: []string{ 13183 "github.com/tigera/api/pkg/apis/projectcalico/v3.UISettings", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 13184 } 13185 } 13186 13187 func schema_pkg_apis_projectcalico_v3_UISettingsSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 13188 return common.OpenAPIDefinition{ 13189 Schema: spec.Schema{ 13190 SchemaProps: spec.SchemaProps{ 13191 Description: "UISettingsSpec contains the specification for a UISettings resource.", 13192 Type: []string{"object"}, 13193 Properties: map[string]spec.Schema{ 13194 "group": { 13195 SchemaProps: spec.SchemaProps{ 13196 Description: "The settings group. Once configured this cannot be modified. The group must exist.", 13197 Default: "", 13198 Type: []string{"string"}, 13199 Format: "", 13200 }, 13201 }, 13202 "description": { 13203 SchemaProps: spec.SchemaProps{ 13204 Description: "This description is displayed by the UI.", 13205 Default: "", 13206 Type: []string{"string"}, 13207 Format: "", 13208 }, 13209 }, 13210 "view": { 13211 SchemaProps: spec.SchemaProps{ 13212 Description: "View data. One of View, Layer or Dashboard should be specified.", 13213 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.UIGraphView"), 13214 }, 13215 }, 13216 "layer": { 13217 SchemaProps: spec.SchemaProps{ 13218 Description: "Layer data. One of View, Layer or Dashboard should be specified.", 13219 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.UIGraphLayer"), 13220 }, 13221 }, 13222 "dashboard": { 13223 SchemaProps: spec.SchemaProps{ 13224 Description: "Dashboard data. One of View, Layer or Dashboard should be specified.", 13225 Ref: ref("github.com/tigera/api/pkg/apis/projectcalico/v3.UIDashboard"), 13226 }, 13227 }, 13228 "user": { 13229 SchemaProps: spec.SchemaProps{ 13230 Description: "The user associated with these settings. This is filled in by the APIServer on a create request if the owning group is filtered by user. Cannot be modified.", 13231 Type: []string{"string"}, 13232 Format: "", 13233 }, 13234 }, 13235 }, 13236 Required: []string{"group", "description"}, 13237 }, 13238 }, 13239 Dependencies: []string{ 13240 "github.com/tigera/api/pkg/apis/projectcalico/v3.UIDashboard", "github.com/tigera/api/pkg/apis/projectcalico/v3.UIGraphLayer", "github.com/tigera/api/pkg/apis/projectcalico/v3.UIGraphView"}, 13241 } 13242 } 13243 13244 func schema_pkg_apis_projectcalico_v3_WorkloadEndpointControllerConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 13245 return common.OpenAPIDefinition{ 13246 Schema: spec.Schema{ 13247 SchemaProps: spec.SchemaProps{ 13248 Description: "WorkloadEndpointControllerConfig configures the workload endpoint controller, which syncs Kubernetes labels to Calico workload endpoints (only used for etcdv3 datastore).", 13249 Type: []string{"object"}, 13250 Properties: map[string]spec.Schema{ 13251 "reconcilerPeriod": { 13252 SchemaProps: spec.SchemaProps{ 13253 Description: "ReconcilerPeriod is the period to perform reconciliation with the Calico datastore. [Default: 5m]", 13254 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), 13255 }, 13256 }, 13257 }, 13258 }, 13259 }, 13260 Dependencies: []string{ 13261 "k8s.io/apimachinery/pkg/apis/meta/v1.Duration"}, 13262 } 13263 } 13264 13265 func schema_api_pkg_lib_numorstring_Port(ref common.ReferenceCallback) common.OpenAPIDefinition { 13266 return common.OpenAPIDefinition{ 13267 Schema: spec.Schema{ 13268 SchemaProps: spec.SchemaProps{ 13269 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 = \"\".", 13270 Type: numorstring.Port{}.OpenAPISchemaType(), 13271 Format: numorstring.Port{}.OpenAPISchemaFormat(), 13272 }, 13273 }, 13274 } 13275 } 13276 13277 func schema_api_pkg_lib_numorstring_Protocol(ref common.ReferenceCallback) common.OpenAPIDefinition { 13278 return common.OpenAPIDefinition{ 13279 Schema: spec.Schema{ 13280 SchemaProps: spec.SchemaProps{ 13281 Type: numorstring.Protocol{}.OpenAPISchemaType(), 13282 Format: numorstring.Protocol{}.OpenAPISchemaFormat(), 13283 }, 13284 }, 13285 } 13286 } 13287 13288 func schema_api_pkg_lib_numorstring_Uint8OrString(ref common.ReferenceCallback) common.OpenAPIDefinition { 13289 return common.OpenAPIDefinition{ 13290 Schema: spec.Schema{ 13291 SchemaProps: spec.SchemaProps{ 13292 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.", 13293 Type: numorstring.Uint8OrString{}.OpenAPISchemaType(), 13294 Format: numorstring.Uint8OrString{}.OpenAPISchemaFormat(), 13295 }, 13296 }, 13297 } 13298 } 13299 13300 func schema_k8sio_api_core_v1_AWSElasticBlockStoreVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 13301 return common.OpenAPIDefinition{ 13302 Schema: spec.Schema{ 13303 SchemaProps: spec.SchemaProps{ 13304 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.", 13305 Type: []string{"object"}, 13306 Properties: map[string]spec.Schema{ 13307 "volumeID": { 13308 SchemaProps: spec.SchemaProps{ 13309 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", 13310 Default: "", 13311 Type: []string{"string"}, 13312 Format: "", 13313 }, 13314 }, 13315 "fsType": { 13316 SchemaProps: spec.SchemaProps{ 13317 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", 13318 Type: []string{"string"}, 13319 Format: "", 13320 }, 13321 }, 13322 "partition": { 13323 SchemaProps: spec.SchemaProps{ 13324 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).", 13325 Type: []string{"integer"}, 13326 Format: "int32", 13327 }, 13328 }, 13329 "readOnly": { 13330 SchemaProps: spec.SchemaProps{ 13331 Description: "readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", 13332 Type: []string{"boolean"}, 13333 Format: "", 13334 }, 13335 }, 13336 }, 13337 Required: []string{"volumeID"}, 13338 }, 13339 }, 13340 } 13341 } 13342 13343 func schema_k8sio_api_core_v1_Affinity(ref common.ReferenceCallback) common.OpenAPIDefinition { 13344 return common.OpenAPIDefinition{ 13345 Schema: spec.Schema{ 13346 SchemaProps: spec.SchemaProps{ 13347 Description: "Affinity is a group of affinity scheduling rules.", 13348 Type: []string{"object"}, 13349 Properties: map[string]spec.Schema{ 13350 "nodeAffinity": { 13351 SchemaProps: spec.SchemaProps{ 13352 Description: "Describes node affinity scheduling rules for the pod.", 13353 Ref: ref("k8s.io/api/core/v1.NodeAffinity"), 13354 }, 13355 }, 13356 "podAffinity": { 13357 SchemaProps: spec.SchemaProps{ 13358 Description: "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).", 13359 Ref: ref("k8s.io/api/core/v1.PodAffinity"), 13360 }, 13361 }, 13362 "podAntiAffinity": { 13363 SchemaProps: spec.SchemaProps{ 13364 Description: "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).", 13365 Ref: ref("k8s.io/api/core/v1.PodAntiAffinity"), 13366 }, 13367 }, 13368 }, 13369 }, 13370 }, 13371 Dependencies: []string{ 13372 "k8s.io/api/core/v1.NodeAffinity", "k8s.io/api/core/v1.PodAffinity", "k8s.io/api/core/v1.PodAntiAffinity"}, 13373 } 13374 } 13375 13376 func schema_k8sio_api_core_v1_AttachedVolume(ref common.ReferenceCallback) common.OpenAPIDefinition { 13377 return common.OpenAPIDefinition{ 13378 Schema: spec.Schema{ 13379 SchemaProps: spec.SchemaProps{ 13380 Description: "AttachedVolume describes a volume attached to a node", 13381 Type: []string{"object"}, 13382 Properties: map[string]spec.Schema{ 13383 "name": { 13384 SchemaProps: spec.SchemaProps{ 13385 Description: "Name of the attached volume", 13386 Default: "", 13387 Type: []string{"string"}, 13388 Format: "", 13389 }, 13390 }, 13391 "devicePath": { 13392 SchemaProps: spec.SchemaProps{ 13393 Description: "DevicePath represents the device path where the volume should be available", 13394 Default: "", 13395 Type: []string{"string"}, 13396 Format: "", 13397 }, 13398 }, 13399 }, 13400 Required: []string{"name", "devicePath"}, 13401 }, 13402 }, 13403 } 13404 } 13405 13406 func schema_k8sio_api_core_v1_AvoidPods(ref common.ReferenceCallback) common.OpenAPIDefinition { 13407 return common.OpenAPIDefinition{ 13408 Schema: spec.Schema{ 13409 SchemaProps: spec.SchemaProps{ 13410 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.", 13411 Type: []string{"object"}, 13412 Properties: map[string]spec.Schema{ 13413 "preferAvoidPods": { 13414 SchemaProps: spec.SchemaProps{ 13415 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.", 13416 Type: []string{"array"}, 13417 Items: &spec.SchemaOrArray{ 13418 Schema: &spec.Schema{ 13419 SchemaProps: spec.SchemaProps{ 13420 Default: map[string]interface{}{}, 13421 Ref: ref("k8s.io/api/core/v1.PreferAvoidPodsEntry"), 13422 }, 13423 }, 13424 }, 13425 }, 13426 }, 13427 }, 13428 }, 13429 }, 13430 Dependencies: []string{ 13431 "k8s.io/api/core/v1.PreferAvoidPodsEntry"}, 13432 } 13433 } 13434 13435 func schema_k8sio_api_core_v1_AzureDiskVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 13436 return common.OpenAPIDefinition{ 13437 Schema: spec.Schema{ 13438 SchemaProps: spec.SchemaProps{ 13439 Description: "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", 13440 Type: []string{"object"}, 13441 Properties: map[string]spec.Schema{ 13442 "diskName": { 13443 SchemaProps: spec.SchemaProps{ 13444 Description: "diskName is the Name of the data disk in the blob storage", 13445 Default: "", 13446 Type: []string{"string"}, 13447 Format: "", 13448 }, 13449 }, 13450 "diskURI": { 13451 SchemaProps: spec.SchemaProps{ 13452 Description: "diskURI is the URI of data disk in the blob storage", 13453 Default: "", 13454 Type: []string{"string"}, 13455 Format: "", 13456 }, 13457 }, 13458 "cachingMode": { 13459 SchemaProps: spec.SchemaProps{ 13460 Description: "cachingMode is the Host Caching mode: None, Read Only, Read Write.\n\nPossible enum values:\n - `\"None\"`\n - `\"ReadOnly\"`\n - `\"ReadWrite\"`", 13461 Type: []string{"string"}, 13462 Format: "", 13463 Enum: []interface{}{"None", "ReadOnly", "ReadWrite"}, 13464 }, 13465 }, 13466 "fsType": { 13467 SchemaProps: spec.SchemaProps{ 13468 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.", 13469 Type: []string{"string"}, 13470 Format: "", 13471 }, 13472 }, 13473 "readOnly": { 13474 SchemaProps: spec.SchemaProps{ 13475 Description: "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 13476 Type: []string{"boolean"}, 13477 Format: "", 13478 }, 13479 }, 13480 "kind": { 13481 SchemaProps: spec.SchemaProps{ 13482 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\"`", 13483 Type: []string{"string"}, 13484 Format: "", 13485 Enum: []interface{}{"Dedicated", "Managed", "Shared"}, 13486 }, 13487 }, 13488 }, 13489 Required: []string{"diskName", "diskURI"}, 13490 }, 13491 }, 13492 } 13493 } 13494 13495 func schema_k8sio_api_core_v1_AzureFilePersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 13496 return common.OpenAPIDefinition{ 13497 Schema: spec.Schema{ 13498 SchemaProps: spec.SchemaProps{ 13499 Description: "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", 13500 Type: []string{"object"}, 13501 Properties: map[string]spec.Schema{ 13502 "secretName": { 13503 SchemaProps: spec.SchemaProps{ 13504 Description: "secretName is the name of secret that contains Azure Storage Account Name and Key", 13505 Default: "", 13506 Type: []string{"string"}, 13507 Format: "", 13508 }, 13509 }, 13510 "shareName": { 13511 SchemaProps: spec.SchemaProps{ 13512 Description: "shareName is the azure Share Name", 13513 Default: "", 13514 Type: []string{"string"}, 13515 Format: "", 13516 }, 13517 }, 13518 "readOnly": { 13519 SchemaProps: spec.SchemaProps{ 13520 Description: "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 13521 Type: []string{"boolean"}, 13522 Format: "", 13523 }, 13524 }, 13525 "secretNamespace": { 13526 SchemaProps: spec.SchemaProps{ 13527 Description: "secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod", 13528 Type: []string{"string"}, 13529 Format: "", 13530 }, 13531 }, 13532 }, 13533 Required: []string{"secretName", "shareName"}, 13534 }, 13535 }, 13536 } 13537 } 13538 13539 func schema_k8sio_api_core_v1_AzureFileVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 13540 return common.OpenAPIDefinition{ 13541 Schema: spec.Schema{ 13542 SchemaProps: spec.SchemaProps{ 13543 Description: "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", 13544 Type: []string{"object"}, 13545 Properties: map[string]spec.Schema{ 13546 "secretName": { 13547 SchemaProps: spec.SchemaProps{ 13548 Description: "secretName is the name of secret that contains Azure Storage Account Name and Key", 13549 Default: "", 13550 Type: []string{"string"}, 13551 Format: "", 13552 }, 13553 }, 13554 "shareName": { 13555 SchemaProps: spec.SchemaProps{ 13556 Description: "shareName is the azure share Name", 13557 Default: "", 13558 Type: []string{"string"}, 13559 Format: "", 13560 }, 13561 }, 13562 "readOnly": { 13563 SchemaProps: spec.SchemaProps{ 13564 Description: "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 13565 Type: []string{"boolean"}, 13566 Format: "", 13567 }, 13568 }, 13569 }, 13570 Required: []string{"secretName", "shareName"}, 13571 }, 13572 }, 13573 } 13574 } 13575 13576 func schema_k8sio_api_core_v1_Binding(ref common.ReferenceCallback) common.OpenAPIDefinition { 13577 return common.OpenAPIDefinition{ 13578 Schema: spec.Schema{ 13579 SchemaProps: spec.SchemaProps{ 13580 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.", 13581 Type: []string{"object"}, 13582 Properties: map[string]spec.Schema{ 13583 "kind": { 13584 SchemaProps: spec.SchemaProps{ 13585 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 13586 Type: []string{"string"}, 13587 Format: "", 13588 }, 13589 }, 13590 "apiVersion": { 13591 SchemaProps: spec.SchemaProps{ 13592 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 13593 Type: []string{"string"}, 13594 Format: "", 13595 }, 13596 }, 13597 "metadata": { 13598 SchemaProps: spec.SchemaProps{ 13599 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 13600 Default: map[string]interface{}{}, 13601 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 13602 }, 13603 }, 13604 "target": { 13605 SchemaProps: spec.SchemaProps{ 13606 Description: "The target object that you want to bind to the standard object.", 13607 Default: map[string]interface{}{}, 13608 Ref: ref("k8s.io/api/core/v1.ObjectReference"), 13609 }, 13610 }, 13611 }, 13612 Required: []string{"target"}, 13613 }, 13614 }, 13615 Dependencies: []string{ 13616 "k8s.io/api/core/v1.ObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 13617 } 13618 } 13619 13620 func schema_k8sio_api_core_v1_CSIPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 13621 return common.OpenAPIDefinition{ 13622 Schema: spec.Schema{ 13623 SchemaProps: spec.SchemaProps{ 13624 Description: "Represents storage that is managed by an external CSI volume driver (Beta feature)", 13625 Type: []string{"object"}, 13626 Properties: map[string]spec.Schema{ 13627 "driver": { 13628 SchemaProps: spec.SchemaProps{ 13629 Description: "driver is the name of the driver to use for this volume. Required.", 13630 Default: "", 13631 Type: []string{"string"}, 13632 Format: "", 13633 }, 13634 }, 13635 "volumeHandle": { 13636 SchemaProps: spec.SchemaProps{ 13637 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.", 13638 Default: "", 13639 Type: []string{"string"}, 13640 Format: "", 13641 }, 13642 }, 13643 "readOnly": { 13644 SchemaProps: spec.SchemaProps{ 13645 Description: "readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).", 13646 Type: []string{"boolean"}, 13647 Format: "", 13648 }, 13649 }, 13650 "fsType": { 13651 SchemaProps: spec.SchemaProps{ 13652 Description: "fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".", 13653 Type: []string{"string"}, 13654 Format: "", 13655 }, 13656 }, 13657 "volumeAttributes": { 13658 SchemaProps: spec.SchemaProps{ 13659 Description: "volumeAttributes of the volume to publish.", 13660 Type: []string{"object"}, 13661 AdditionalProperties: &spec.SchemaOrBool{ 13662 Allows: true, 13663 Schema: &spec.Schema{ 13664 SchemaProps: spec.SchemaProps{ 13665 Default: "", 13666 Type: []string{"string"}, 13667 Format: "", 13668 }, 13669 }, 13670 }, 13671 }, 13672 }, 13673 "controllerPublishSecretRef": { 13674 SchemaProps: spec.SchemaProps{ 13675 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.", 13676 Ref: ref("k8s.io/api/core/v1.SecretReference"), 13677 }, 13678 }, 13679 "nodeStageSecretRef": { 13680 SchemaProps: spec.SchemaProps{ 13681 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.", 13682 Ref: ref("k8s.io/api/core/v1.SecretReference"), 13683 }, 13684 }, 13685 "nodePublishSecretRef": { 13686 SchemaProps: spec.SchemaProps{ 13687 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.", 13688 Ref: ref("k8s.io/api/core/v1.SecretReference"), 13689 }, 13690 }, 13691 "controllerExpandSecretRef": { 13692 SchemaProps: spec.SchemaProps{ 13693 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.", 13694 Ref: ref("k8s.io/api/core/v1.SecretReference"), 13695 }, 13696 }, 13697 "nodeExpandSecretRef": { 13698 SchemaProps: spec.SchemaProps{ 13699 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.", 13700 Ref: ref("k8s.io/api/core/v1.SecretReference"), 13701 }, 13702 }, 13703 }, 13704 Required: []string{"driver", "volumeHandle"}, 13705 }, 13706 }, 13707 Dependencies: []string{ 13708 "k8s.io/api/core/v1.SecretReference"}, 13709 } 13710 } 13711 13712 func schema_k8sio_api_core_v1_CSIVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 13713 return common.OpenAPIDefinition{ 13714 Schema: spec.Schema{ 13715 SchemaProps: spec.SchemaProps{ 13716 Description: "Represents a source location of a volume to mount, managed by an external CSI driver", 13717 Type: []string{"object"}, 13718 Properties: map[string]spec.Schema{ 13719 "driver": { 13720 SchemaProps: spec.SchemaProps{ 13721 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.", 13722 Default: "", 13723 Type: []string{"string"}, 13724 Format: "", 13725 }, 13726 }, 13727 "readOnly": { 13728 SchemaProps: spec.SchemaProps{ 13729 Description: "readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).", 13730 Type: []string{"boolean"}, 13731 Format: "", 13732 }, 13733 }, 13734 "fsType": { 13735 SchemaProps: spec.SchemaProps{ 13736 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.", 13737 Type: []string{"string"}, 13738 Format: "", 13739 }, 13740 }, 13741 "volumeAttributes": { 13742 SchemaProps: spec.SchemaProps{ 13743 Description: "volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.", 13744 Type: []string{"object"}, 13745 AdditionalProperties: &spec.SchemaOrBool{ 13746 Allows: true, 13747 Schema: &spec.Schema{ 13748 SchemaProps: spec.SchemaProps{ 13749 Default: "", 13750 Type: []string{"string"}, 13751 Format: "", 13752 }, 13753 }, 13754 }, 13755 }, 13756 }, 13757 "nodePublishSecretRef": { 13758 SchemaProps: spec.SchemaProps{ 13759 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.", 13760 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 13761 }, 13762 }, 13763 }, 13764 Required: []string{"driver"}, 13765 }, 13766 }, 13767 Dependencies: []string{ 13768 "k8s.io/api/core/v1.LocalObjectReference"}, 13769 } 13770 } 13771 13772 func schema_k8sio_api_core_v1_Capabilities(ref common.ReferenceCallback) common.OpenAPIDefinition { 13773 return common.OpenAPIDefinition{ 13774 Schema: spec.Schema{ 13775 SchemaProps: spec.SchemaProps{ 13776 Description: "Adds and removes POSIX capabilities from running containers.", 13777 Type: []string{"object"}, 13778 Properties: map[string]spec.Schema{ 13779 "add": { 13780 SchemaProps: spec.SchemaProps{ 13781 Description: "Added capabilities", 13782 Type: []string{"array"}, 13783 Items: &spec.SchemaOrArray{ 13784 Schema: &spec.Schema{ 13785 SchemaProps: spec.SchemaProps{ 13786 Default: "", 13787 Type: []string{"string"}, 13788 Format: "", 13789 }, 13790 }, 13791 }, 13792 }, 13793 }, 13794 "drop": { 13795 SchemaProps: spec.SchemaProps{ 13796 Description: "Removed capabilities", 13797 Type: []string{"array"}, 13798 Items: &spec.SchemaOrArray{ 13799 Schema: &spec.Schema{ 13800 SchemaProps: spec.SchemaProps{ 13801 Default: "", 13802 Type: []string{"string"}, 13803 Format: "", 13804 }, 13805 }, 13806 }, 13807 }, 13808 }, 13809 }, 13810 }, 13811 }, 13812 } 13813 } 13814 13815 func schema_k8sio_api_core_v1_CephFSPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 13816 return common.OpenAPIDefinition{ 13817 Schema: spec.Schema{ 13818 SchemaProps: spec.SchemaProps{ 13819 Description: "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", 13820 Type: []string{"object"}, 13821 Properties: map[string]spec.Schema{ 13822 "monitors": { 13823 SchemaProps: spec.SchemaProps{ 13824 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", 13825 Type: []string{"array"}, 13826 Items: &spec.SchemaOrArray{ 13827 Schema: &spec.Schema{ 13828 SchemaProps: spec.SchemaProps{ 13829 Default: "", 13830 Type: []string{"string"}, 13831 Format: "", 13832 }, 13833 }, 13834 }, 13835 }, 13836 }, 13837 "path": { 13838 SchemaProps: spec.SchemaProps{ 13839 Description: "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /", 13840 Type: []string{"string"}, 13841 Format: "", 13842 }, 13843 }, 13844 "user": { 13845 SchemaProps: spec.SchemaProps{ 13846 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", 13847 Type: []string{"string"}, 13848 Format: "", 13849 }, 13850 }, 13851 "secretFile": { 13852 SchemaProps: spec.SchemaProps{ 13853 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", 13854 Type: []string{"string"}, 13855 Format: "", 13856 }, 13857 }, 13858 "secretRef": { 13859 SchemaProps: spec.SchemaProps{ 13860 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", 13861 Ref: ref("k8s.io/api/core/v1.SecretReference"), 13862 }, 13863 }, 13864 "readOnly": { 13865 SchemaProps: spec.SchemaProps{ 13866 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", 13867 Type: []string{"boolean"}, 13868 Format: "", 13869 }, 13870 }, 13871 }, 13872 Required: []string{"monitors"}, 13873 }, 13874 }, 13875 Dependencies: []string{ 13876 "k8s.io/api/core/v1.SecretReference"}, 13877 } 13878 } 13879 13880 func schema_k8sio_api_core_v1_CephFSVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 13881 return common.OpenAPIDefinition{ 13882 Schema: spec.Schema{ 13883 SchemaProps: spec.SchemaProps{ 13884 Description: "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", 13885 Type: []string{"object"}, 13886 Properties: map[string]spec.Schema{ 13887 "monitors": { 13888 SchemaProps: spec.SchemaProps{ 13889 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", 13890 Type: []string{"array"}, 13891 Items: &spec.SchemaOrArray{ 13892 Schema: &spec.Schema{ 13893 SchemaProps: spec.SchemaProps{ 13894 Default: "", 13895 Type: []string{"string"}, 13896 Format: "", 13897 }, 13898 }, 13899 }, 13900 }, 13901 }, 13902 "path": { 13903 SchemaProps: spec.SchemaProps{ 13904 Description: "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /", 13905 Type: []string{"string"}, 13906 Format: "", 13907 }, 13908 }, 13909 "user": { 13910 SchemaProps: spec.SchemaProps{ 13911 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", 13912 Type: []string{"string"}, 13913 Format: "", 13914 }, 13915 }, 13916 "secretFile": { 13917 SchemaProps: spec.SchemaProps{ 13918 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", 13919 Type: []string{"string"}, 13920 Format: "", 13921 }, 13922 }, 13923 "secretRef": { 13924 SchemaProps: spec.SchemaProps{ 13925 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", 13926 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 13927 }, 13928 }, 13929 "readOnly": { 13930 SchemaProps: spec.SchemaProps{ 13931 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", 13932 Type: []string{"boolean"}, 13933 Format: "", 13934 }, 13935 }, 13936 }, 13937 Required: []string{"monitors"}, 13938 }, 13939 }, 13940 Dependencies: []string{ 13941 "k8s.io/api/core/v1.LocalObjectReference"}, 13942 } 13943 } 13944 13945 func schema_k8sio_api_core_v1_CinderPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 13946 return common.OpenAPIDefinition{ 13947 Schema: spec.Schema{ 13948 SchemaProps: spec.SchemaProps{ 13949 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.", 13950 Type: []string{"object"}, 13951 Properties: map[string]spec.Schema{ 13952 "volumeID": { 13953 SchemaProps: spec.SchemaProps{ 13954 Description: "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", 13955 Default: "", 13956 Type: []string{"string"}, 13957 Format: "", 13958 }, 13959 }, 13960 "fsType": { 13961 SchemaProps: spec.SchemaProps{ 13962 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", 13963 Type: []string{"string"}, 13964 Format: "", 13965 }, 13966 }, 13967 "readOnly": { 13968 SchemaProps: spec.SchemaProps{ 13969 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", 13970 Type: []string{"boolean"}, 13971 Format: "", 13972 }, 13973 }, 13974 "secretRef": { 13975 SchemaProps: spec.SchemaProps{ 13976 Description: "secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack.", 13977 Ref: ref("k8s.io/api/core/v1.SecretReference"), 13978 }, 13979 }, 13980 }, 13981 Required: []string{"volumeID"}, 13982 }, 13983 }, 13984 Dependencies: []string{ 13985 "k8s.io/api/core/v1.SecretReference"}, 13986 } 13987 } 13988 13989 func schema_k8sio_api_core_v1_CinderVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 13990 return common.OpenAPIDefinition{ 13991 Schema: spec.Schema{ 13992 SchemaProps: spec.SchemaProps{ 13993 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.", 13994 Type: []string{"object"}, 13995 Properties: map[string]spec.Schema{ 13996 "volumeID": { 13997 SchemaProps: spec.SchemaProps{ 13998 Description: "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", 13999 Default: "", 14000 Type: []string{"string"}, 14001 Format: "", 14002 }, 14003 }, 14004 "fsType": { 14005 SchemaProps: spec.SchemaProps{ 14006 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", 14007 Type: []string{"string"}, 14008 Format: "", 14009 }, 14010 }, 14011 "readOnly": { 14012 SchemaProps: spec.SchemaProps{ 14013 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", 14014 Type: []string{"boolean"}, 14015 Format: "", 14016 }, 14017 }, 14018 "secretRef": { 14019 SchemaProps: spec.SchemaProps{ 14020 Description: "secretRef is optional: points to a secret object containing parameters used to connect to OpenStack.", 14021 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 14022 }, 14023 }, 14024 }, 14025 Required: []string{"volumeID"}, 14026 }, 14027 }, 14028 Dependencies: []string{ 14029 "k8s.io/api/core/v1.LocalObjectReference"}, 14030 } 14031 } 14032 14033 func schema_k8sio_api_core_v1_ClaimSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 14034 return common.OpenAPIDefinition{ 14035 Schema: spec.Schema{ 14036 SchemaProps: spec.SchemaProps{ 14037 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.", 14038 Type: []string{"object"}, 14039 Properties: map[string]spec.Schema{ 14040 "resourceClaimName": { 14041 SchemaProps: spec.SchemaProps{ 14042 Description: "ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod.", 14043 Type: []string{"string"}, 14044 Format: "", 14045 }, 14046 }, 14047 "resourceClaimTemplateName": { 14048 SchemaProps: spec.SchemaProps{ 14049 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.", 14050 Type: []string{"string"}, 14051 Format: "", 14052 }, 14053 }, 14054 }, 14055 }, 14056 }, 14057 } 14058 } 14059 14060 func schema_k8sio_api_core_v1_ClientIPConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 14061 return common.OpenAPIDefinition{ 14062 Schema: spec.Schema{ 14063 SchemaProps: spec.SchemaProps{ 14064 Description: "ClientIPConfig represents the configurations of Client IP based session affinity.", 14065 Type: []string{"object"}, 14066 Properties: map[string]spec.Schema{ 14067 "timeoutSeconds": { 14068 SchemaProps: spec.SchemaProps{ 14069 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).", 14070 Type: []string{"integer"}, 14071 Format: "int32", 14072 }, 14073 }, 14074 }, 14075 }, 14076 }, 14077 } 14078 } 14079 14080 func schema_k8sio_api_core_v1_ComponentCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 14081 return common.OpenAPIDefinition{ 14082 Schema: spec.Schema{ 14083 SchemaProps: spec.SchemaProps{ 14084 Description: "Information about the condition of a component.", 14085 Type: []string{"object"}, 14086 Properties: map[string]spec.Schema{ 14087 "type": { 14088 SchemaProps: spec.SchemaProps{ 14089 Description: "Type of condition for a component. Valid value: \"Healthy\"", 14090 Default: "", 14091 Type: []string{"string"}, 14092 Format: "", 14093 }, 14094 }, 14095 "status": { 14096 SchemaProps: spec.SchemaProps{ 14097 Description: "Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\".", 14098 Default: "", 14099 Type: []string{"string"}, 14100 Format: "", 14101 }, 14102 }, 14103 "message": { 14104 SchemaProps: spec.SchemaProps{ 14105 Description: "Message about the condition for a component. For example, information about a health check.", 14106 Type: []string{"string"}, 14107 Format: "", 14108 }, 14109 }, 14110 "error": { 14111 SchemaProps: spec.SchemaProps{ 14112 Description: "Condition error code for a component. For example, a health check error code.", 14113 Type: []string{"string"}, 14114 Format: "", 14115 }, 14116 }, 14117 }, 14118 Required: []string{"type", "status"}, 14119 }, 14120 }, 14121 } 14122 } 14123 14124 func schema_k8sio_api_core_v1_ComponentStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 14125 return common.OpenAPIDefinition{ 14126 Schema: spec.Schema{ 14127 SchemaProps: spec.SchemaProps{ 14128 Description: "ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+", 14129 Type: []string{"object"}, 14130 Properties: map[string]spec.Schema{ 14131 "kind": { 14132 SchemaProps: spec.SchemaProps{ 14133 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 14134 Type: []string{"string"}, 14135 Format: "", 14136 }, 14137 }, 14138 "apiVersion": { 14139 SchemaProps: spec.SchemaProps{ 14140 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 14141 Type: []string{"string"}, 14142 Format: "", 14143 }, 14144 }, 14145 "metadata": { 14146 SchemaProps: spec.SchemaProps{ 14147 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 14148 Default: map[string]interface{}{}, 14149 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 14150 }, 14151 }, 14152 "conditions": { 14153 VendorExtensible: spec.VendorExtensible{ 14154 Extensions: spec.Extensions{ 14155 "x-kubernetes-patch-merge-key": "type", 14156 "x-kubernetes-patch-strategy": "merge", 14157 }, 14158 }, 14159 SchemaProps: spec.SchemaProps{ 14160 Description: "List of component conditions observed", 14161 Type: []string{"array"}, 14162 Items: &spec.SchemaOrArray{ 14163 Schema: &spec.Schema{ 14164 SchemaProps: spec.SchemaProps{ 14165 Default: map[string]interface{}{}, 14166 Ref: ref("k8s.io/api/core/v1.ComponentCondition"), 14167 }, 14168 }, 14169 }, 14170 }, 14171 }, 14172 }, 14173 }, 14174 }, 14175 Dependencies: []string{ 14176 "k8s.io/api/core/v1.ComponentCondition", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 14177 } 14178 } 14179 14180 func schema_k8sio_api_core_v1_ComponentStatusList(ref common.ReferenceCallback) common.OpenAPIDefinition { 14181 return common.OpenAPIDefinition{ 14182 Schema: spec.Schema{ 14183 SchemaProps: spec.SchemaProps{ 14184 Description: "Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+", 14185 Type: []string{"object"}, 14186 Properties: map[string]spec.Schema{ 14187 "kind": { 14188 SchemaProps: spec.SchemaProps{ 14189 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 14190 Type: []string{"string"}, 14191 Format: "", 14192 }, 14193 }, 14194 "apiVersion": { 14195 SchemaProps: spec.SchemaProps{ 14196 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 14197 Type: []string{"string"}, 14198 Format: "", 14199 }, 14200 }, 14201 "metadata": { 14202 SchemaProps: spec.SchemaProps{ 14203 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 14204 Default: map[string]interface{}{}, 14205 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 14206 }, 14207 }, 14208 "items": { 14209 SchemaProps: spec.SchemaProps{ 14210 Description: "List of ComponentStatus objects.", 14211 Type: []string{"array"}, 14212 Items: &spec.SchemaOrArray{ 14213 Schema: &spec.Schema{ 14214 SchemaProps: spec.SchemaProps{ 14215 Default: map[string]interface{}{}, 14216 Ref: ref("k8s.io/api/core/v1.ComponentStatus"), 14217 }, 14218 }, 14219 }, 14220 }, 14221 }, 14222 }, 14223 Required: []string{"items"}, 14224 }, 14225 }, 14226 Dependencies: []string{ 14227 "k8s.io/api/core/v1.ComponentStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 14228 } 14229 } 14230 14231 func schema_k8sio_api_core_v1_ConfigMap(ref common.ReferenceCallback) common.OpenAPIDefinition { 14232 return common.OpenAPIDefinition{ 14233 Schema: spec.Schema{ 14234 SchemaProps: spec.SchemaProps{ 14235 Description: "ConfigMap holds configuration data for pods to consume.", 14236 Type: []string{"object"}, 14237 Properties: map[string]spec.Schema{ 14238 "kind": { 14239 SchemaProps: spec.SchemaProps{ 14240 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 14241 Type: []string{"string"}, 14242 Format: "", 14243 }, 14244 }, 14245 "apiVersion": { 14246 SchemaProps: spec.SchemaProps{ 14247 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 14248 Type: []string{"string"}, 14249 Format: "", 14250 }, 14251 }, 14252 "metadata": { 14253 SchemaProps: spec.SchemaProps{ 14254 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 14255 Default: map[string]interface{}{}, 14256 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 14257 }, 14258 }, 14259 "immutable": { 14260 SchemaProps: spec.SchemaProps{ 14261 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.", 14262 Type: []string{"boolean"}, 14263 Format: "", 14264 }, 14265 }, 14266 "data": { 14267 SchemaProps: spec.SchemaProps{ 14268 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.", 14269 Type: []string{"object"}, 14270 AdditionalProperties: &spec.SchemaOrBool{ 14271 Allows: true, 14272 Schema: &spec.Schema{ 14273 SchemaProps: spec.SchemaProps{ 14274 Default: "", 14275 Type: []string{"string"}, 14276 Format: "", 14277 }, 14278 }, 14279 }, 14280 }, 14281 }, 14282 "binaryData": { 14283 SchemaProps: spec.SchemaProps{ 14284 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.", 14285 Type: []string{"object"}, 14286 AdditionalProperties: &spec.SchemaOrBool{ 14287 Allows: true, 14288 Schema: &spec.Schema{ 14289 SchemaProps: spec.SchemaProps{ 14290 Type: []string{"string"}, 14291 Format: "byte", 14292 }, 14293 }, 14294 }, 14295 }, 14296 }, 14297 }, 14298 }, 14299 }, 14300 Dependencies: []string{ 14301 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 14302 } 14303 } 14304 14305 func schema_k8sio_api_core_v1_ConfigMapEnvSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 14306 return common.OpenAPIDefinition{ 14307 Schema: spec.Schema{ 14308 SchemaProps: spec.SchemaProps{ 14309 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.", 14310 Type: []string{"object"}, 14311 Properties: map[string]spec.Schema{ 14312 "name": { 14313 SchemaProps: spec.SchemaProps{ 14314 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", 14315 Type: []string{"string"}, 14316 Format: "", 14317 }, 14318 }, 14319 "optional": { 14320 SchemaProps: spec.SchemaProps{ 14321 Description: "Specify whether the ConfigMap must be defined", 14322 Type: []string{"boolean"}, 14323 Format: "", 14324 }, 14325 }, 14326 }, 14327 }, 14328 }, 14329 } 14330 } 14331 14332 func schema_k8sio_api_core_v1_ConfigMapKeySelector(ref common.ReferenceCallback) common.OpenAPIDefinition { 14333 return common.OpenAPIDefinition{ 14334 Schema: spec.Schema{ 14335 SchemaProps: spec.SchemaProps{ 14336 Description: "Selects a key from a ConfigMap.", 14337 Type: []string{"object"}, 14338 Properties: map[string]spec.Schema{ 14339 "name": { 14340 SchemaProps: spec.SchemaProps{ 14341 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", 14342 Type: []string{"string"}, 14343 Format: "", 14344 }, 14345 }, 14346 "key": { 14347 SchemaProps: spec.SchemaProps{ 14348 Description: "The key to select.", 14349 Default: "", 14350 Type: []string{"string"}, 14351 Format: "", 14352 }, 14353 }, 14354 "optional": { 14355 SchemaProps: spec.SchemaProps{ 14356 Description: "Specify whether the ConfigMap or its key must be defined", 14357 Type: []string{"boolean"}, 14358 Format: "", 14359 }, 14360 }, 14361 }, 14362 Required: []string{"key"}, 14363 }, 14364 VendorExtensible: spec.VendorExtensible{ 14365 Extensions: spec.Extensions{ 14366 "x-kubernetes-map-type": "atomic", 14367 }, 14368 }, 14369 }, 14370 } 14371 } 14372 14373 func schema_k8sio_api_core_v1_ConfigMapList(ref common.ReferenceCallback) common.OpenAPIDefinition { 14374 return common.OpenAPIDefinition{ 14375 Schema: spec.Schema{ 14376 SchemaProps: spec.SchemaProps{ 14377 Description: "ConfigMapList is a resource containing a list of ConfigMap objects.", 14378 Type: []string{"object"}, 14379 Properties: map[string]spec.Schema{ 14380 "kind": { 14381 SchemaProps: spec.SchemaProps{ 14382 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 14383 Type: []string{"string"}, 14384 Format: "", 14385 }, 14386 }, 14387 "apiVersion": { 14388 SchemaProps: spec.SchemaProps{ 14389 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 14390 Type: []string{"string"}, 14391 Format: "", 14392 }, 14393 }, 14394 "metadata": { 14395 SchemaProps: spec.SchemaProps{ 14396 Description: "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 14397 Default: map[string]interface{}{}, 14398 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 14399 }, 14400 }, 14401 "items": { 14402 SchemaProps: spec.SchemaProps{ 14403 Description: "Items is the list of ConfigMaps.", 14404 Type: []string{"array"}, 14405 Items: &spec.SchemaOrArray{ 14406 Schema: &spec.Schema{ 14407 SchemaProps: spec.SchemaProps{ 14408 Default: map[string]interface{}{}, 14409 Ref: ref("k8s.io/api/core/v1.ConfigMap"), 14410 }, 14411 }, 14412 }, 14413 }, 14414 }, 14415 }, 14416 Required: []string{"items"}, 14417 }, 14418 }, 14419 Dependencies: []string{ 14420 "k8s.io/api/core/v1.ConfigMap", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 14421 } 14422 } 14423 14424 func schema_k8sio_api_core_v1_ConfigMapNodeConfigSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 14425 return common.OpenAPIDefinition{ 14426 Schema: spec.Schema{ 14427 SchemaProps: spec.SchemaProps{ 14428 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", 14429 Type: []string{"object"}, 14430 Properties: map[string]spec.Schema{ 14431 "namespace": { 14432 SchemaProps: spec.SchemaProps{ 14433 Description: "Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases.", 14434 Default: "", 14435 Type: []string{"string"}, 14436 Format: "", 14437 }, 14438 }, 14439 "name": { 14440 SchemaProps: spec.SchemaProps{ 14441 Description: "Name is the metadata.name of the referenced ConfigMap. This field is required in all cases.", 14442 Default: "", 14443 Type: []string{"string"}, 14444 Format: "", 14445 }, 14446 }, 14447 "uid": { 14448 SchemaProps: spec.SchemaProps{ 14449 Description: "UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.", 14450 Type: []string{"string"}, 14451 Format: "", 14452 }, 14453 }, 14454 "resourceVersion": { 14455 SchemaProps: spec.SchemaProps{ 14456 Description: "ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.", 14457 Type: []string{"string"}, 14458 Format: "", 14459 }, 14460 }, 14461 "kubeletConfigKey": { 14462 SchemaProps: spec.SchemaProps{ 14463 Description: "KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases.", 14464 Default: "", 14465 Type: []string{"string"}, 14466 Format: "", 14467 }, 14468 }, 14469 }, 14470 Required: []string{"namespace", "name", "kubeletConfigKey"}, 14471 }, 14472 }, 14473 } 14474 } 14475 14476 func schema_k8sio_api_core_v1_ConfigMapProjection(ref common.ReferenceCallback) common.OpenAPIDefinition { 14477 return common.OpenAPIDefinition{ 14478 Schema: spec.Schema{ 14479 SchemaProps: spec.SchemaProps{ 14480 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.", 14481 Type: []string{"object"}, 14482 Properties: map[string]spec.Schema{ 14483 "name": { 14484 SchemaProps: spec.SchemaProps{ 14485 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", 14486 Type: []string{"string"}, 14487 Format: "", 14488 }, 14489 }, 14490 "items": { 14491 SchemaProps: spec.SchemaProps{ 14492 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 '..'.", 14493 Type: []string{"array"}, 14494 Items: &spec.SchemaOrArray{ 14495 Schema: &spec.Schema{ 14496 SchemaProps: spec.SchemaProps{ 14497 Default: map[string]interface{}{}, 14498 Ref: ref("k8s.io/api/core/v1.KeyToPath"), 14499 }, 14500 }, 14501 }, 14502 }, 14503 }, 14504 "optional": { 14505 SchemaProps: spec.SchemaProps{ 14506 Description: "optional specify whether the ConfigMap or its keys must be defined", 14507 Type: []string{"boolean"}, 14508 Format: "", 14509 }, 14510 }, 14511 }, 14512 }, 14513 }, 14514 Dependencies: []string{ 14515 "k8s.io/api/core/v1.KeyToPath"}, 14516 } 14517 } 14518 14519 func schema_k8sio_api_core_v1_ConfigMapVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 14520 return common.OpenAPIDefinition{ 14521 Schema: spec.Schema{ 14522 SchemaProps: spec.SchemaProps{ 14523 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.", 14524 Type: []string{"object"}, 14525 Properties: map[string]spec.Schema{ 14526 "name": { 14527 SchemaProps: spec.SchemaProps{ 14528 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", 14529 Type: []string{"string"}, 14530 Format: "", 14531 }, 14532 }, 14533 "items": { 14534 SchemaProps: spec.SchemaProps{ 14535 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 '..'.", 14536 Type: []string{"array"}, 14537 Items: &spec.SchemaOrArray{ 14538 Schema: &spec.Schema{ 14539 SchemaProps: spec.SchemaProps{ 14540 Default: map[string]interface{}{}, 14541 Ref: ref("k8s.io/api/core/v1.KeyToPath"), 14542 }, 14543 }, 14544 }, 14545 }, 14546 }, 14547 "defaultMode": { 14548 SchemaProps: spec.SchemaProps{ 14549 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.", 14550 Type: []string{"integer"}, 14551 Format: "int32", 14552 }, 14553 }, 14554 "optional": { 14555 SchemaProps: spec.SchemaProps{ 14556 Description: "optional specify whether the ConfigMap or its keys must be defined", 14557 Type: []string{"boolean"}, 14558 Format: "", 14559 }, 14560 }, 14561 }, 14562 }, 14563 }, 14564 Dependencies: []string{ 14565 "k8s.io/api/core/v1.KeyToPath"}, 14566 } 14567 } 14568 14569 func schema_k8sio_api_core_v1_Container(ref common.ReferenceCallback) common.OpenAPIDefinition { 14570 return common.OpenAPIDefinition{ 14571 Schema: spec.Schema{ 14572 SchemaProps: spec.SchemaProps{ 14573 Description: "A single application container that you want to run within a pod.", 14574 Type: []string{"object"}, 14575 Properties: map[string]spec.Schema{ 14576 "name": { 14577 SchemaProps: spec.SchemaProps{ 14578 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.", 14579 Default: "", 14580 Type: []string{"string"}, 14581 Format: "", 14582 }, 14583 }, 14584 "image": { 14585 SchemaProps: spec.SchemaProps{ 14586 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.", 14587 Type: []string{"string"}, 14588 Format: "", 14589 }, 14590 }, 14591 "command": { 14592 SchemaProps: spec.SchemaProps{ 14593 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", 14594 Type: []string{"array"}, 14595 Items: &spec.SchemaOrArray{ 14596 Schema: &spec.Schema{ 14597 SchemaProps: spec.SchemaProps{ 14598 Default: "", 14599 Type: []string{"string"}, 14600 Format: "", 14601 }, 14602 }, 14603 }, 14604 }, 14605 }, 14606 "args": { 14607 SchemaProps: spec.SchemaProps{ 14608 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", 14609 Type: []string{"array"}, 14610 Items: &spec.SchemaOrArray{ 14611 Schema: &spec.Schema{ 14612 SchemaProps: spec.SchemaProps{ 14613 Default: "", 14614 Type: []string{"string"}, 14615 Format: "", 14616 }, 14617 }, 14618 }, 14619 }, 14620 }, 14621 "workingDir": { 14622 SchemaProps: spec.SchemaProps{ 14623 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.", 14624 Type: []string{"string"}, 14625 Format: "", 14626 }, 14627 }, 14628 "ports": { 14629 VendorExtensible: spec.VendorExtensible{ 14630 Extensions: spec.Extensions{ 14631 "x-kubernetes-list-map-keys": []interface{}{ 14632 "containerPort", 14633 "protocol", 14634 }, 14635 "x-kubernetes-list-type": "map", 14636 "x-kubernetes-patch-merge-key": "containerPort", 14637 "x-kubernetes-patch-strategy": "merge", 14638 }, 14639 }, 14640 SchemaProps: spec.SchemaProps{ 14641 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.", 14642 Type: []string{"array"}, 14643 Items: &spec.SchemaOrArray{ 14644 Schema: &spec.Schema{ 14645 SchemaProps: spec.SchemaProps{ 14646 Default: map[string]interface{}{}, 14647 Ref: ref("k8s.io/api/core/v1.ContainerPort"), 14648 }, 14649 }, 14650 }, 14651 }, 14652 }, 14653 "envFrom": { 14654 SchemaProps: spec.SchemaProps{ 14655 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.", 14656 Type: []string{"array"}, 14657 Items: &spec.SchemaOrArray{ 14658 Schema: &spec.Schema{ 14659 SchemaProps: spec.SchemaProps{ 14660 Default: map[string]interface{}{}, 14661 Ref: ref("k8s.io/api/core/v1.EnvFromSource"), 14662 }, 14663 }, 14664 }, 14665 }, 14666 }, 14667 "env": { 14668 VendorExtensible: spec.VendorExtensible{ 14669 Extensions: spec.Extensions{ 14670 "x-kubernetes-patch-merge-key": "name", 14671 "x-kubernetes-patch-strategy": "merge", 14672 }, 14673 }, 14674 SchemaProps: spec.SchemaProps{ 14675 Description: "List of environment variables to set in the container. Cannot be updated.", 14676 Type: []string{"array"}, 14677 Items: &spec.SchemaOrArray{ 14678 Schema: &spec.Schema{ 14679 SchemaProps: spec.SchemaProps{ 14680 Default: map[string]interface{}{}, 14681 Ref: ref("k8s.io/api/core/v1.EnvVar"), 14682 }, 14683 }, 14684 }, 14685 }, 14686 }, 14687 "resources": { 14688 SchemaProps: spec.SchemaProps{ 14689 Description: "Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", 14690 Default: map[string]interface{}{}, 14691 Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), 14692 }, 14693 }, 14694 "resizePolicy": { 14695 VendorExtensible: spec.VendorExtensible{ 14696 Extensions: spec.Extensions{ 14697 "x-kubernetes-list-type": "atomic", 14698 }, 14699 }, 14700 SchemaProps: spec.SchemaProps{ 14701 Description: "Resources resize policy for the container.", 14702 Type: []string{"array"}, 14703 Items: &spec.SchemaOrArray{ 14704 Schema: &spec.Schema{ 14705 SchemaProps: spec.SchemaProps{ 14706 Default: map[string]interface{}{}, 14707 Ref: ref("k8s.io/api/core/v1.ContainerResizePolicy"), 14708 }, 14709 }, 14710 }, 14711 }, 14712 }, 14713 "volumeMounts": { 14714 VendorExtensible: spec.VendorExtensible{ 14715 Extensions: spec.Extensions{ 14716 "x-kubernetes-patch-merge-key": "mountPath", 14717 "x-kubernetes-patch-strategy": "merge", 14718 }, 14719 }, 14720 SchemaProps: spec.SchemaProps{ 14721 Description: "Pod volumes to mount into the container's filesystem. Cannot be updated.", 14722 Type: []string{"array"}, 14723 Items: &spec.SchemaOrArray{ 14724 Schema: &spec.Schema{ 14725 SchemaProps: spec.SchemaProps{ 14726 Default: map[string]interface{}{}, 14727 Ref: ref("k8s.io/api/core/v1.VolumeMount"), 14728 }, 14729 }, 14730 }, 14731 }, 14732 }, 14733 "volumeDevices": { 14734 VendorExtensible: spec.VendorExtensible{ 14735 Extensions: spec.Extensions{ 14736 "x-kubernetes-patch-merge-key": "devicePath", 14737 "x-kubernetes-patch-strategy": "merge", 14738 }, 14739 }, 14740 SchemaProps: spec.SchemaProps{ 14741 Description: "volumeDevices is the list of block devices to be used by the container.", 14742 Type: []string{"array"}, 14743 Items: &spec.SchemaOrArray{ 14744 Schema: &spec.Schema{ 14745 SchemaProps: spec.SchemaProps{ 14746 Default: map[string]interface{}{}, 14747 Ref: ref("k8s.io/api/core/v1.VolumeDevice"), 14748 }, 14749 }, 14750 }, 14751 }, 14752 }, 14753 "livenessProbe": { 14754 SchemaProps: spec.SchemaProps{ 14755 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", 14756 Ref: ref("k8s.io/api/core/v1.Probe"), 14757 }, 14758 }, 14759 "readinessProbe": { 14760 SchemaProps: spec.SchemaProps{ 14761 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", 14762 Ref: ref("k8s.io/api/core/v1.Probe"), 14763 }, 14764 }, 14765 "startupProbe": { 14766 SchemaProps: spec.SchemaProps{ 14767 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", 14768 Ref: ref("k8s.io/api/core/v1.Probe"), 14769 }, 14770 }, 14771 "lifecycle": { 14772 SchemaProps: spec.SchemaProps{ 14773 Description: "Actions that the management system should take in response to container lifecycle events. Cannot be updated.", 14774 Ref: ref("k8s.io/api/core/v1.Lifecycle"), 14775 }, 14776 }, 14777 "terminationMessagePath": { 14778 SchemaProps: spec.SchemaProps{ 14779 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.", 14780 Type: []string{"string"}, 14781 Format: "", 14782 }, 14783 }, 14784 "terminationMessagePolicy": { 14785 SchemaProps: spec.SchemaProps{ 14786 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.", 14787 Type: []string{"string"}, 14788 Format: "", 14789 Enum: []interface{}{"FallbackToLogsOnError", "File"}, 14790 }, 14791 }, 14792 "imagePullPolicy": { 14793 SchemaProps: spec.SchemaProps{ 14794 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", 14795 Type: []string{"string"}, 14796 Format: "", 14797 Enum: []interface{}{"Always", "IfNotPresent", "Never"}, 14798 }, 14799 }, 14800 "securityContext": { 14801 SchemaProps: spec.SchemaProps{ 14802 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/", 14803 Ref: ref("k8s.io/api/core/v1.SecurityContext"), 14804 }, 14805 }, 14806 "stdin": { 14807 SchemaProps: spec.SchemaProps{ 14808 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.", 14809 Type: []string{"boolean"}, 14810 Format: "", 14811 }, 14812 }, 14813 "stdinOnce": { 14814 SchemaProps: spec.SchemaProps{ 14815 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", 14816 Type: []string{"boolean"}, 14817 Format: "", 14818 }, 14819 }, 14820 "tty": { 14821 SchemaProps: spec.SchemaProps{ 14822 Description: "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", 14823 Type: []string{"boolean"}, 14824 Format: "", 14825 }, 14826 }, 14827 }, 14828 Required: []string{"name"}, 14829 }, 14830 }, 14831 Dependencies: []string{ 14832 "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"}, 14833 } 14834 } 14835 14836 func schema_k8sio_api_core_v1_ContainerImage(ref common.ReferenceCallback) common.OpenAPIDefinition { 14837 return common.OpenAPIDefinition{ 14838 Schema: spec.Schema{ 14839 SchemaProps: spec.SchemaProps{ 14840 Description: "Describe a container image", 14841 Type: []string{"object"}, 14842 Properties: map[string]spec.Schema{ 14843 "names": { 14844 SchemaProps: spec.SchemaProps{ 14845 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\"]", 14846 Type: []string{"array"}, 14847 Items: &spec.SchemaOrArray{ 14848 Schema: &spec.Schema{ 14849 SchemaProps: spec.SchemaProps{ 14850 Default: "", 14851 Type: []string{"string"}, 14852 Format: "", 14853 }, 14854 }, 14855 }, 14856 }, 14857 }, 14858 "sizeBytes": { 14859 SchemaProps: spec.SchemaProps{ 14860 Description: "The size of the image in bytes.", 14861 Type: []string{"integer"}, 14862 Format: "int64", 14863 }, 14864 }, 14865 }, 14866 }, 14867 }, 14868 } 14869 } 14870 14871 func schema_k8sio_api_core_v1_ContainerPort(ref common.ReferenceCallback) common.OpenAPIDefinition { 14872 return common.OpenAPIDefinition{ 14873 Schema: spec.Schema{ 14874 SchemaProps: spec.SchemaProps{ 14875 Description: "ContainerPort represents a network port in a single container.", 14876 Type: []string{"object"}, 14877 Properties: map[string]spec.Schema{ 14878 "name": { 14879 SchemaProps: spec.SchemaProps{ 14880 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.", 14881 Type: []string{"string"}, 14882 Format: "", 14883 }, 14884 }, 14885 "hostPort": { 14886 SchemaProps: spec.SchemaProps{ 14887 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.", 14888 Type: []string{"integer"}, 14889 Format: "int32", 14890 }, 14891 }, 14892 "containerPort": { 14893 SchemaProps: spec.SchemaProps{ 14894 Description: "Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.", 14895 Default: 0, 14896 Type: []string{"integer"}, 14897 Format: "int32", 14898 }, 14899 }, 14900 "protocol": { 14901 SchemaProps: spec.SchemaProps{ 14902 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.", 14903 Default: "TCP", 14904 Type: []string{"string"}, 14905 Format: "", 14906 Enum: []interface{}{"SCTP", "TCP", "UDP"}, 14907 }, 14908 }, 14909 "hostIP": { 14910 SchemaProps: spec.SchemaProps{ 14911 Description: "What host IP to bind the external port to.", 14912 Type: []string{"string"}, 14913 Format: "", 14914 }, 14915 }, 14916 }, 14917 Required: []string{"containerPort"}, 14918 }, 14919 }, 14920 } 14921 } 14922 14923 func schema_k8sio_api_core_v1_ContainerResizePolicy(ref common.ReferenceCallback) common.OpenAPIDefinition { 14924 return common.OpenAPIDefinition{ 14925 Schema: spec.Schema{ 14926 SchemaProps: spec.SchemaProps{ 14927 Description: "ContainerResizePolicy represents resource resize policy for the container.", 14928 Type: []string{"object"}, 14929 Properties: map[string]spec.Schema{ 14930 "resourceName": { 14931 SchemaProps: spec.SchemaProps{ 14932 Description: "Name of the resource to which this resource resize policy applies. Supported values: cpu, memory.", 14933 Default: "", 14934 Type: []string{"string"}, 14935 Format: "", 14936 }, 14937 }, 14938 "restartPolicy": { 14939 SchemaProps: spec.SchemaProps{ 14940 Description: "Restart policy to apply when specified resource is resized. If not specified, it defaults to NotRequired.", 14941 Default: "", 14942 Type: []string{"string"}, 14943 Format: "", 14944 }, 14945 }, 14946 }, 14947 Required: []string{"resourceName", "restartPolicy"}, 14948 }, 14949 }, 14950 } 14951 } 14952 14953 func schema_k8sio_api_core_v1_ContainerState(ref common.ReferenceCallback) common.OpenAPIDefinition { 14954 return common.OpenAPIDefinition{ 14955 Schema: spec.Schema{ 14956 SchemaProps: spec.SchemaProps{ 14957 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.", 14958 Type: []string{"object"}, 14959 Properties: map[string]spec.Schema{ 14960 "waiting": { 14961 SchemaProps: spec.SchemaProps{ 14962 Description: "Details about a waiting container", 14963 Ref: ref("k8s.io/api/core/v1.ContainerStateWaiting"), 14964 }, 14965 }, 14966 "running": { 14967 SchemaProps: spec.SchemaProps{ 14968 Description: "Details about a running container", 14969 Ref: ref("k8s.io/api/core/v1.ContainerStateRunning"), 14970 }, 14971 }, 14972 "terminated": { 14973 SchemaProps: spec.SchemaProps{ 14974 Description: "Details about a terminated container", 14975 Ref: ref("k8s.io/api/core/v1.ContainerStateTerminated"), 14976 }, 14977 }, 14978 }, 14979 }, 14980 }, 14981 Dependencies: []string{ 14982 "k8s.io/api/core/v1.ContainerStateRunning", "k8s.io/api/core/v1.ContainerStateTerminated", "k8s.io/api/core/v1.ContainerStateWaiting"}, 14983 } 14984 } 14985 14986 func schema_k8sio_api_core_v1_ContainerStateRunning(ref common.ReferenceCallback) common.OpenAPIDefinition { 14987 return common.OpenAPIDefinition{ 14988 Schema: spec.Schema{ 14989 SchemaProps: spec.SchemaProps{ 14990 Description: "ContainerStateRunning is a running state of a container.", 14991 Type: []string{"object"}, 14992 Properties: map[string]spec.Schema{ 14993 "startedAt": { 14994 SchemaProps: spec.SchemaProps{ 14995 Description: "Time at which the container was last (re-)started", 14996 Default: map[string]interface{}{}, 14997 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 14998 }, 14999 }, 15000 }, 15001 }, 15002 }, 15003 Dependencies: []string{ 15004 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 15005 } 15006 } 15007 15008 func schema_k8sio_api_core_v1_ContainerStateTerminated(ref common.ReferenceCallback) common.OpenAPIDefinition { 15009 return common.OpenAPIDefinition{ 15010 Schema: spec.Schema{ 15011 SchemaProps: spec.SchemaProps{ 15012 Description: "ContainerStateTerminated is a terminated state of a container.", 15013 Type: []string{"object"}, 15014 Properties: map[string]spec.Schema{ 15015 "exitCode": { 15016 SchemaProps: spec.SchemaProps{ 15017 Description: "Exit status from the last termination of the container", 15018 Default: 0, 15019 Type: []string{"integer"}, 15020 Format: "int32", 15021 }, 15022 }, 15023 "signal": { 15024 SchemaProps: spec.SchemaProps{ 15025 Description: "Signal from the last termination of the container", 15026 Type: []string{"integer"}, 15027 Format: "int32", 15028 }, 15029 }, 15030 "reason": { 15031 SchemaProps: spec.SchemaProps{ 15032 Description: "(brief) reason from the last termination of the container", 15033 Type: []string{"string"}, 15034 Format: "", 15035 }, 15036 }, 15037 "message": { 15038 SchemaProps: spec.SchemaProps{ 15039 Description: "Message regarding the last termination of the container", 15040 Type: []string{"string"}, 15041 Format: "", 15042 }, 15043 }, 15044 "startedAt": { 15045 SchemaProps: spec.SchemaProps{ 15046 Description: "Time at which previous execution of the container started", 15047 Default: map[string]interface{}{}, 15048 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 15049 }, 15050 }, 15051 "finishedAt": { 15052 SchemaProps: spec.SchemaProps{ 15053 Description: "Time at which the container last terminated", 15054 Default: map[string]interface{}{}, 15055 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 15056 }, 15057 }, 15058 "containerID": { 15059 SchemaProps: spec.SchemaProps{ 15060 Description: "Container's ID in the format '<type>://<container_id>'", 15061 Type: []string{"string"}, 15062 Format: "", 15063 }, 15064 }, 15065 }, 15066 Required: []string{"exitCode"}, 15067 }, 15068 }, 15069 Dependencies: []string{ 15070 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 15071 } 15072 } 15073 15074 func schema_k8sio_api_core_v1_ContainerStateWaiting(ref common.ReferenceCallback) common.OpenAPIDefinition { 15075 return common.OpenAPIDefinition{ 15076 Schema: spec.Schema{ 15077 SchemaProps: spec.SchemaProps{ 15078 Description: "ContainerStateWaiting is a waiting state of a container.", 15079 Type: []string{"object"}, 15080 Properties: map[string]spec.Schema{ 15081 "reason": { 15082 SchemaProps: spec.SchemaProps{ 15083 Description: "(brief) reason the container is not yet running.", 15084 Type: []string{"string"}, 15085 Format: "", 15086 }, 15087 }, 15088 "message": { 15089 SchemaProps: spec.SchemaProps{ 15090 Description: "Message regarding why the container is not yet running.", 15091 Type: []string{"string"}, 15092 Format: "", 15093 }, 15094 }, 15095 }, 15096 }, 15097 }, 15098 } 15099 } 15100 15101 func schema_k8sio_api_core_v1_ContainerStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 15102 return common.OpenAPIDefinition{ 15103 Schema: spec.Schema{ 15104 SchemaProps: spec.SchemaProps{ 15105 Description: "ContainerStatus contains details for the current status of this container.", 15106 Type: []string{"object"}, 15107 Properties: map[string]spec.Schema{ 15108 "name": { 15109 SchemaProps: spec.SchemaProps{ 15110 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.", 15111 Default: "", 15112 Type: []string{"string"}, 15113 Format: "", 15114 }, 15115 }, 15116 "state": { 15117 SchemaProps: spec.SchemaProps{ 15118 Description: "State holds details about the container's current condition.", 15119 Default: map[string]interface{}{}, 15120 Ref: ref("k8s.io/api/core/v1.ContainerState"), 15121 }, 15122 }, 15123 "lastState": { 15124 SchemaProps: spec.SchemaProps{ 15125 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.", 15126 Default: map[string]interface{}{}, 15127 Ref: ref("k8s.io/api/core/v1.ContainerState"), 15128 }, 15129 }, 15130 "ready": { 15131 SchemaProps: spec.SchemaProps{ 15132 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.", 15133 Default: false, 15134 Type: []string{"boolean"}, 15135 Format: "", 15136 }, 15137 }, 15138 "restartCount": { 15139 SchemaProps: spec.SchemaProps{ 15140 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.", 15141 Default: 0, 15142 Type: []string{"integer"}, 15143 Format: "int32", 15144 }, 15145 }, 15146 "image": { 15147 SchemaProps: spec.SchemaProps{ 15148 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.", 15149 Default: "", 15150 Type: []string{"string"}, 15151 Format: "", 15152 }, 15153 }, 15154 "imageID": { 15155 SchemaProps: spec.SchemaProps{ 15156 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.", 15157 Default: "", 15158 Type: []string{"string"}, 15159 Format: "", 15160 }, 15161 }, 15162 "containerID": { 15163 SchemaProps: spec.SchemaProps{ 15164 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\").", 15165 Type: []string{"string"}, 15166 Format: "", 15167 }, 15168 }, 15169 "started": { 15170 SchemaProps: spec.SchemaProps{ 15171 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.", 15172 Type: []string{"boolean"}, 15173 Format: "", 15174 }, 15175 }, 15176 "allocatedResources": { 15177 SchemaProps: spec.SchemaProps{ 15178 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.", 15179 Type: []string{"object"}, 15180 AdditionalProperties: &spec.SchemaOrBool{ 15181 Allows: true, 15182 Schema: &spec.Schema{ 15183 SchemaProps: spec.SchemaProps{ 15184 Default: map[string]interface{}{}, 15185 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 15186 }, 15187 }, 15188 }, 15189 }, 15190 }, 15191 "resources": { 15192 SchemaProps: spec.SchemaProps{ 15193 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.", 15194 Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), 15195 }, 15196 }, 15197 }, 15198 Required: []string{"name", "ready", "restartCount", "image", "imageID"}, 15199 }, 15200 }, 15201 Dependencies: []string{ 15202 "k8s.io/api/core/v1.ContainerState", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, 15203 } 15204 } 15205 15206 func schema_k8sio_api_core_v1_DaemonEndpoint(ref common.ReferenceCallback) common.OpenAPIDefinition { 15207 return common.OpenAPIDefinition{ 15208 Schema: spec.Schema{ 15209 SchemaProps: spec.SchemaProps{ 15210 Description: "DaemonEndpoint contains information about a single Daemon endpoint.", 15211 Type: []string{"object"}, 15212 Properties: map[string]spec.Schema{ 15213 "Port": { 15214 SchemaProps: spec.SchemaProps{ 15215 Description: "Port number of the given endpoint.", 15216 Default: 0, 15217 Type: []string{"integer"}, 15218 Format: "int32", 15219 }, 15220 }, 15221 }, 15222 Required: []string{"Port"}, 15223 }, 15224 }, 15225 } 15226 } 15227 15228 func schema_k8sio_api_core_v1_DownwardAPIProjection(ref common.ReferenceCallback) common.OpenAPIDefinition { 15229 return common.OpenAPIDefinition{ 15230 Schema: spec.Schema{ 15231 SchemaProps: spec.SchemaProps{ 15232 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.", 15233 Type: []string{"object"}, 15234 Properties: map[string]spec.Schema{ 15235 "items": { 15236 SchemaProps: spec.SchemaProps{ 15237 Description: "Items is a list of DownwardAPIVolume file", 15238 Type: []string{"array"}, 15239 Items: &spec.SchemaOrArray{ 15240 Schema: &spec.Schema{ 15241 SchemaProps: spec.SchemaProps{ 15242 Default: map[string]interface{}{}, 15243 Ref: ref("k8s.io/api/core/v1.DownwardAPIVolumeFile"), 15244 }, 15245 }, 15246 }, 15247 }, 15248 }, 15249 }, 15250 }, 15251 }, 15252 Dependencies: []string{ 15253 "k8s.io/api/core/v1.DownwardAPIVolumeFile"}, 15254 } 15255 } 15256 15257 func schema_k8sio_api_core_v1_DownwardAPIVolumeFile(ref common.ReferenceCallback) common.OpenAPIDefinition { 15258 return common.OpenAPIDefinition{ 15259 Schema: spec.Schema{ 15260 SchemaProps: spec.SchemaProps{ 15261 Description: "DownwardAPIVolumeFile represents information to create the file containing the pod field", 15262 Type: []string{"object"}, 15263 Properties: map[string]spec.Schema{ 15264 "path": { 15265 SchemaProps: spec.SchemaProps{ 15266 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 '..'", 15267 Default: "", 15268 Type: []string{"string"}, 15269 Format: "", 15270 }, 15271 }, 15272 "fieldRef": { 15273 SchemaProps: spec.SchemaProps{ 15274 Description: "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.", 15275 Ref: ref("k8s.io/api/core/v1.ObjectFieldSelector"), 15276 }, 15277 }, 15278 "resourceFieldRef": { 15279 SchemaProps: spec.SchemaProps{ 15280 Description: "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.", 15281 Ref: ref("k8s.io/api/core/v1.ResourceFieldSelector"), 15282 }, 15283 }, 15284 "mode": { 15285 SchemaProps: spec.SchemaProps{ 15286 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.", 15287 Type: []string{"integer"}, 15288 Format: "int32", 15289 }, 15290 }, 15291 }, 15292 Required: []string{"path"}, 15293 }, 15294 }, 15295 Dependencies: []string{ 15296 "k8s.io/api/core/v1.ObjectFieldSelector", "k8s.io/api/core/v1.ResourceFieldSelector"}, 15297 } 15298 } 15299 15300 func schema_k8sio_api_core_v1_DownwardAPIVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 15301 return common.OpenAPIDefinition{ 15302 Schema: spec.Schema{ 15303 SchemaProps: spec.SchemaProps{ 15304 Description: "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.", 15305 Type: []string{"object"}, 15306 Properties: map[string]spec.Schema{ 15307 "items": { 15308 SchemaProps: spec.SchemaProps{ 15309 Description: "Items is a list of downward API volume file", 15310 Type: []string{"array"}, 15311 Items: &spec.SchemaOrArray{ 15312 Schema: &spec.Schema{ 15313 SchemaProps: spec.SchemaProps{ 15314 Default: map[string]interface{}{}, 15315 Ref: ref("k8s.io/api/core/v1.DownwardAPIVolumeFile"), 15316 }, 15317 }, 15318 }, 15319 }, 15320 }, 15321 "defaultMode": { 15322 SchemaProps: spec.SchemaProps{ 15323 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.", 15324 Type: []string{"integer"}, 15325 Format: "int32", 15326 }, 15327 }, 15328 }, 15329 }, 15330 }, 15331 Dependencies: []string{ 15332 "k8s.io/api/core/v1.DownwardAPIVolumeFile"}, 15333 } 15334 } 15335 15336 func schema_k8sio_api_core_v1_EmptyDirVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 15337 return common.OpenAPIDefinition{ 15338 Schema: spec.Schema{ 15339 SchemaProps: spec.SchemaProps{ 15340 Description: "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.", 15341 Type: []string{"object"}, 15342 Properties: map[string]spec.Schema{ 15343 "medium": { 15344 SchemaProps: spec.SchemaProps{ 15345 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", 15346 Type: []string{"string"}, 15347 Format: "", 15348 }, 15349 }, 15350 "sizeLimit": { 15351 SchemaProps: spec.SchemaProps{ 15352 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", 15353 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 15354 }, 15355 }, 15356 }, 15357 }, 15358 }, 15359 Dependencies: []string{ 15360 "k8s.io/apimachinery/pkg/api/resource.Quantity"}, 15361 } 15362 } 15363 15364 func schema_k8sio_api_core_v1_EndpointAddress(ref common.ReferenceCallback) common.OpenAPIDefinition { 15365 return common.OpenAPIDefinition{ 15366 Schema: spec.Schema{ 15367 SchemaProps: spec.SchemaProps{ 15368 Description: "EndpointAddress is a tuple that describes single IP address.", 15369 Type: []string{"object"}, 15370 Properties: map[string]spec.Schema{ 15371 "ip": { 15372 SchemaProps: spec.SchemaProps{ 15373 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).", 15374 Default: "", 15375 Type: []string{"string"}, 15376 Format: "", 15377 }, 15378 }, 15379 "hostname": { 15380 SchemaProps: spec.SchemaProps{ 15381 Description: "The Hostname of this endpoint", 15382 Type: []string{"string"}, 15383 Format: "", 15384 }, 15385 }, 15386 "nodeName": { 15387 SchemaProps: spec.SchemaProps{ 15388 Description: "Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.", 15389 Type: []string{"string"}, 15390 Format: "", 15391 }, 15392 }, 15393 "targetRef": { 15394 SchemaProps: spec.SchemaProps{ 15395 Description: "Reference to object providing the endpoint.", 15396 Ref: ref("k8s.io/api/core/v1.ObjectReference"), 15397 }, 15398 }, 15399 }, 15400 Required: []string{"ip"}, 15401 }, 15402 VendorExtensible: spec.VendorExtensible{ 15403 Extensions: spec.Extensions{ 15404 "x-kubernetes-map-type": "atomic", 15405 }, 15406 }, 15407 }, 15408 Dependencies: []string{ 15409 "k8s.io/api/core/v1.ObjectReference"}, 15410 } 15411 } 15412 15413 func schema_k8sio_api_core_v1_EndpointPort(ref common.ReferenceCallback) common.OpenAPIDefinition { 15414 return common.OpenAPIDefinition{ 15415 Schema: spec.Schema{ 15416 SchemaProps: spec.SchemaProps{ 15417 Description: "EndpointPort is a tuple that describes a single port.", 15418 Type: []string{"object"}, 15419 Properties: map[string]spec.Schema{ 15420 "name": { 15421 SchemaProps: spec.SchemaProps{ 15422 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.", 15423 Type: []string{"string"}, 15424 Format: "", 15425 }, 15426 }, 15427 "port": { 15428 SchemaProps: spec.SchemaProps{ 15429 Description: "The port number of the endpoint.", 15430 Default: 0, 15431 Type: []string{"integer"}, 15432 Format: "int32", 15433 }, 15434 }, 15435 "protocol": { 15436 SchemaProps: spec.SchemaProps{ 15437 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.", 15438 Type: []string{"string"}, 15439 Format: "", 15440 Enum: []interface{}{"SCTP", "TCP", "UDP"}, 15441 }, 15442 }, 15443 "appProtocol": { 15444 SchemaProps: spec.SchemaProps{ 15445 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.", 15446 Type: []string{"string"}, 15447 Format: "", 15448 }, 15449 }, 15450 }, 15451 Required: []string{"port"}, 15452 }, 15453 VendorExtensible: spec.VendorExtensible{ 15454 Extensions: spec.Extensions{ 15455 "x-kubernetes-map-type": "atomic", 15456 }, 15457 }, 15458 }, 15459 } 15460 } 15461 15462 func schema_k8sio_api_core_v1_EndpointSubset(ref common.ReferenceCallback) common.OpenAPIDefinition { 15463 return common.OpenAPIDefinition{ 15464 Schema: spec.Schema{ 15465 SchemaProps: spec.SchemaProps{ 15466 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 ]", 15467 Type: []string{"object"}, 15468 Properties: map[string]spec.Schema{ 15469 "addresses": { 15470 SchemaProps: spec.SchemaProps{ 15471 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.", 15472 Type: []string{"array"}, 15473 Items: &spec.SchemaOrArray{ 15474 Schema: &spec.Schema{ 15475 SchemaProps: spec.SchemaProps{ 15476 Default: map[string]interface{}{}, 15477 Ref: ref("k8s.io/api/core/v1.EndpointAddress"), 15478 }, 15479 }, 15480 }, 15481 }, 15482 }, 15483 "notReadyAddresses": { 15484 SchemaProps: spec.SchemaProps{ 15485 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.", 15486 Type: []string{"array"}, 15487 Items: &spec.SchemaOrArray{ 15488 Schema: &spec.Schema{ 15489 SchemaProps: spec.SchemaProps{ 15490 Default: map[string]interface{}{}, 15491 Ref: ref("k8s.io/api/core/v1.EndpointAddress"), 15492 }, 15493 }, 15494 }, 15495 }, 15496 }, 15497 "ports": { 15498 SchemaProps: spec.SchemaProps{ 15499 Description: "Port numbers available on the related IP addresses.", 15500 Type: []string{"array"}, 15501 Items: &spec.SchemaOrArray{ 15502 Schema: &spec.Schema{ 15503 SchemaProps: spec.SchemaProps{ 15504 Default: map[string]interface{}{}, 15505 Ref: ref("k8s.io/api/core/v1.EndpointPort"), 15506 }, 15507 }, 15508 }, 15509 }, 15510 }, 15511 }, 15512 }, 15513 }, 15514 Dependencies: []string{ 15515 "k8s.io/api/core/v1.EndpointAddress", "k8s.io/api/core/v1.EndpointPort"}, 15516 } 15517 } 15518 15519 func schema_k8sio_api_core_v1_Endpoints(ref common.ReferenceCallback) common.OpenAPIDefinition { 15520 return common.OpenAPIDefinition{ 15521 Schema: spec.Schema{ 15522 SchemaProps: spec.SchemaProps{ 15523 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]", 15524 Type: []string{"object"}, 15525 Properties: map[string]spec.Schema{ 15526 "kind": { 15527 SchemaProps: spec.SchemaProps{ 15528 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 15529 Type: []string{"string"}, 15530 Format: "", 15531 }, 15532 }, 15533 "apiVersion": { 15534 SchemaProps: spec.SchemaProps{ 15535 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 15536 Type: []string{"string"}, 15537 Format: "", 15538 }, 15539 }, 15540 "metadata": { 15541 SchemaProps: spec.SchemaProps{ 15542 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 15543 Default: map[string]interface{}{}, 15544 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 15545 }, 15546 }, 15547 "subsets": { 15548 SchemaProps: spec.SchemaProps{ 15549 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.", 15550 Type: []string{"array"}, 15551 Items: &spec.SchemaOrArray{ 15552 Schema: &spec.Schema{ 15553 SchemaProps: spec.SchemaProps{ 15554 Default: map[string]interface{}{}, 15555 Ref: ref("k8s.io/api/core/v1.EndpointSubset"), 15556 }, 15557 }, 15558 }, 15559 }, 15560 }, 15561 }, 15562 }, 15563 }, 15564 Dependencies: []string{ 15565 "k8s.io/api/core/v1.EndpointSubset", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 15566 } 15567 } 15568 15569 func schema_k8sio_api_core_v1_EndpointsList(ref common.ReferenceCallback) common.OpenAPIDefinition { 15570 return common.OpenAPIDefinition{ 15571 Schema: spec.Schema{ 15572 SchemaProps: spec.SchemaProps{ 15573 Description: "EndpointsList is a list of endpoints.", 15574 Type: []string{"object"}, 15575 Properties: map[string]spec.Schema{ 15576 "kind": { 15577 SchemaProps: spec.SchemaProps{ 15578 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 15579 Type: []string{"string"}, 15580 Format: "", 15581 }, 15582 }, 15583 "apiVersion": { 15584 SchemaProps: spec.SchemaProps{ 15585 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 15586 Type: []string{"string"}, 15587 Format: "", 15588 }, 15589 }, 15590 "metadata": { 15591 SchemaProps: spec.SchemaProps{ 15592 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 15593 Default: map[string]interface{}{}, 15594 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 15595 }, 15596 }, 15597 "items": { 15598 SchemaProps: spec.SchemaProps{ 15599 Description: "List of endpoints.", 15600 Type: []string{"array"}, 15601 Items: &spec.SchemaOrArray{ 15602 Schema: &spec.Schema{ 15603 SchemaProps: spec.SchemaProps{ 15604 Default: map[string]interface{}{}, 15605 Ref: ref("k8s.io/api/core/v1.Endpoints"), 15606 }, 15607 }, 15608 }, 15609 }, 15610 }, 15611 }, 15612 Required: []string{"items"}, 15613 }, 15614 }, 15615 Dependencies: []string{ 15616 "k8s.io/api/core/v1.Endpoints", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 15617 } 15618 } 15619 15620 func schema_k8sio_api_core_v1_EnvFromSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 15621 return common.OpenAPIDefinition{ 15622 Schema: spec.Schema{ 15623 SchemaProps: spec.SchemaProps{ 15624 Description: "EnvFromSource represents the source of a set of ConfigMaps", 15625 Type: []string{"object"}, 15626 Properties: map[string]spec.Schema{ 15627 "prefix": { 15628 SchemaProps: spec.SchemaProps{ 15629 Description: "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", 15630 Type: []string{"string"}, 15631 Format: "", 15632 }, 15633 }, 15634 "configMapRef": { 15635 SchemaProps: spec.SchemaProps{ 15636 Description: "The ConfigMap to select from", 15637 Ref: ref("k8s.io/api/core/v1.ConfigMapEnvSource"), 15638 }, 15639 }, 15640 "secretRef": { 15641 SchemaProps: spec.SchemaProps{ 15642 Description: "The Secret to select from", 15643 Ref: ref("k8s.io/api/core/v1.SecretEnvSource"), 15644 }, 15645 }, 15646 }, 15647 }, 15648 }, 15649 Dependencies: []string{ 15650 "k8s.io/api/core/v1.ConfigMapEnvSource", "k8s.io/api/core/v1.SecretEnvSource"}, 15651 } 15652 } 15653 15654 func schema_k8sio_api_core_v1_EnvVar(ref common.ReferenceCallback) common.OpenAPIDefinition { 15655 return common.OpenAPIDefinition{ 15656 Schema: spec.Schema{ 15657 SchemaProps: spec.SchemaProps{ 15658 Description: "EnvVar represents an environment variable present in a Container.", 15659 Type: []string{"object"}, 15660 Properties: map[string]spec.Schema{ 15661 "name": { 15662 SchemaProps: spec.SchemaProps{ 15663 Description: "Name of the environment variable. Must be a C_IDENTIFIER.", 15664 Default: "", 15665 Type: []string{"string"}, 15666 Format: "", 15667 }, 15668 }, 15669 "value": { 15670 SchemaProps: spec.SchemaProps{ 15671 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 \"\".", 15672 Type: []string{"string"}, 15673 Format: "", 15674 }, 15675 }, 15676 "valueFrom": { 15677 SchemaProps: spec.SchemaProps{ 15678 Description: "Source for the environment variable's value. Cannot be used if value is not empty.", 15679 Ref: ref("k8s.io/api/core/v1.EnvVarSource"), 15680 }, 15681 }, 15682 }, 15683 Required: []string{"name"}, 15684 }, 15685 }, 15686 Dependencies: []string{ 15687 "k8s.io/api/core/v1.EnvVarSource"}, 15688 } 15689 } 15690 15691 func schema_k8sio_api_core_v1_EnvVarSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 15692 return common.OpenAPIDefinition{ 15693 Schema: spec.Schema{ 15694 SchemaProps: spec.SchemaProps{ 15695 Description: "EnvVarSource represents a source for the value of an EnvVar.", 15696 Type: []string{"object"}, 15697 Properties: map[string]spec.Schema{ 15698 "fieldRef": { 15699 SchemaProps: spec.SchemaProps{ 15700 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.", 15701 Ref: ref("k8s.io/api/core/v1.ObjectFieldSelector"), 15702 }, 15703 }, 15704 "resourceFieldRef": { 15705 SchemaProps: spec.SchemaProps{ 15706 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.", 15707 Ref: ref("k8s.io/api/core/v1.ResourceFieldSelector"), 15708 }, 15709 }, 15710 "configMapKeyRef": { 15711 SchemaProps: spec.SchemaProps{ 15712 Description: "Selects a key of a ConfigMap.", 15713 Ref: ref("k8s.io/api/core/v1.ConfigMapKeySelector"), 15714 }, 15715 }, 15716 "secretKeyRef": { 15717 SchemaProps: spec.SchemaProps{ 15718 Description: "Selects a key of a secret in the pod's namespace", 15719 Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), 15720 }, 15721 }, 15722 }, 15723 }, 15724 }, 15725 Dependencies: []string{ 15726 "k8s.io/api/core/v1.ConfigMapKeySelector", "k8s.io/api/core/v1.ObjectFieldSelector", "k8s.io/api/core/v1.ResourceFieldSelector", "k8s.io/api/core/v1.SecretKeySelector"}, 15727 } 15728 } 15729 15730 func schema_k8sio_api_core_v1_EphemeralContainer(ref common.ReferenceCallback) common.OpenAPIDefinition { 15731 return common.OpenAPIDefinition{ 15732 Schema: spec.Schema{ 15733 SchemaProps: spec.SchemaProps{ 15734 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.", 15735 Type: []string{"object"}, 15736 Properties: map[string]spec.Schema{ 15737 "name": { 15738 SchemaProps: spec.SchemaProps{ 15739 Description: "Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers.", 15740 Default: "", 15741 Type: []string{"string"}, 15742 Format: "", 15743 }, 15744 }, 15745 "image": { 15746 SchemaProps: spec.SchemaProps{ 15747 Description: "Container image name. More info: https://kubernetes.io/docs/concepts/containers/images", 15748 Type: []string{"string"}, 15749 Format: "", 15750 }, 15751 }, 15752 "command": { 15753 SchemaProps: spec.SchemaProps{ 15754 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", 15755 Type: []string{"array"}, 15756 Items: &spec.SchemaOrArray{ 15757 Schema: &spec.Schema{ 15758 SchemaProps: spec.SchemaProps{ 15759 Default: "", 15760 Type: []string{"string"}, 15761 Format: "", 15762 }, 15763 }, 15764 }, 15765 }, 15766 }, 15767 "args": { 15768 SchemaProps: spec.SchemaProps{ 15769 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", 15770 Type: []string{"array"}, 15771 Items: &spec.SchemaOrArray{ 15772 Schema: &spec.Schema{ 15773 SchemaProps: spec.SchemaProps{ 15774 Default: "", 15775 Type: []string{"string"}, 15776 Format: "", 15777 }, 15778 }, 15779 }, 15780 }, 15781 }, 15782 "workingDir": { 15783 SchemaProps: spec.SchemaProps{ 15784 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.", 15785 Type: []string{"string"}, 15786 Format: "", 15787 }, 15788 }, 15789 "ports": { 15790 VendorExtensible: spec.VendorExtensible{ 15791 Extensions: spec.Extensions{ 15792 "x-kubernetes-list-map-keys": []interface{}{ 15793 "containerPort", 15794 "protocol", 15795 }, 15796 "x-kubernetes-list-type": "map", 15797 "x-kubernetes-patch-merge-key": "containerPort", 15798 "x-kubernetes-patch-strategy": "merge", 15799 }, 15800 }, 15801 SchemaProps: spec.SchemaProps{ 15802 Description: "Ports are not allowed for ephemeral containers.", 15803 Type: []string{"array"}, 15804 Items: &spec.SchemaOrArray{ 15805 Schema: &spec.Schema{ 15806 SchemaProps: spec.SchemaProps{ 15807 Default: map[string]interface{}{}, 15808 Ref: ref("k8s.io/api/core/v1.ContainerPort"), 15809 }, 15810 }, 15811 }, 15812 }, 15813 }, 15814 "envFrom": { 15815 SchemaProps: spec.SchemaProps{ 15816 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.", 15817 Type: []string{"array"}, 15818 Items: &spec.SchemaOrArray{ 15819 Schema: &spec.Schema{ 15820 SchemaProps: spec.SchemaProps{ 15821 Default: map[string]interface{}{}, 15822 Ref: ref("k8s.io/api/core/v1.EnvFromSource"), 15823 }, 15824 }, 15825 }, 15826 }, 15827 }, 15828 "env": { 15829 VendorExtensible: spec.VendorExtensible{ 15830 Extensions: spec.Extensions{ 15831 "x-kubernetes-patch-merge-key": "name", 15832 "x-kubernetes-patch-strategy": "merge", 15833 }, 15834 }, 15835 SchemaProps: spec.SchemaProps{ 15836 Description: "List of environment variables to set in the container. Cannot be updated.", 15837 Type: []string{"array"}, 15838 Items: &spec.SchemaOrArray{ 15839 Schema: &spec.Schema{ 15840 SchemaProps: spec.SchemaProps{ 15841 Default: map[string]interface{}{}, 15842 Ref: ref("k8s.io/api/core/v1.EnvVar"), 15843 }, 15844 }, 15845 }, 15846 }, 15847 }, 15848 "resources": { 15849 SchemaProps: spec.SchemaProps{ 15850 Description: "Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod.", 15851 Default: map[string]interface{}{}, 15852 Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), 15853 }, 15854 }, 15855 "resizePolicy": { 15856 VendorExtensible: spec.VendorExtensible{ 15857 Extensions: spec.Extensions{ 15858 "x-kubernetes-list-type": "atomic", 15859 }, 15860 }, 15861 SchemaProps: spec.SchemaProps{ 15862 Description: "Resources resize policy for the container.", 15863 Type: []string{"array"}, 15864 Items: &spec.SchemaOrArray{ 15865 Schema: &spec.Schema{ 15866 SchemaProps: spec.SchemaProps{ 15867 Default: map[string]interface{}{}, 15868 Ref: ref("k8s.io/api/core/v1.ContainerResizePolicy"), 15869 }, 15870 }, 15871 }, 15872 }, 15873 }, 15874 "volumeMounts": { 15875 VendorExtensible: spec.VendorExtensible{ 15876 Extensions: spec.Extensions{ 15877 "x-kubernetes-patch-merge-key": "mountPath", 15878 "x-kubernetes-patch-strategy": "merge", 15879 }, 15880 }, 15881 SchemaProps: spec.SchemaProps{ 15882 Description: "Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated.", 15883 Type: []string{"array"}, 15884 Items: &spec.SchemaOrArray{ 15885 Schema: &spec.Schema{ 15886 SchemaProps: spec.SchemaProps{ 15887 Default: map[string]interface{}{}, 15888 Ref: ref("k8s.io/api/core/v1.VolumeMount"), 15889 }, 15890 }, 15891 }, 15892 }, 15893 }, 15894 "volumeDevices": { 15895 VendorExtensible: spec.VendorExtensible{ 15896 Extensions: spec.Extensions{ 15897 "x-kubernetes-patch-merge-key": "devicePath", 15898 "x-kubernetes-patch-strategy": "merge", 15899 }, 15900 }, 15901 SchemaProps: spec.SchemaProps{ 15902 Description: "volumeDevices is the list of block devices to be used by the container.", 15903 Type: []string{"array"}, 15904 Items: &spec.SchemaOrArray{ 15905 Schema: &spec.Schema{ 15906 SchemaProps: spec.SchemaProps{ 15907 Default: map[string]interface{}{}, 15908 Ref: ref("k8s.io/api/core/v1.VolumeDevice"), 15909 }, 15910 }, 15911 }, 15912 }, 15913 }, 15914 "livenessProbe": { 15915 SchemaProps: spec.SchemaProps{ 15916 Description: "Probes are not allowed for ephemeral containers.", 15917 Ref: ref("k8s.io/api/core/v1.Probe"), 15918 }, 15919 }, 15920 "readinessProbe": { 15921 SchemaProps: spec.SchemaProps{ 15922 Description: "Probes are not allowed for ephemeral containers.", 15923 Ref: ref("k8s.io/api/core/v1.Probe"), 15924 }, 15925 }, 15926 "startupProbe": { 15927 SchemaProps: spec.SchemaProps{ 15928 Description: "Probes are not allowed for ephemeral containers.", 15929 Ref: ref("k8s.io/api/core/v1.Probe"), 15930 }, 15931 }, 15932 "lifecycle": { 15933 SchemaProps: spec.SchemaProps{ 15934 Description: "Lifecycle is not allowed for ephemeral containers.", 15935 Ref: ref("k8s.io/api/core/v1.Lifecycle"), 15936 }, 15937 }, 15938 "terminationMessagePath": { 15939 SchemaProps: spec.SchemaProps{ 15940 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.", 15941 Type: []string{"string"}, 15942 Format: "", 15943 }, 15944 }, 15945 "terminationMessagePolicy": { 15946 SchemaProps: spec.SchemaProps{ 15947 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.", 15948 Type: []string{"string"}, 15949 Format: "", 15950 Enum: []interface{}{"FallbackToLogsOnError", "File"}, 15951 }, 15952 }, 15953 "imagePullPolicy": { 15954 SchemaProps: spec.SchemaProps{ 15955 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", 15956 Type: []string{"string"}, 15957 Format: "", 15958 Enum: []interface{}{"Always", "IfNotPresent", "Never"}, 15959 }, 15960 }, 15961 "securityContext": { 15962 SchemaProps: spec.SchemaProps{ 15963 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.", 15964 Ref: ref("k8s.io/api/core/v1.SecurityContext"), 15965 }, 15966 }, 15967 "stdin": { 15968 SchemaProps: spec.SchemaProps{ 15969 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.", 15970 Type: []string{"boolean"}, 15971 Format: "", 15972 }, 15973 }, 15974 "stdinOnce": { 15975 SchemaProps: spec.SchemaProps{ 15976 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", 15977 Type: []string{"boolean"}, 15978 Format: "", 15979 }, 15980 }, 15981 "tty": { 15982 SchemaProps: spec.SchemaProps{ 15983 Description: "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", 15984 Type: []string{"boolean"}, 15985 Format: "", 15986 }, 15987 }, 15988 "targetContainerName": { 15989 SchemaProps: spec.SchemaProps{ 15990 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.", 15991 Type: []string{"string"}, 15992 Format: "", 15993 }, 15994 }, 15995 }, 15996 Required: []string{"name"}, 15997 }, 15998 }, 15999 Dependencies: []string{ 16000 "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"}, 16001 } 16002 } 16003 16004 func schema_k8sio_api_core_v1_EphemeralContainerCommon(ref common.ReferenceCallback) common.OpenAPIDefinition { 16005 return common.OpenAPIDefinition{ 16006 Schema: spec.Schema{ 16007 SchemaProps: spec.SchemaProps{ 16008 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.", 16009 Type: []string{"object"}, 16010 Properties: map[string]spec.Schema{ 16011 "name": { 16012 SchemaProps: spec.SchemaProps{ 16013 Description: "Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers.", 16014 Default: "", 16015 Type: []string{"string"}, 16016 Format: "", 16017 }, 16018 }, 16019 "image": { 16020 SchemaProps: spec.SchemaProps{ 16021 Description: "Container image name. More info: https://kubernetes.io/docs/concepts/containers/images", 16022 Type: []string{"string"}, 16023 Format: "", 16024 }, 16025 }, 16026 "command": { 16027 SchemaProps: spec.SchemaProps{ 16028 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", 16029 Type: []string{"array"}, 16030 Items: &spec.SchemaOrArray{ 16031 Schema: &spec.Schema{ 16032 SchemaProps: spec.SchemaProps{ 16033 Default: "", 16034 Type: []string{"string"}, 16035 Format: "", 16036 }, 16037 }, 16038 }, 16039 }, 16040 }, 16041 "args": { 16042 SchemaProps: spec.SchemaProps{ 16043 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", 16044 Type: []string{"array"}, 16045 Items: &spec.SchemaOrArray{ 16046 Schema: &spec.Schema{ 16047 SchemaProps: spec.SchemaProps{ 16048 Default: "", 16049 Type: []string{"string"}, 16050 Format: "", 16051 }, 16052 }, 16053 }, 16054 }, 16055 }, 16056 "workingDir": { 16057 SchemaProps: spec.SchemaProps{ 16058 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.", 16059 Type: []string{"string"}, 16060 Format: "", 16061 }, 16062 }, 16063 "ports": { 16064 VendorExtensible: spec.VendorExtensible{ 16065 Extensions: spec.Extensions{ 16066 "x-kubernetes-list-map-keys": []interface{}{ 16067 "containerPort", 16068 "protocol", 16069 }, 16070 "x-kubernetes-list-type": "map", 16071 "x-kubernetes-patch-merge-key": "containerPort", 16072 "x-kubernetes-patch-strategy": "merge", 16073 }, 16074 }, 16075 SchemaProps: spec.SchemaProps{ 16076 Description: "Ports are not allowed for ephemeral containers.", 16077 Type: []string{"array"}, 16078 Items: &spec.SchemaOrArray{ 16079 Schema: &spec.Schema{ 16080 SchemaProps: spec.SchemaProps{ 16081 Default: map[string]interface{}{}, 16082 Ref: ref("k8s.io/api/core/v1.ContainerPort"), 16083 }, 16084 }, 16085 }, 16086 }, 16087 }, 16088 "envFrom": { 16089 SchemaProps: spec.SchemaProps{ 16090 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.", 16091 Type: []string{"array"}, 16092 Items: &spec.SchemaOrArray{ 16093 Schema: &spec.Schema{ 16094 SchemaProps: spec.SchemaProps{ 16095 Default: map[string]interface{}{}, 16096 Ref: ref("k8s.io/api/core/v1.EnvFromSource"), 16097 }, 16098 }, 16099 }, 16100 }, 16101 }, 16102 "env": { 16103 VendorExtensible: spec.VendorExtensible{ 16104 Extensions: spec.Extensions{ 16105 "x-kubernetes-patch-merge-key": "name", 16106 "x-kubernetes-patch-strategy": "merge", 16107 }, 16108 }, 16109 SchemaProps: spec.SchemaProps{ 16110 Description: "List of environment variables to set in the container. Cannot be updated.", 16111 Type: []string{"array"}, 16112 Items: &spec.SchemaOrArray{ 16113 Schema: &spec.Schema{ 16114 SchemaProps: spec.SchemaProps{ 16115 Default: map[string]interface{}{}, 16116 Ref: ref("k8s.io/api/core/v1.EnvVar"), 16117 }, 16118 }, 16119 }, 16120 }, 16121 }, 16122 "resources": { 16123 SchemaProps: spec.SchemaProps{ 16124 Description: "Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod.", 16125 Default: map[string]interface{}{}, 16126 Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), 16127 }, 16128 }, 16129 "resizePolicy": { 16130 VendorExtensible: spec.VendorExtensible{ 16131 Extensions: spec.Extensions{ 16132 "x-kubernetes-list-type": "atomic", 16133 }, 16134 }, 16135 SchemaProps: spec.SchemaProps{ 16136 Description: "Resources resize policy for the container.", 16137 Type: []string{"array"}, 16138 Items: &spec.SchemaOrArray{ 16139 Schema: &spec.Schema{ 16140 SchemaProps: spec.SchemaProps{ 16141 Default: map[string]interface{}{}, 16142 Ref: ref("k8s.io/api/core/v1.ContainerResizePolicy"), 16143 }, 16144 }, 16145 }, 16146 }, 16147 }, 16148 "volumeMounts": { 16149 VendorExtensible: spec.VendorExtensible{ 16150 Extensions: spec.Extensions{ 16151 "x-kubernetes-patch-merge-key": "mountPath", 16152 "x-kubernetes-patch-strategy": "merge", 16153 }, 16154 }, 16155 SchemaProps: spec.SchemaProps{ 16156 Description: "Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated.", 16157 Type: []string{"array"}, 16158 Items: &spec.SchemaOrArray{ 16159 Schema: &spec.Schema{ 16160 SchemaProps: spec.SchemaProps{ 16161 Default: map[string]interface{}{}, 16162 Ref: ref("k8s.io/api/core/v1.VolumeMount"), 16163 }, 16164 }, 16165 }, 16166 }, 16167 }, 16168 "volumeDevices": { 16169 VendorExtensible: spec.VendorExtensible{ 16170 Extensions: spec.Extensions{ 16171 "x-kubernetes-patch-merge-key": "devicePath", 16172 "x-kubernetes-patch-strategy": "merge", 16173 }, 16174 }, 16175 SchemaProps: spec.SchemaProps{ 16176 Description: "volumeDevices is the list of block devices to be used by the container.", 16177 Type: []string{"array"}, 16178 Items: &spec.SchemaOrArray{ 16179 Schema: &spec.Schema{ 16180 SchemaProps: spec.SchemaProps{ 16181 Default: map[string]interface{}{}, 16182 Ref: ref("k8s.io/api/core/v1.VolumeDevice"), 16183 }, 16184 }, 16185 }, 16186 }, 16187 }, 16188 "livenessProbe": { 16189 SchemaProps: spec.SchemaProps{ 16190 Description: "Probes are not allowed for ephemeral containers.", 16191 Ref: ref("k8s.io/api/core/v1.Probe"), 16192 }, 16193 }, 16194 "readinessProbe": { 16195 SchemaProps: spec.SchemaProps{ 16196 Description: "Probes are not allowed for ephemeral containers.", 16197 Ref: ref("k8s.io/api/core/v1.Probe"), 16198 }, 16199 }, 16200 "startupProbe": { 16201 SchemaProps: spec.SchemaProps{ 16202 Description: "Probes are not allowed for ephemeral containers.", 16203 Ref: ref("k8s.io/api/core/v1.Probe"), 16204 }, 16205 }, 16206 "lifecycle": { 16207 SchemaProps: spec.SchemaProps{ 16208 Description: "Lifecycle is not allowed for ephemeral containers.", 16209 Ref: ref("k8s.io/api/core/v1.Lifecycle"), 16210 }, 16211 }, 16212 "terminationMessagePath": { 16213 SchemaProps: spec.SchemaProps{ 16214 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.", 16215 Type: []string{"string"}, 16216 Format: "", 16217 }, 16218 }, 16219 "terminationMessagePolicy": { 16220 SchemaProps: spec.SchemaProps{ 16221 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.", 16222 Type: []string{"string"}, 16223 Format: "", 16224 Enum: []interface{}{"FallbackToLogsOnError", "File"}, 16225 }, 16226 }, 16227 "imagePullPolicy": { 16228 SchemaProps: spec.SchemaProps{ 16229 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", 16230 Type: []string{"string"}, 16231 Format: "", 16232 Enum: []interface{}{"Always", "IfNotPresent", "Never"}, 16233 }, 16234 }, 16235 "securityContext": { 16236 SchemaProps: spec.SchemaProps{ 16237 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.", 16238 Ref: ref("k8s.io/api/core/v1.SecurityContext"), 16239 }, 16240 }, 16241 "stdin": { 16242 SchemaProps: spec.SchemaProps{ 16243 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.", 16244 Type: []string{"boolean"}, 16245 Format: "", 16246 }, 16247 }, 16248 "stdinOnce": { 16249 SchemaProps: spec.SchemaProps{ 16250 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", 16251 Type: []string{"boolean"}, 16252 Format: "", 16253 }, 16254 }, 16255 "tty": { 16256 SchemaProps: spec.SchemaProps{ 16257 Description: "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", 16258 Type: []string{"boolean"}, 16259 Format: "", 16260 }, 16261 }, 16262 }, 16263 Required: []string{"name"}, 16264 }, 16265 }, 16266 Dependencies: []string{ 16267 "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"}, 16268 } 16269 } 16270 16271 func schema_k8sio_api_core_v1_EphemeralVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 16272 return common.OpenAPIDefinition{ 16273 Schema: spec.Schema{ 16274 SchemaProps: spec.SchemaProps{ 16275 Description: "Represents an ephemeral volume that is handled by a normal storage driver.", 16276 Type: []string{"object"}, 16277 Properties: map[string]spec.Schema{ 16278 "volumeClaimTemplate": { 16279 SchemaProps: spec.SchemaProps{ 16280 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.", 16281 Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimTemplate"), 16282 }, 16283 }, 16284 }, 16285 }, 16286 }, 16287 Dependencies: []string{ 16288 "k8s.io/api/core/v1.PersistentVolumeClaimTemplate"}, 16289 } 16290 } 16291 16292 func schema_k8sio_api_core_v1_Event(ref common.ReferenceCallback) common.OpenAPIDefinition { 16293 return common.OpenAPIDefinition{ 16294 Schema: spec.Schema{ 16295 SchemaProps: spec.SchemaProps{ 16296 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.", 16297 Type: []string{"object"}, 16298 Properties: map[string]spec.Schema{ 16299 "kind": { 16300 SchemaProps: spec.SchemaProps{ 16301 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 16302 Type: []string{"string"}, 16303 Format: "", 16304 }, 16305 }, 16306 "apiVersion": { 16307 SchemaProps: spec.SchemaProps{ 16308 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 16309 Type: []string{"string"}, 16310 Format: "", 16311 }, 16312 }, 16313 "metadata": { 16314 SchemaProps: spec.SchemaProps{ 16315 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 16316 Default: map[string]interface{}{}, 16317 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 16318 }, 16319 }, 16320 "involvedObject": { 16321 SchemaProps: spec.SchemaProps{ 16322 Description: "The object that this event is about.", 16323 Default: map[string]interface{}{}, 16324 Ref: ref("k8s.io/api/core/v1.ObjectReference"), 16325 }, 16326 }, 16327 "reason": { 16328 SchemaProps: spec.SchemaProps{ 16329 Description: "This should be a short, machine understandable string that gives the reason for the transition into the object's current status.", 16330 Type: []string{"string"}, 16331 Format: "", 16332 }, 16333 }, 16334 "message": { 16335 SchemaProps: spec.SchemaProps{ 16336 Description: "A human-readable description of the status of this operation.", 16337 Type: []string{"string"}, 16338 Format: "", 16339 }, 16340 }, 16341 "source": { 16342 SchemaProps: spec.SchemaProps{ 16343 Description: "The component reporting this event. Should be a short machine understandable string.", 16344 Default: map[string]interface{}{}, 16345 Ref: ref("k8s.io/api/core/v1.EventSource"), 16346 }, 16347 }, 16348 "firstTimestamp": { 16349 SchemaProps: spec.SchemaProps{ 16350 Description: "The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)", 16351 Default: map[string]interface{}{}, 16352 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 16353 }, 16354 }, 16355 "lastTimestamp": { 16356 SchemaProps: spec.SchemaProps{ 16357 Description: "The time at which the most recent occurrence of this event was recorded.", 16358 Default: map[string]interface{}{}, 16359 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 16360 }, 16361 }, 16362 "count": { 16363 SchemaProps: spec.SchemaProps{ 16364 Description: "The number of times this event has occurred.", 16365 Type: []string{"integer"}, 16366 Format: "int32", 16367 }, 16368 }, 16369 "type": { 16370 SchemaProps: spec.SchemaProps{ 16371 Description: "Type of this event (Normal, Warning), new types could be added in the future", 16372 Type: []string{"string"}, 16373 Format: "", 16374 }, 16375 }, 16376 "eventTime": { 16377 SchemaProps: spec.SchemaProps{ 16378 Description: "Time when this Event was first observed.", 16379 Default: map[string]interface{}{}, 16380 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"), 16381 }, 16382 }, 16383 "series": { 16384 SchemaProps: spec.SchemaProps{ 16385 Description: "Data about the Event series this event represents or nil if it's a singleton Event.", 16386 Ref: ref("k8s.io/api/core/v1.EventSeries"), 16387 }, 16388 }, 16389 "action": { 16390 SchemaProps: spec.SchemaProps{ 16391 Description: "What action was taken/failed regarding to the Regarding object.", 16392 Type: []string{"string"}, 16393 Format: "", 16394 }, 16395 }, 16396 "related": { 16397 SchemaProps: spec.SchemaProps{ 16398 Description: "Optional secondary object for more complex actions.", 16399 Ref: ref("k8s.io/api/core/v1.ObjectReference"), 16400 }, 16401 }, 16402 "reportingComponent": { 16403 SchemaProps: spec.SchemaProps{ 16404 Description: "Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.", 16405 Default: "", 16406 Type: []string{"string"}, 16407 Format: "", 16408 }, 16409 }, 16410 "reportingInstance": { 16411 SchemaProps: spec.SchemaProps{ 16412 Description: "ID of the controller instance, e.g. `kubelet-xyzf`.", 16413 Default: "", 16414 Type: []string{"string"}, 16415 Format: "", 16416 }, 16417 }, 16418 }, 16419 Required: []string{"metadata", "involvedObject"}, 16420 }, 16421 }, 16422 Dependencies: []string{ 16423 "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"}, 16424 } 16425 } 16426 16427 func schema_k8sio_api_core_v1_EventList(ref common.ReferenceCallback) common.OpenAPIDefinition { 16428 return common.OpenAPIDefinition{ 16429 Schema: spec.Schema{ 16430 SchemaProps: spec.SchemaProps{ 16431 Description: "EventList is a list of events.", 16432 Type: []string{"object"}, 16433 Properties: map[string]spec.Schema{ 16434 "kind": { 16435 SchemaProps: spec.SchemaProps{ 16436 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 16437 Type: []string{"string"}, 16438 Format: "", 16439 }, 16440 }, 16441 "apiVersion": { 16442 SchemaProps: spec.SchemaProps{ 16443 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 16444 Type: []string{"string"}, 16445 Format: "", 16446 }, 16447 }, 16448 "metadata": { 16449 SchemaProps: spec.SchemaProps{ 16450 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 16451 Default: map[string]interface{}{}, 16452 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 16453 }, 16454 }, 16455 "items": { 16456 SchemaProps: spec.SchemaProps{ 16457 Description: "List of events", 16458 Type: []string{"array"}, 16459 Items: &spec.SchemaOrArray{ 16460 Schema: &spec.Schema{ 16461 SchemaProps: spec.SchemaProps{ 16462 Default: map[string]interface{}{}, 16463 Ref: ref("k8s.io/api/core/v1.Event"), 16464 }, 16465 }, 16466 }, 16467 }, 16468 }, 16469 }, 16470 Required: []string{"items"}, 16471 }, 16472 }, 16473 Dependencies: []string{ 16474 "k8s.io/api/core/v1.Event", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 16475 } 16476 } 16477 16478 func schema_k8sio_api_core_v1_EventSeries(ref common.ReferenceCallback) common.OpenAPIDefinition { 16479 return common.OpenAPIDefinition{ 16480 Schema: spec.Schema{ 16481 SchemaProps: spec.SchemaProps{ 16482 Description: "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.", 16483 Type: []string{"object"}, 16484 Properties: map[string]spec.Schema{ 16485 "count": { 16486 SchemaProps: spec.SchemaProps{ 16487 Description: "Number of occurrences in this series up to the last heartbeat time", 16488 Type: []string{"integer"}, 16489 Format: "int32", 16490 }, 16491 }, 16492 "lastObservedTime": { 16493 SchemaProps: spec.SchemaProps{ 16494 Description: "Time of the last occurrence observed", 16495 Default: map[string]interface{}{}, 16496 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"), 16497 }, 16498 }, 16499 }, 16500 }, 16501 }, 16502 Dependencies: []string{ 16503 "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"}, 16504 } 16505 } 16506 16507 func schema_k8sio_api_core_v1_EventSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 16508 return common.OpenAPIDefinition{ 16509 Schema: spec.Schema{ 16510 SchemaProps: spec.SchemaProps{ 16511 Description: "EventSource contains information for an event.", 16512 Type: []string{"object"}, 16513 Properties: map[string]spec.Schema{ 16514 "component": { 16515 SchemaProps: spec.SchemaProps{ 16516 Description: "Component from which the event is generated.", 16517 Type: []string{"string"}, 16518 Format: "", 16519 }, 16520 }, 16521 "host": { 16522 SchemaProps: spec.SchemaProps{ 16523 Description: "Node name on which the event is generated.", 16524 Type: []string{"string"}, 16525 Format: "", 16526 }, 16527 }, 16528 }, 16529 }, 16530 }, 16531 } 16532 } 16533 16534 func schema_k8sio_api_core_v1_ExecAction(ref common.ReferenceCallback) common.OpenAPIDefinition { 16535 return common.OpenAPIDefinition{ 16536 Schema: spec.Schema{ 16537 SchemaProps: spec.SchemaProps{ 16538 Description: "ExecAction describes a \"run in container\" action.", 16539 Type: []string{"object"}, 16540 Properties: map[string]spec.Schema{ 16541 "command": { 16542 SchemaProps: spec.SchemaProps{ 16543 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.", 16544 Type: []string{"array"}, 16545 Items: &spec.SchemaOrArray{ 16546 Schema: &spec.Schema{ 16547 SchemaProps: spec.SchemaProps{ 16548 Default: "", 16549 Type: []string{"string"}, 16550 Format: "", 16551 }, 16552 }, 16553 }, 16554 }, 16555 }, 16556 }, 16557 }, 16558 }, 16559 } 16560 } 16561 16562 func schema_k8sio_api_core_v1_FCVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 16563 return common.OpenAPIDefinition{ 16564 Schema: spec.Schema{ 16565 SchemaProps: spec.SchemaProps{ 16566 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.", 16567 Type: []string{"object"}, 16568 Properties: map[string]spec.Schema{ 16569 "targetWWNs": { 16570 SchemaProps: spec.SchemaProps{ 16571 Description: "targetWWNs is Optional: FC target worldwide names (WWNs)", 16572 Type: []string{"array"}, 16573 Items: &spec.SchemaOrArray{ 16574 Schema: &spec.Schema{ 16575 SchemaProps: spec.SchemaProps{ 16576 Default: "", 16577 Type: []string{"string"}, 16578 Format: "", 16579 }, 16580 }, 16581 }, 16582 }, 16583 }, 16584 "lun": { 16585 SchemaProps: spec.SchemaProps{ 16586 Description: "lun is Optional: FC target lun number", 16587 Type: []string{"integer"}, 16588 Format: "int32", 16589 }, 16590 }, 16591 "fsType": { 16592 SchemaProps: spec.SchemaProps{ 16593 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.", 16594 Type: []string{"string"}, 16595 Format: "", 16596 }, 16597 }, 16598 "readOnly": { 16599 SchemaProps: spec.SchemaProps{ 16600 Description: "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 16601 Type: []string{"boolean"}, 16602 Format: "", 16603 }, 16604 }, 16605 "wwids": { 16606 SchemaProps: spec.SchemaProps{ 16607 Description: "wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.", 16608 Type: []string{"array"}, 16609 Items: &spec.SchemaOrArray{ 16610 Schema: &spec.Schema{ 16611 SchemaProps: spec.SchemaProps{ 16612 Default: "", 16613 Type: []string{"string"}, 16614 Format: "", 16615 }, 16616 }, 16617 }, 16618 }, 16619 }, 16620 }, 16621 }, 16622 }, 16623 } 16624 } 16625 16626 func schema_k8sio_api_core_v1_FlexPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 16627 return common.OpenAPIDefinition{ 16628 Schema: spec.Schema{ 16629 SchemaProps: spec.SchemaProps{ 16630 Description: "FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin.", 16631 Type: []string{"object"}, 16632 Properties: map[string]spec.Schema{ 16633 "driver": { 16634 SchemaProps: spec.SchemaProps{ 16635 Description: "driver is the name of the driver to use for this volume.", 16636 Default: "", 16637 Type: []string{"string"}, 16638 Format: "", 16639 }, 16640 }, 16641 "fsType": { 16642 SchemaProps: spec.SchemaProps{ 16643 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.", 16644 Type: []string{"string"}, 16645 Format: "", 16646 }, 16647 }, 16648 "secretRef": { 16649 SchemaProps: spec.SchemaProps{ 16650 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.", 16651 Ref: ref("k8s.io/api/core/v1.SecretReference"), 16652 }, 16653 }, 16654 "readOnly": { 16655 SchemaProps: spec.SchemaProps{ 16656 Description: "readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 16657 Type: []string{"boolean"}, 16658 Format: "", 16659 }, 16660 }, 16661 "options": { 16662 SchemaProps: spec.SchemaProps{ 16663 Description: "options is Optional: this field holds extra command options if any.", 16664 Type: []string{"object"}, 16665 AdditionalProperties: &spec.SchemaOrBool{ 16666 Allows: true, 16667 Schema: &spec.Schema{ 16668 SchemaProps: spec.SchemaProps{ 16669 Default: "", 16670 Type: []string{"string"}, 16671 Format: "", 16672 }, 16673 }, 16674 }, 16675 }, 16676 }, 16677 }, 16678 Required: []string{"driver"}, 16679 }, 16680 }, 16681 Dependencies: []string{ 16682 "k8s.io/api/core/v1.SecretReference"}, 16683 } 16684 } 16685 16686 func schema_k8sio_api_core_v1_FlexVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 16687 return common.OpenAPIDefinition{ 16688 Schema: spec.Schema{ 16689 SchemaProps: spec.SchemaProps{ 16690 Description: "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", 16691 Type: []string{"object"}, 16692 Properties: map[string]spec.Schema{ 16693 "driver": { 16694 SchemaProps: spec.SchemaProps{ 16695 Description: "driver is the name of the driver to use for this volume.", 16696 Default: "", 16697 Type: []string{"string"}, 16698 Format: "", 16699 }, 16700 }, 16701 "fsType": { 16702 SchemaProps: spec.SchemaProps{ 16703 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.", 16704 Type: []string{"string"}, 16705 Format: "", 16706 }, 16707 }, 16708 "secretRef": { 16709 SchemaProps: spec.SchemaProps{ 16710 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.", 16711 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 16712 }, 16713 }, 16714 "readOnly": { 16715 SchemaProps: spec.SchemaProps{ 16716 Description: "readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 16717 Type: []string{"boolean"}, 16718 Format: "", 16719 }, 16720 }, 16721 "options": { 16722 SchemaProps: spec.SchemaProps{ 16723 Description: "options is Optional: this field holds extra command options if any.", 16724 Type: []string{"object"}, 16725 AdditionalProperties: &spec.SchemaOrBool{ 16726 Allows: true, 16727 Schema: &spec.Schema{ 16728 SchemaProps: spec.SchemaProps{ 16729 Default: "", 16730 Type: []string{"string"}, 16731 Format: "", 16732 }, 16733 }, 16734 }, 16735 }, 16736 }, 16737 }, 16738 Required: []string{"driver"}, 16739 }, 16740 }, 16741 Dependencies: []string{ 16742 "k8s.io/api/core/v1.LocalObjectReference"}, 16743 } 16744 } 16745 16746 func schema_k8sio_api_core_v1_FlockerVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 16747 return common.OpenAPIDefinition{ 16748 Schema: spec.Schema{ 16749 SchemaProps: spec.SchemaProps{ 16750 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.", 16751 Type: []string{"object"}, 16752 Properties: map[string]spec.Schema{ 16753 "datasetName": { 16754 SchemaProps: spec.SchemaProps{ 16755 Description: "datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated", 16756 Type: []string{"string"}, 16757 Format: "", 16758 }, 16759 }, 16760 "datasetUUID": { 16761 SchemaProps: spec.SchemaProps{ 16762 Description: "datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset", 16763 Type: []string{"string"}, 16764 Format: "", 16765 }, 16766 }, 16767 }, 16768 }, 16769 }, 16770 } 16771 } 16772 16773 func schema_k8sio_api_core_v1_GCEPersistentDiskVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 16774 return common.OpenAPIDefinition{ 16775 Schema: spec.Schema{ 16776 SchemaProps: spec.SchemaProps{ 16777 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.", 16778 Type: []string{"object"}, 16779 Properties: map[string]spec.Schema{ 16780 "pdName": { 16781 SchemaProps: spec.SchemaProps{ 16782 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", 16783 Default: "", 16784 Type: []string{"string"}, 16785 Format: "", 16786 }, 16787 }, 16788 "fsType": { 16789 SchemaProps: spec.SchemaProps{ 16790 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", 16791 Type: []string{"string"}, 16792 Format: "", 16793 }, 16794 }, 16795 "partition": { 16796 SchemaProps: spec.SchemaProps{ 16797 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", 16798 Type: []string{"integer"}, 16799 Format: "int32", 16800 }, 16801 }, 16802 "readOnly": { 16803 SchemaProps: spec.SchemaProps{ 16804 Description: "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", 16805 Type: []string{"boolean"}, 16806 Format: "", 16807 }, 16808 }, 16809 }, 16810 Required: []string{"pdName"}, 16811 }, 16812 }, 16813 } 16814 } 16815 16816 func schema_k8sio_api_core_v1_GRPCAction(ref common.ReferenceCallback) common.OpenAPIDefinition { 16817 return common.OpenAPIDefinition{ 16818 Schema: spec.Schema{ 16819 SchemaProps: spec.SchemaProps{ 16820 Type: []string{"object"}, 16821 Properties: map[string]spec.Schema{ 16822 "port": { 16823 SchemaProps: spec.SchemaProps{ 16824 Description: "Port number of the gRPC service. Number must be in the range 1 to 65535.", 16825 Default: 0, 16826 Type: []string{"integer"}, 16827 Format: "int32", 16828 }, 16829 }, 16830 "service": { 16831 SchemaProps: spec.SchemaProps{ 16832 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.", 16833 Default: "", 16834 Type: []string{"string"}, 16835 Format: "", 16836 }, 16837 }, 16838 }, 16839 Required: []string{"port"}, 16840 }, 16841 }, 16842 } 16843 } 16844 16845 func schema_k8sio_api_core_v1_GitRepoVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 16846 return common.OpenAPIDefinition{ 16847 Schema: spec.Schema{ 16848 SchemaProps: spec.SchemaProps{ 16849 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.", 16850 Type: []string{"object"}, 16851 Properties: map[string]spec.Schema{ 16852 "repository": { 16853 SchemaProps: spec.SchemaProps{ 16854 Description: "repository is the URL", 16855 Default: "", 16856 Type: []string{"string"}, 16857 Format: "", 16858 }, 16859 }, 16860 "revision": { 16861 SchemaProps: spec.SchemaProps{ 16862 Description: "revision is the commit hash for the specified revision.", 16863 Type: []string{"string"}, 16864 Format: "", 16865 }, 16866 }, 16867 "directory": { 16868 SchemaProps: spec.SchemaProps{ 16869 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.", 16870 Type: []string{"string"}, 16871 Format: "", 16872 }, 16873 }, 16874 }, 16875 Required: []string{"repository"}, 16876 }, 16877 }, 16878 } 16879 } 16880 16881 func schema_k8sio_api_core_v1_GlusterfsPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 16882 return common.OpenAPIDefinition{ 16883 Schema: spec.Schema{ 16884 SchemaProps: spec.SchemaProps{ 16885 Description: "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", 16886 Type: []string{"object"}, 16887 Properties: map[string]spec.Schema{ 16888 "endpoints": { 16889 SchemaProps: spec.SchemaProps{ 16890 Description: "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", 16891 Default: "", 16892 Type: []string{"string"}, 16893 Format: "", 16894 }, 16895 }, 16896 "path": { 16897 SchemaProps: spec.SchemaProps{ 16898 Description: "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", 16899 Default: "", 16900 Type: []string{"string"}, 16901 Format: "", 16902 }, 16903 }, 16904 "readOnly": { 16905 SchemaProps: spec.SchemaProps{ 16906 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", 16907 Type: []string{"boolean"}, 16908 Format: "", 16909 }, 16910 }, 16911 "endpointsNamespace": { 16912 SchemaProps: spec.SchemaProps{ 16913 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", 16914 Type: []string{"string"}, 16915 Format: "", 16916 }, 16917 }, 16918 }, 16919 Required: []string{"endpoints", "path"}, 16920 }, 16921 }, 16922 } 16923 } 16924 16925 func schema_k8sio_api_core_v1_GlusterfsVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 16926 return common.OpenAPIDefinition{ 16927 Schema: spec.Schema{ 16928 SchemaProps: spec.SchemaProps{ 16929 Description: "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", 16930 Type: []string{"object"}, 16931 Properties: map[string]spec.Schema{ 16932 "endpoints": { 16933 SchemaProps: spec.SchemaProps{ 16934 Description: "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", 16935 Default: "", 16936 Type: []string{"string"}, 16937 Format: "", 16938 }, 16939 }, 16940 "path": { 16941 SchemaProps: spec.SchemaProps{ 16942 Description: "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", 16943 Default: "", 16944 Type: []string{"string"}, 16945 Format: "", 16946 }, 16947 }, 16948 "readOnly": { 16949 SchemaProps: spec.SchemaProps{ 16950 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", 16951 Type: []string{"boolean"}, 16952 Format: "", 16953 }, 16954 }, 16955 }, 16956 Required: []string{"endpoints", "path"}, 16957 }, 16958 }, 16959 } 16960 } 16961 16962 func schema_k8sio_api_core_v1_HTTPGetAction(ref common.ReferenceCallback) common.OpenAPIDefinition { 16963 return common.OpenAPIDefinition{ 16964 Schema: spec.Schema{ 16965 SchemaProps: spec.SchemaProps{ 16966 Description: "HTTPGetAction describes an action based on HTTP Get requests.", 16967 Type: []string{"object"}, 16968 Properties: map[string]spec.Schema{ 16969 "path": { 16970 SchemaProps: spec.SchemaProps{ 16971 Description: "Path to access on the HTTP server.", 16972 Type: []string{"string"}, 16973 Format: "", 16974 }, 16975 }, 16976 "port": { 16977 SchemaProps: spec.SchemaProps{ 16978 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.", 16979 Default: map[string]interface{}{}, 16980 Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), 16981 }, 16982 }, 16983 "host": { 16984 SchemaProps: spec.SchemaProps{ 16985 Description: "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", 16986 Type: []string{"string"}, 16987 Format: "", 16988 }, 16989 }, 16990 "scheme": { 16991 SchemaProps: spec.SchemaProps{ 16992 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://", 16993 Type: []string{"string"}, 16994 Format: "", 16995 Enum: []interface{}{"HTTP", "HTTPS"}, 16996 }, 16997 }, 16998 "httpHeaders": { 16999 SchemaProps: spec.SchemaProps{ 17000 Description: "Custom headers to set in the request. HTTP allows repeated headers.", 17001 Type: []string{"array"}, 17002 Items: &spec.SchemaOrArray{ 17003 Schema: &spec.Schema{ 17004 SchemaProps: spec.SchemaProps{ 17005 Default: map[string]interface{}{}, 17006 Ref: ref("k8s.io/api/core/v1.HTTPHeader"), 17007 }, 17008 }, 17009 }, 17010 }, 17011 }, 17012 }, 17013 Required: []string{"port"}, 17014 }, 17015 }, 17016 Dependencies: []string{ 17017 "k8s.io/api/core/v1.HTTPHeader", "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, 17018 } 17019 } 17020 17021 func schema_k8sio_api_core_v1_HTTPHeader(ref common.ReferenceCallback) common.OpenAPIDefinition { 17022 return common.OpenAPIDefinition{ 17023 Schema: spec.Schema{ 17024 SchemaProps: spec.SchemaProps{ 17025 Description: "HTTPHeader describes a custom header to be used in HTTP probes", 17026 Type: []string{"object"}, 17027 Properties: map[string]spec.Schema{ 17028 "name": { 17029 SchemaProps: spec.SchemaProps{ 17030 Description: "The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header.", 17031 Default: "", 17032 Type: []string{"string"}, 17033 Format: "", 17034 }, 17035 }, 17036 "value": { 17037 SchemaProps: spec.SchemaProps{ 17038 Description: "The header field value", 17039 Default: "", 17040 Type: []string{"string"}, 17041 Format: "", 17042 }, 17043 }, 17044 }, 17045 Required: []string{"name", "value"}, 17046 }, 17047 }, 17048 } 17049 } 17050 17051 func schema_k8sio_api_core_v1_HostAlias(ref common.ReferenceCallback) common.OpenAPIDefinition { 17052 return common.OpenAPIDefinition{ 17053 Schema: spec.Schema{ 17054 SchemaProps: spec.SchemaProps{ 17055 Description: "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.", 17056 Type: []string{"object"}, 17057 Properties: map[string]spec.Schema{ 17058 "ip": { 17059 SchemaProps: spec.SchemaProps{ 17060 Description: "IP address of the host file entry.", 17061 Type: []string{"string"}, 17062 Format: "", 17063 }, 17064 }, 17065 "hostnames": { 17066 SchemaProps: spec.SchemaProps{ 17067 Description: "Hostnames for the above IP address.", 17068 Type: []string{"array"}, 17069 Items: &spec.SchemaOrArray{ 17070 Schema: &spec.Schema{ 17071 SchemaProps: spec.SchemaProps{ 17072 Default: "", 17073 Type: []string{"string"}, 17074 Format: "", 17075 }, 17076 }, 17077 }, 17078 }, 17079 }, 17080 }, 17081 }, 17082 }, 17083 } 17084 } 17085 17086 func schema_k8sio_api_core_v1_HostPathVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 17087 return common.OpenAPIDefinition{ 17088 Schema: spec.Schema{ 17089 SchemaProps: spec.SchemaProps{ 17090 Description: "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.", 17091 Type: []string{"object"}, 17092 Properties: map[string]spec.Schema{ 17093 "path": { 17094 SchemaProps: spec.SchemaProps{ 17095 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", 17096 Default: "", 17097 Type: []string{"string"}, 17098 Format: "", 17099 }, 17100 }, 17101 "type": { 17102 SchemaProps: spec.SchemaProps{ 17103 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", 17104 Type: []string{"string"}, 17105 Format: "", 17106 Enum: []interface{}{"", "BlockDevice", "CharDevice", "Directory", "DirectoryOrCreate", "File", "FileOrCreate", "Socket"}, 17107 }, 17108 }, 17109 }, 17110 Required: []string{"path"}, 17111 }, 17112 }, 17113 } 17114 } 17115 17116 func schema_k8sio_api_core_v1_ISCSIPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 17117 return common.OpenAPIDefinition{ 17118 Schema: spec.Schema{ 17119 SchemaProps: spec.SchemaProps{ 17120 Description: "ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", 17121 Type: []string{"object"}, 17122 Properties: map[string]spec.Schema{ 17123 "targetPortal": { 17124 SchemaProps: spec.SchemaProps{ 17125 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).", 17126 Default: "", 17127 Type: []string{"string"}, 17128 Format: "", 17129 }, 17130 }, 17131 "iqn": { 17132 SchemaProps: spec.SchemaProps{ 17133 Description: "iqn is Target iSCSI Qualified Name.", 17134 Default: "", 17135 Type: []string{"string"}, 17136 Format: "", 17137 }, 17138 }, 17139 "lun": { 17140 SchemaProps: spec.SchemaProps{ 17141 Description: "lun is iSCSI Target Lun number.", 17142 Default: 0, 17143 Type: []string{"integer"}, 17144 Format: "int32", 17145 }, 17146 }, 17147 "iscsiInterface": { 17148 SchemaProps: spec.SchemaProps{ 17149 Description: "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", 17150 Type: []string{"string"}, 17151 Format: "", 17152 }, 17153 }, 17154 "fsType": { 17155 SchemaProps: spec.SchemaProps{ 17156 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", 17157 Type: []string{"string"}, 17158 Format: "", 17159 }, 17160 }, 17161 "readOnly": { 17162 SchemaProps: spec.SchemaProps{ 17163 Description: "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", 17164 Type: []string{"boolean"}, 17165 Format: "", 17166 }, 17167 }, 17168 "portals": { 17169 SchemaProps: spec.SchemaProps{ 17170 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).", 17171 Type: []string{"array"}, 17172 Items: &spec.SchemaOrArray{ 17173 Schema: &spec.Schema{ 17174 SchemaProps: spec.SchemaProps{ 17175 Default: "", 17176 Type: []string{"string"}, 17177 Format: "", 17178 }, 17179 }, 17180 }, 17181 }, 17182 }, 17183 "chapAuthDiscovery": { 17184 SchemaProps: spec.SchemaProps{ 17185 Description: "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication", 17186 Type: []string{"boolean"}, 17187 Format: "", 17188 }, 17189 }, 17190 "chapAuthSession": { 17191 SchemaProps: spec.SchemaProps{ 17192 Description: "chapAuthSession defines whether support iSCSI Session CHAP authentication", 17193 Type: []string{"boolean"}, 17194 Format: "", 17195 }, 17196 }, 17197 "secretRef": { 17198 SchemaProps: spec.SchemaProps{ 17199 Description: "secretRef is the CHAP Secret for iSCSI target and initiator authentication", 17200 Ref: ref("k8s.io/api/core/v1.SecretReference"), 17201 }, 17202 }, 17203 "initiatorName": { 17204 SchemaProps: spec.SchemaProps{ 17205 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.", 17206 Type: []string{"string"}, 17207 Format: "", 17208 }, 17209 }, 17210 }, 17211 Required: []string{"targetPortal", "iqn", "lun"}, 17212 }, 17213 }, 17214 Dependencies: []string{ 17215 "k8s.io/api/core/v1.SecretReference"}, 17216 } 17217 } 17218 17219 func schema_k8sio_api_core_v1_ISCSIVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 17220 return common.OpenAPIDefinition{ 17221 Schema: spec.Schema{ 17222 SchemaProps: spec.SchemaProps{ 17223 Description: "Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", 17224 Type: []string{"object"}, 17225 Properties: map[string]spec.Schema{ 17226 "targetPortal": { 17227 SchemaProps: spec.SchemaProps{ 17228 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).", 17229 Default: "", 17230 Type: []string{"string"}, 17231 Format: "", 17232 }, 17233 }, 17234 "iqn": { 17235 SchemaProps: spec.SchemaProps{ 17236 Description: "iqn is the target iSCSI Qualified Name.", 17237 Default: "", 17238 Type: []string{"string"}, 17239 Format: "", 17240 }, 17241 }, 17242 "lun": { 17243 SchemaProps: spec.SchemaProps{ 17244 Description: "lun represents iSCSI Target Lun number.", 17245 Default: 0, 17246 Type: []string{"integer"}, 17247 Format: "int32", 17248 }, 17249 }, 17250 "iscsiInterface": { 17251 SchemaProps: spec.SchemaProps{ 17252 Description: "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", 17253 Type: []string{"string"}, 17254 Format: "", 17255 }, 17256 }, 17257 "fsType": { 17258 SchemaProps: spec.SchemaProps{ 17259 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", 17260 Type: []string{"string"}, 17261 Format: "", 17262 }, 17263 }, 17264 "readOnly": { 17265 SchemaProps: spec.SchemaProps{ 17266 Description: "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", 17267 Type: []string{"boolean"}, 17268 Format: "", 17269 }, 17270 }, 17271 "portals": { 17272 SchemaProps: spec.SchemaProps{ 17273 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).", 17274 Type: []string{"array"}, 17275 Items: &spec.SchemaOrArray{ 17276 Schema: &spec.Schema{ 17277 SchemaProps: spec.SchemaProps{ 17278 Default: "", 17279 Type: []string{"string"}, 17280 Format: "", 17281 }, 17282 }, 17283 }, 17284 }, 17285 }, 17286 "chapAuthDiscovery": { 17287 SchemaProps: spec.SchemaProps{ 17288 Description: "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication", 17289 Type: []string{"boolean"}, 17290 Format: "", 17291 }, 17292 }, 17293 "chapAuthSession": { 17294 SchemaProps: spec.SchemaProps{ 17295 Description: "chapAuthSession defines whether support iSCSI Session CHAP authentication", 17296 Type: []string{"boolean"}, 17297 Format: "", 17298 }, 17299 }, 17300 "secretRef": { 17301 SchemaProps: spec.SchemaProps{ 17302 Description: "secretRef is the CHAP Secret for iSCSI target and initiator authentication", 17303 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 17304 }, 17305 }, 17306 "initiatorName": { 17307 SchemaProps: spec.SchemaProps{ 17308 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.", 17309 Type: []string{"string"}, 17310 Format: "", 17311 }, 17312 }, 17313 }, 17314 Required: []string{"targetPortal", "iqn", "lun"}, 17315 }, 17316 }, 17317 Dependencies: []string{ 17318 "k8s.io/api/core/v1.LocalObjectReference"}, 17319 } 17320 } 17321 17322 func schema_k8sio_api_core_v1_KeyToPath(ref common.ReferenceCallback) common.OpenAPIDefinition { 17323 return common.OpenAPIDefinition{ 17324 Schema: spec.Schema{ 17325 SchemaProps: spec.SchemaProps{ 17326 Description: "Maps a string key to a path within a volume.", 17327 Type: []string{"object"}, 17328 Properties: map[string]spec.Schema{ 17329 "key": { 17330 SchemaProps: spec.SchemaProps{ 17331 Description: "key is the key to project.", 17332 Default: "", 17333 Type: []string{"string"}, 17334 Format: "", 17335 }, 17336 }, 17337 "path": { 17338 SchemaProps: spec.SchemaProps{ 17339 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 '..'.", 17340 Default: "", 17341 Type: []string{"string"}, 17342 Format: "", 17343 }, 17344 }, 17345 "mode": { 17346 SchemaProps: spec.SchemaProps{ 17347 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.", 17348 Type: []string{"integer"}, 17349 Format: "int32", 17350 }, 17351 }, 17352 }, 17353 Required: []string{"key", "path"}, 17354 }, 17355 }, 17356 } 17357 } 17358 17359 func schema_k8sio_api_core_v1_Lifecycle(ref common.ReferenceCallback) common.OpenAPIDefinition { 17360 return common.OpenAPIDefinition{ 17361 Schema: spec.Schema{ 17362 SchemaProps: spec.SchemaProps{ 17363 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.", 17364 Type: []string{"object"}, 17365 Properties: map[string]spec.Schema{ 17366 "postStart": { 17367 SchemaProps: spec.SchemaProps{ 17368 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", 17369 Ref: ref("k8s.io/api/core/v1.LifecycleHandler"), 17370 }, 17371 }, 17372 "preStop": { 17373 SchemaProps: spec.SchemaProps{ 17374 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", 17375 Ref: ref("k8s.io/api/core/v1.LifecycleHandler"), 17376 }, 17377 }, 17378 }, 17379 }, 17380 }, 17381 Dependencies: []string{ 17382 "k8s.io/api/core/v1.LifecycleHandler"}, 17383 } 17384 } 17385 17386 func schema_k8sio_api_core_v1_LifecycleHandler(ref common.ReferenceCallback) common.OpenAPIDefinition { 17387 return common.OpenAPIDefinition{ 17388 Schema: spec.Schema{ 17389 SchemaProps: spec.SchemaProps{ 17390 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.", 17391 Type: []string{"object"}, 17392 Properties: map[string]spec.Schema{ 17393 "exec": { 17394 SchemaProps: spec.SchemaProps{ 17395 Description: "Exec specifies the action to take.", 17396 Ref: ref("k8s.io/api/core/v1.ExecAction"), 17397 }, 17398 }, 17399 "httpGet": { 17400 SchemaProps: spec.SchemaProps{ 17401 Description: "HTTPGet specifies the http request to perform.", 17402 Ref: ref("k8s.io/api/core/v1.HTTPGetAction"), 17403 }, 17404 }, 17405 "tcpSocket": { 17406 SchemaProps: spec.SchemaProps{ 17407 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.", 17408 Ref: ref("k8s.io/api/core/v1.TCPSocketAction"), 17409 }, 17410 }, 17411 }, 17412 }, 17413 }, 17414 Dependencies: []string{ 17415 "k8s.io/api/core/v1.ExecAction", "k8s.io/api/core/v1.HTTPGetAction", "k8s.io/api/core/v1.TCPSocketAction"}, 17416 } 17417 } 17418 17419 func schema_k8sio_api_core_v1_LimitRange(ref common.ReferenceCallback) common.OpenAPIDefinition { 17420 return common.OpenAPIDefinition{ 17421 Schema: spec.Schema{ 17422 SchemaProps: spec.SchemaProps{ 17423 Description: "LimitRange sets resource usage limits for each kind of resource in a Namespace.", 17424 Type: []string{"object"}, 17425 Properties: map[string]spec.Schema{ 17426 "kind": { 17427 SchemaProps: spec.SchemaProps{ 17428 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 17429 Type: []string{"string"}, 17430 Format: "", 17431 }, 17432 }, 17433 "apiVersion": { 17434 SchemaProps: spec.SchemaProps{ 17435 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 17436 Type: []string{"string"}, 17437 Format: "", 17438 }, 17439 }, 17440 "metadata": { 17441 SchemaProps: spec.SchemaProps{ 17442 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 17443 Default: map[string]interface{}{}, 17444 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 17445 }, 17446 }, 17447 "spec": { 17448 SchemaProps: spec.SchemaProps{ 17449 Description: "Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", 17450 Default: map[string]interface{}{}, 17451 Ref: ref("k8s.io/api/core/v1.LimitRangeSpec"), 17452 }, 17453 }, 17454 }, 17455 }, 17456 }, 17457 Dependencies: []string{ 17458 "k8s.io/api/core/v1.LimitRangeSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 17459 } 17460 } 17461 17462 func schema_k8sio_api_core_v1_LimitRangeItem(ref common.ReferenceCallback) common.OpenAPIDefinition { 17463 return common.OpenAPIDefinition{ 17464 Schema: spec.Schema{ 17465 SchemaProps: spec.SchemaProps{ 17466 Description: "LimitRangeItem defines a min/max usage limit for any resource that matches on kind.", 17467 Type: []string{"object"}, 17468 Properties: map[string]spec.Schema{ 17469 "type": { 17470 SchemaProps: spec.SchemaProps{ 17471 Description: "Type of resource that this limit applies to.", 17472 Default: "", 17473 Type: []string{"string"}, 17474 Format: "", 17475 }, 17476 }, 17477 "max": { 17478 SchemaProps: spec.SchemaProps{ 17479 Description: "Max usage constraints on this kind by resource name.", 17480 Type: []string{"object"}, 17481 AdditionalProperties: &spec.SchemaOrBool{ 17482 Allows: true, 17483 Schema: &spec.Schema{ 17484 SchemaProps: spec.SchemaProps{ 17485 Default: map[string]interface{}{}, 17486 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 17487 }, 17488 }, 17489 }, 17490 }, 17491 }, 17492 "min": { 17493 SchemaProps: spec.SchemaProps{ 17494 Description: "Min usage constraints on this kind by resource name.", 17495 Type: []string{"object"}, 17496 AdditionalProperties: &spec.SchemaOrBool{ 17497 Allows: true, 17498 Schema: &spec.Schema{ 17499 SchemaProps: spec.SchemaProps{ 17500 Default: map[string]interface{}{}, 17501 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 17502 }, 17503 }, 17504 }, 17505 }, 17506 }, 17507 "default": { 17508 SchemaProps: spec.SchemaProps{ 17509 Description: "Default resource requirement limit value by resource name if resource limit is omitted.", 17510 Type: []string{"object"}, 17511 AdditionalProperties: &spec.SchemaOrBool{ 17512 Allows: true, 17513 Schema: &spec.Schema{ 17514 SchemaProps: spec.SchemaProps{ 17515 Default: map[string]interface{}{}, 17516 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 17517 }, 17518 }, 17519 }, 17520 }, 17521 }, 17522 "defaultRequest": { 17523 SchemaProps: spec.SchemaProps{ 17524 Description: "DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.", 17525 Type: []string{"object"}, 17526 AdditionalProperties: &spec.SchemaOrBool{ 17527 Allows: true, 17528 Schema: &spec.Schema{ 17529 SchemaProps: spec.SchemaProps{ 17530 Default: map[string]interface{}{}, 17531 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 17532 }, 17533 }, 17534 }, 17535 }, 17536 }, 17537 "maxLimitRequestRatio": { 17538 SchemaProps: spec.SchemaProps{ 17539 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.", 17540 Type: []string{"object"}, 17541 AdditionalProperties: &spec.SchemaOrBool{ 17542 Allows: true, 17543 Schema: &spec.Schema{ 17544 SchemaProps: spec.SchemaProps{ 17545 Default: map[string]interface{}{}, 17546 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 17547 }, 17548 }, 17549 }, 17550 }, 17551 }, 17552 }, 17553 Required: []string{"type"}, 17554 }, 17555 }, 17556 Dependencies: []string{ 17557 "k8s.io/apimachinery/pkg/api/resource.Quantity"}, 17558 } 17559 } 17560 17561 func schema_k8sio_api_core_v1_LimitRangeList(ref common.ReferenceCallback) common.OpenAPIDefinition { 17562 return common.OpenAPIDefinition{ 17563 Schema: spec.Schema{ 17564 SchemaProps: spec.SchemaProps{ 17565 Description: "LimitRangeList is a list of LimitRange items.", 17566 Type: []string{"object"}, 17567 Properties: map[string]spec.Schema{ 17568 "kind": { 17569 SchemaProps: spec.SchemaProps{ 17570 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 17571 Type: []string{"string"}, 17572 Format: "", 17573 }, 17574 }, 17575 "apiVersion": { 17576 SchemaProps: spec.SchemaProps{ 17577 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 17578 Type: []string{"string"}, 17579 Format: "", 17580 }, 17581 }, 17582 "metadata": { 17583 SchemaProps: spec.SchemaProps{ 17584 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 17585 Default: map[string]interface{}{}, 17586 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 17587 }, 17588 }, 17589 "items": { 17590 SchemaProps: spec.SchemaProps{ 17591 Description: "Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", 17592 Type: []string{"array"}, 17593 Items: &spec.SchemaOrArray{ 17594 Schema: &spec.Schema{ 17595 SchemaProps: spec.SchemaProps{ 17596 Default: map[string]interface{}{}, 17597 Ref: ref("k8s.io/api/core/v1.LimitRange"), 17598 }, 17599 }, 17600 }, 17601 }, 17602 }, 17603 }, 17604 Required: []string{"items"}, 17605 }, 17606 }, 17607 Dependencies: []string{ 17608 "k8s.io/api/core/v1.LimitRange", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 17609 } 17610 } 17611 17612 func schema_k8sio_api_core_v1_LimitRangeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 17613 return common.OpenAPIDefinition{ 17614 Schema: spec.Schema{ 17615 SchemaProps: spec.SchemaProps{ 17616 Description: "LimitRangeSpec defines a min/max usage limit for resources that match on kind.", 17617 Type: []string{"object"}, 17618 Properties: map[string]spec.Schema{ 17619 "limits": { 17620 SchemaProps: spec.SchemaProps{ 17621 Description: "Limits is the list of LimitRangeItem objects that are enforced.", 17622 Type: []string{"array"}, 17623 Items: &spec.SchemaOrArray{ 17624 Schema: &spec.Schema{ 17625 SchemaProps: spec.SchemaProps{ 17626 Default: map[string]interface{}{}, 17627 Ref: ref("k8s.io/api/core/v1.LimitRangeItem"), 17628 }, 17629 }, 17630 }, 17631 }, 17632 }, 17633 }, 17634 Required: []string{"limits"}, 17635 }, 17636 }, 17637 Dependencies: []string{ 17638 "k8s.io/api/core/v1.LimitRangeItem"}, 17639 } 17640 } 17641 17642 func schema_k8sio_api_core_v1_List(ref common.ReferenceCallback) common.OpenAPIDefinition { 17643 return common.OpenAPIDefinition{ 17644 Schema: spec.Schema{ 17645 SchemaProps: spec.SchemaProps{ 17646 Description: "List holds a list of objects, which may not be known by the server.", 17647 Type: []string{"object"}, 17648 Properties: map[string]spec.Schema{ 17649 "kind": { 17650 SchemaProps: spec.SchemaProps{ 17651 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 17652 Type: []string{"string"}, 17653 Format: "", 17654 }, 17655 }, 17656 "apiVersion": { 17657 SchemaProps: spec.SchemaProps{ 17658 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 17659 Type: []string{"string"}, 17660 Format: "", 17661 }, 17662 }, 17663 "metadata": { 17664 SchemaProps: spec.SchemaProps{ 17665 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 17666 Default: map[string]interface{}{}, 17667 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 17668 }, 17669 }, 17670 "items": { 17671 SchemaProps: spec.SchemaProps{ 17672 Description: "List of objects", 17673 Type: []string{"array"}, 17674 Items: &spec.SchemaOrArray{ 17675 Schema: &spec.Schema{ 17676 SchemaProps: spec.SchemaProps{ 17677 Default: map[string]interface{}{}, 17678 Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), 17679 }, 17680 }, 17681 }, 17682 }, 17683 }, 17684 }, 17685 Required: []string{"items"}, 17686 }, 17687 }, 17688 Dependencies: []string{ 17689 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/runtime.RawExtension"}, 17690 } 17691 } 17692 17693 func schema_k8sio_api_core_v1_LoadBalancerIngress(ref common.ReferenceCallback) common.OpenAPIDefinition { 17694 return common.OpenAPIDefinition{ 17695 Schema: spec.Schema{ 17696 SchemaProps: spec.SchemaProps{ 17697 Description: "LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.", 17698 Type: []string{"object"}, 17699 Properties: map[string]spec.Schema{ 17700 "ip": { 17701 SchemaProps: spec.SchemaProps{ 17702 Description: "IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)", 17703 Type: []string{"string"}, 17704 Format: "", 17705 }, 17706 }, 17707 "hostname": { 17708 SchemaProps: spec.SchemaProps{ 17709 Description: "Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)", 17710 Type: []string{"string"}, 17711 Format: "", 17712 }, 17713 }, 17714 "ports": { 17715 VendorExtensible: spec.VendorExtensible{ 17716 Extensions: spec.Extensions{ 17717 "x-kubernetes-list-type": "atomic", 17718 }, 17719 }, 17720 SchemaProps: spec.SchemaProps{ 17721 Description: "Ports is a list of records of service ports If used, every port defined in the service should have an entry in it", 17722 Type: []string{"array"}, 17723 Items: &spec.SchemaOrArray{ 17724 Schema: &spec.Schema{ 17725 SchemaProps: spec.SchemaProps{ 17726 Default: map[string]interface{}{}, 17727 Ref: ref("k8s.io/api/core/v1.PortStatus"), 17728 }, 17729 }, 17730 }, 17731 }, 17732 }, 17733 }, 17734 }, 17735 }, 17736 Dependencies: []string{ 17737 "k8s.io/api/core/v1.PortStatus"}, 17738 } 17739 } 17740 17741 func schema_k8sio_api_core_v1_LoadBalancerStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 17742 return common.OpenAPIDefinition{ 17743 Schema: spec.Schema{ 17744 SchemaProps: spec.SchemaProps{ 17745 Description: "LoadBalancerStatus represents the status of a load-balancer.", 17746 Type: []string{"object"}, 17747 Properties: map[string]spec.Schema{ 17748 "ingress": { 17749 SchemaProps: spec.SchemaProps{ 17750 Description: "Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points.", 17751 Type: []string{"array"}, 17752 Items: &spec.SchemaOrArray{ 17753 Schema: &spec.Schema{ 17754 SchemaProps: spec.SchemaProps{ 17755 Default: map[string]interface{}{}, 17756 Ref: ref("k8s.io/api/core/v1.LoadBalancerIngress"), 17757 }, 17758 }, 17759 }, 17760 }, 17761 }, 17762 }, 17763 }, 17764 }, 17765 Dependencies: []string{ 17766 "k8s.io/api/core/v1.LoadBalancerIngress"}, 17767 } 17768 } 17769 17770 func schema_k8sio_api_core_v1_LocalObjectReference(ref common.ReferenceCallback) common.OpenAPIDefinition { 17771 return common.OpenAPIDefinition{ 17772 Schema: spec.Schema{ 17773 SchemaProps: spec.SchemaProps{ 17774 Description: "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", 17775 Type: []string{"object"}, 17776 Properties: map[string]spec.Schema{ 17777 "name": { 17778 SchemaProps: spec.SchemaProps{ 17779 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", 17780 Type: []string{"string"}, 17781 Format: "", 17782 }, 17783 }, 17784 }, 17785 }, 17786 VendorExtensible: spec.VendorExtensible{ 17787 Extensions: spec.Extensions{ 17788 "x-kubernetes-map-type": "atomic", 17789 }, 17790 }, 17791 }, 17792 } 17793 } 17794 17795 func schema_k8sio_api_core_v1_LocalVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 17796 return common.OpenAPIDefinition{ 17797 Schema: spec.Schema{ 17798 SchemaProps: spec.SchemaProps{ 17799 Description: "Local represents directly-attached storage with node affinity (Beta feature)", 17800 Type: []string{"object"}, 17801 Properties: map[string]spec.Schema{ 17802 "path": { 17803 SchemaProps: spec.SchemaProps{ 17804 Description: "path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...).", 17805 Default: "", 17806 Type: []string{"string"}, 17807 Format: "", 17808 }, 17809 }, 17810 "fsType": { 17811 SchemaProps: spec.SchemaProps{ 17812 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.", 17813 Type: []string{"string"}, 17814 Format: "", 17815 }, 17816 }, 17817 }, 17818 Required: []string{"path"}, 17819 }, 17820 }, 17821 } 17822 } 17823 17824 func schema_k8sio_api_core_v1_NFSVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 17825 return common.OpenAPIDefinition{ 17826 Schema: spec.Schema{ 17827 SchemaProps: spec.SchemaProps{ 17828 Description: "Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.", 17829 Type: []string{"object"}, 17830 Properties: map[string]spec.Schema{ 17831 "server": { 17832 SchemaProps: spec.SchemaProps{ 17833 Description: "server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", 17834 Default: "", 17835 Type: []string{"string"}, 17836 Format: "", 17837 }, 17838 }, 17839 "path": { 17840 SchemaProps: spec.SchemaProps{ 17841 Description: "path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", 17842 Default: "", 17843 Type: []string{"string"}, 17844 Format: "", 17845 }, 17846 }, 17847 "readOnly": { 17848 SchemaProps: spec.SchemaProps{ 17849 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", 17850 Type: []string{"boolean"}, 17851 Format: "", 17852 }, 17853 }, 17854 }, 17855 Required: []string{"server", "path"}, 17856 }, 17857 }, 17858 } 17859 } 17860 17861 func schema_k8sio_api_core_v1_Namespace(ref common.ReferenceCallback) common.OpenAPIDefinition { 17862 return common.OpenAPIDefinition{ 17863 Schema: spec.Schema{ 17864 SchemaProps: spec.SchemaProps{ 17865 Description: "Namespace provides a scope for Names. Use of multiple namespaces is optional.", 17866 Type: []string{"object"}, 17867 Properties: map[string]spec.Schema{ 17868 "kind": { 17869 SchemaProps: spec.SchemaProps{ 17870 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 17871 Type: []string{"string"}, 17872 Format: "", 17873 }, 17874 }, 17875 "apiVersion": { 17876 SchemaProps: spec.SchemaProps{ 17877 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 17878 Type: []string{"string"}, 17879 Format: "", 17880 }, 17881 }, 17882 "metadata": { 17883 SchemaProps: spec.SchemaProps{ 17884 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 17885 Default: map[string]interface{}{}, 17886 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 17887 }, 17888 }, 17889 "spec": { 17890 SchemaProps: spec.SchemaProps{ 17891 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", 17892 Default: map[string]interface{}{}, 17893 Ref: ref("k8s.io/api/core/v1.NamespaceSpec"), 17894 }, 17895 }, 17896 "status": { 17897 SchemaProps: spec.SchemaProps{ 17898 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", 17899 Default: map[string]interface{}{}, 17900 Ref: ref("k8s.io/api/core/v1.NamespaceStatus"), 17901 }, 17902 }, 17903 }, 17904 }, 17905 }, 17906 Dependencies: []string{ 17907 "k8s.io/api/core/v1.NamespaceSpec", "k8s.io/api/core/v1.NamespaceStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 17908 } 17909 } 17910 17911 func schema_k8sio_api_core_v1_NamespaceCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 17912 return common.OpenAPIDefinition{ 17913 Schema: spec.Schema{ 17914 SchemaProps: spec.SchemaProps{ 17915 Description: "NamespaceCondition contains details about state of namespace.", 17916 Type: []string{"object"}, 17917 Properties: map[string]spec.Schema{ 17918 "type": { 17919 SchemaProps: spec.SchemaProps{ 17920 Description: "Type of namespace controller condition.", 17921 Default: "", 17922 Type: []string{"string"}, 17923 Format: "", 17924 }, 17925 }, 17926 "status": { 17927 SchemaProps: spec.SchemaProps{ 17928 Description: "Status of the condition, one of True, False, Unknown.", 17929 Default: "", 17930 Type: []string{"string"}, 17931 Format: "", 17932 }, 17933 }, 17934 "lastTransitionTime": { 17935 SchemaProps: spec.SchemaProps{ 17936 Default: map[string]interface{}{}, 17937 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 17938 }, 17939 }, 17940 "reason": { 17941 SchemaProps: spec.SchemaProps{ 17942 Type: []string{"string"}, 17943 Format: "", 17944 }, 17945 }, 17946 "message": { 17947 SchemaProps: spec.SchemaProps{ 17948 Type: []string{"string"}, 17949 Format: "", 17950 }, 17951 }, 17952 }, 17953 Required: []string{"type", "status"}, 17954 }, 17955 }, 17956 Dependencies: []string{ 17957 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 17958 } 17959 } 17960 17961 func schema_k8sio_api_core_v1_NamespaceList(ref common.ReferenceCallback) common.OpenAPIDefinition { 17962 return common.OpenAPIDefinition{ 17963 Schema: spec.Schema{ 17964 SchemaProps: spec.SchemaProps{ 17965 Description: "NamespaceList is a list of Namespaces.", 17966 Type: []string{"object"}, 17967 Properties: map[string]spec.Schema{ 17968 "kind": { 17969 SchemaProps: spec.SchemaProps{ 17970 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 17971 Type: []string{"string"}, 17972 Format: "", 17973 }, 17974 }, 17975 "apiVersion": { 17976 SchemaProps: spec.SchemaProps{ 17977 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 17978 Type: []string{"string"}, 17979 Format: "", 17980 }, 17981 }, 17982 "metadata": { 17983 SchemaProps: spec.SchemaProps{ 17984 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 17985 Default: map[string]interface{}{}, 17986 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 17987 }, 17988 }, 17989 "items": { 17990 SchemaProps: spec.SchemaProps{ 17991 Description: "Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", 17992 Type: []string{"array"}, 17993 Items: &spec.SchemaOrArray{ 17994 Schema: &spec.Schema{ 17995 SchemaProps: spec.SchemaProps{ 17996 Default: map[string]interface{}{}, 17997 Ref: ref("k8s.io/api/core/v1.Namespace"), 17998 }, 17999 }, 18000 }, 18001 }, 18002 }, 18003 }, 18004 Required: []string{"items"}, 18005 }, 18006 }, 18007 Dependencies: []string{ 18008 "k8s.io/api/core/v1.Namespace", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 18009 } 18010 } 18011 18012 func schema_k8sio_api_core_v1_NamespaceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 18013 return common.OpenAPIDefinition{ 18014 Schema: spec.Schema{ 18015 SchemaProps: spec.SchemaProps{ 18016 Description: "NamespaceSpec describes the attributes on a Namespace.", 18017 Type: []string{"object"}, 18018 Properties: map[string]spec.Schema{ 18019 "finalizers": { 18020 SchemaProps: spec.SchemaProps{ 18021 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/", 18022 Type: []string{"array"}, 18023 Items: &spec.SchemaOrArray{ 18024 Schema: &spec.Schema{ 18025 SchemaProps: spec.SchemaProps{ 18026 Default: "", 18027 Type: []string{"string"}, 18028 Format: "", 18029 }, 18030 }, 18031 }, 18032 }, 18033 }, 18034 }, 18035 }, 18036 }, 18037 } 18038 } 18039 18040 func schema_k8sio_api_core_v1_NamespaceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 18041 return common.OpenAPIDefinition{ 18042 Schema: spec.Schema{ 18043 SchemaProps: spec.SchemaProps{ 18044 Description: "NamespaceStatus is information about the current status of a Namespace.", 18045 Type: []string{"object"}, 18046 Properties: map[string]spec.Schema{ 18047 "phase": { 18048 SchemaProps: spec.SchemaProps{ 18049 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", 18050 Type: []string{"string"}, 18051 Format: "", 18052 Enum: []interface{}{"Active", "Terminating"}, 18053 }, 18054 }, 18055 "conditions": { 18056 VendorExtensible: spec.VendorExtensible{ 18057 Extensions: spec.Extensions{ 18058 "x-kubernetes-patch-merge-key": "type", 18059 "x-kubernetes-patch-strategy": "merge", 18060 }, 18061 }, 18062 SchemaProps: spec.SchemaProps{ 18063 Description: "Represents the latest available observations of a namespace's current state.", 18064 Type: []string{"array"}, 18065 Items: &spec.SchemaOrArray{ 18066 Schema: &spec.Schema{ 18067 SchemaProps: spec.SchemaProps{ 18068 Default: map[string]interface{}{}, 18069 Ref: ref("k8s.io/api/core/v1.NamespaceCondition"), 18070 }, 18071 }, 18072 }, 18073 }, 18074 }, 18075 }, 18076 }, 18077 }, 18078 Dependencies: []string{ 18079 "k8s.io/api/core/v1.NamespaceCondition"}, 18080 } 18081 } 18082 18083 func schema_k8sio_api_core_v1_Node(ref common.ReferenceCallback) common.OpenAPIDefinition { 18084 return common.OpenAPIDefinition{ 18085 Schema: spec.Schema{ 18086 SchemaProps: spec.SchemaProps{ 18087 Description: "Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd).", 18088 Type: []string{"object"}, 18089 Properties: map[string]spec.Schema{ 18090 "kind": { 18091 SchemaProps: spec.SchemaProps{ 18092 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 18093 Type: []string{"string"}, 18094 Format: "", 18095 }, 18096 }, 18097 "apiVersion": { 18098 SchemaProps: spec.SchemaProps{ 18099 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 18100 Type: []string{"string"}, 18101 Format: "", 18102 }, 18103 }, 18104 "metadata": { 18105 SchemaProps: spec.SchemaProps{ 18106 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 18107 Default: map[string]interface{}{}, 18108 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 18109 }, 18110 }, 18111 "spec": { 18112 SchemaProps: spec.SchemaProps{ 18113 Description: "Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", 18114 Default: map[string]interface{}{}, 18115 Ref: ref("k8s.io/api/core/v1.NodeSpec"), 18116 }, 18117 }, 18118 "status": { 18119 SchemaProps: spec.SchemaProps{ 18120 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", 18121 Default: map[string]interface{}{}, 18122 Ref: ref("k8s.io/api/core/v1.NodeStatus"), 18123 }, 18124 }, 18125 }, 18126 }, 18127 }, 18128 Dependencies: []string{ 18129 "k8s.io/api/core/v1.NodeSpec", "k8s.io/api/core/v1.NodeStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 18130 } 18131 } 18132 18133 func schema_k8sio_api_core_v1_NodeAddress(ref common.ReferenceCallback) common.OpenAPIDefinition { 18134 return common.OpenAPIDefinition{ 18135 Schema: spec.Schema{ 18136 SchemaProps: spec.SchemaProps{ 18137 Description: "NodeAddress contains information for the node's address.", 18138 Type: []string{"object"}, 18139 Properties: map[string]spec.Schema{ 18140 "type": { 18141 SchemaProps: spec.SchemaProps{ 18142 Description: "Node address type, one of Hostname, ExternalIP or InternalIP.", 18143 Default: "", 18144 Type: []string{"string"}, 18145 Format: "", 18146 }, 18147 }, 18148 "address": { 18149 SchemaProps: spec.SchemaProps{ 18150 Description: "The node address.", 18151 Default: "", 18152 Type: []string{"string"}, 18153 Format: "", 18154 }, 18155 }, 18156 }, 18157 Required: []string{"type", "address"}, 18158 }, 18159 }, 18160 } 18161 } 18162 18163 func schema_k8sio_api_core_v1_NodeAffinity(ref common.ReferenceCallback) common.OpenAPIDefinition { 18164 return common.OpenAPIDefinition{ 18165 Schema: spec.Schema{ 18166 SchemaProps: spec.SchemaProps{ 18167 Description: "Node affinity is a group of node affinity scheduling rules.", 18168 Type: []string{"object"}, 18169 Properties: map[string]spec.Schema{ 18170 "requiredDuringSchedulingIgnoredDuringExecution": { 18171 SchemaProps: spec.SchemaProps{ 18172 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.", 18173 Ref: ref("k8s.io/api/core/v1.NodeSelector"), 18174 }, 18175 }, 18176 "preferredDuringSchedulingIgnoredDuringExecution": { 18177 SchemaProps: spec.SchemaProps{ 18178 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.", 18179 Type: []string{"array"}, 18180 Items: &spec.SchemaOrArray{ 18181 Schema: &spec.Schema{ 18182 SchemaProps: spec.SchemaProps{ 18183 Default: map[string]interface{}{}, 18184 Ref: ref("k8s.io/api/core/v1.PreferredSchedulingTerm"), 18185 }, 18186 }, 18187 }, 18188 }, 18189 }, 18190 }, 18191 }, 18192 }, 18193 Dependencies: []string{ 18194 "k8s.io/api/core/v1.NodeSelector", "k8s.io/api/core/v1.PreferredSchedulingTerm"}, 18195 } 18196 } 18197 18198 func schema_k8sio_api_core_v1_NodeCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 18199 return common.OpenAPIDefinition{ 18200 Schema: spec.Schema{ 18201 SchemaProps: spec.SchemaProps{ 18202 Description: "NodeCondition contains condition information for a node.", 18203 Type: []string{"object"}, 18204 Properties: map[string]spec.Schema{ 18205 "type": { 18206 SchemaProps: spec.SchemaProps{ 18207 Description: "Type of node condition.", 18208 Default: "", 18209 Type: []string{"string"}, 18210 Format: "", 18211 }, 18212 }, 18213 "status": { 18214 SchemaProps: spec.SchemaProps{ 18215 Description: "Status of the condition, one of True, False, Unknown.", 18216 Default: "", 18217 Type: []string{"string"}, 18218 Format: "", 18219 }, 18220 }, 18221 "lastHeartbeatTime": { 18222 SchemaProps: spec.SchemaProps{ 18223 Description: "Last time we got an update on a given condition.", 18224 Default: map[string]interface{}{}, 18225 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 18226 }, 18227 }, 18228 "lastTransitionTime": { 18229 SchemaProps: spec.SchemaProps{ 18230 Description: "Last time the condition transit from one status to another.", 18231 Default: map[string]interface{}{}, 18232 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 18233 }, 18234 }, 18235 "reason": { 18236 SchemaProps: spec.SchemaProps{ 18237 Description: "(brief) reason for the condition's last transition.", 18238 Type: []string{"string"}, 18239 Format: "", 18240 }, 18241 }, 18242 "message": { 18243 SchemaProps: spec.SchemaProps{ 18244 Description: "Human readable message indicating details about last transition.", 18245 Type: []string{"string"}, 18246 Format: "", 18247 }, 18248 }, 18249 }, 18250 Required: []string{"type", "status"}, 18251 }, 18252 }, 18253 Dependencies: []string{ 18254 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 18255 } 18256 } 18257 18258 func schema_k8sio_api_core_v1_NodeConfigSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 18259 return common.OpenAPIDefinition{ 18260 Schema: spec.Schema{ 18261 SchemaProps: spec.SchemaProps{ 18262 Description: "NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22", 18263 Type: []string{"object"}, 18264 Properties: map[string]spec.Schema{ 18265 "configMap": { 18266 SchemaProps: spec.SchemaProps{ 18267 Description: "ConfigMap is a reference to a Node's ConfigMap", 18268 Ref: ref("k8s.io/api/core/v1.ConfigMapNodeConfigSource"), 18269 }, 18270 }, 18271 }, 18272 }, 18273 }, 18274 Dependencies: []string{ 18275 "k8s.io/api/core/v1.ConfigMapNodeConfigSource"}, 18276 } 18277 } 18278 18279 func schema_k8sio_api_core_v1_NodeConfigStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 18280 return common.OpenAPIDefinition{ 18281 Schema: spec.Schema{ 18282 SchemaProps: spec.SchemaProps{ 18283 Description: "NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.", 18284 Type: []string{"object"}, 18285 Properties: map[string]spec.Schema{ 18286 "assigned": { 18287 SchemaProps: spec.SchemaProps{ 18288 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.", 18289 Ref: ref("k8s.io/api/core/v1.NodeConfigSource"), 18290 }, 18291 }, 18292 "active": { 18293 SchemaProps: spec.SchemaProps{ 18294 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.", 18295 Ref: ref("k8s.io/api/core/v1.NodeConfigSource"), 18296 }, 18297 }, 18298 "lastKnownGood": { 18299 SchemaProps: spec.SchemaProps{ 18300 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.", 18301 Ref: ref("k8s.io/api/core/v1.NodeConfigSource"), 18302 }, 18303 }, 18304 "error": { 18305 SchemaProps: spec.SchemaProps{ 18306 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.", 18307 Type: []string{"string"}, 18308 Format: "", 18309 }, 18310 }, 18311 }, 18312 }, 18313 }, 18314 Dependencies: []string{ 18315 "k8s.io/api/core/v1.NodeConfigSource"}, 18316 } 18317 } 18318 18319 func schema_k8sio_api_core_v1_NodeDaemonEndpoints(ref common.ReferenceCallback) common.OpenAPIDefinition { 18320 return common.OpenAPIDefinition{ 18321 Schema: spec.Schema{ 18322 SchemaProps: spec.SchemaProps{ 18323 Description: "NodeDaemonEndpoints lists ports opened by daemons running on the Node.", 18324 Type: []string{"object"}, 18325 Properties: map[string]spec.Schema{ 18326 "kubeletEndpoint": { 18327 SchemaProps: spec.SchemaProps{ 18328 Description: "Endpoint on which Kubelet is listening.", 18329 Default: map[string]interface{}{}, 18330 Ref: ref("k8s.io/api/core/v1.DaemonEndpoint"), 18331 }, 18332 }, 18333 }, 18334 }, 18335 }, 18336 Dependencies: []string{ 18337 "k8s.io/api/core/v1.DaemonEndpoint"}, 18338 } 18339 } 18340 18341 func schema_k8sio_api_core_v1_NodeList(ref common.ReferenceCallback) common.OpenAPIDefinition { 18342 return common.OpenAPIDefinition{ 18343 Schema: spec.Schema{ 18344 SchemaProps: spec.SchemaProps{ 18345 Description: "NodeList is the whole list of all Nodes which have been registered with master.", 18346 Type: []string{"object"}, 18347 Properties: map[string]spec.Schema{ 18348 "kind": { 18349 SchemaProps: spec.SchemaProps{ 18350 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 18351 Type: []string{"string"}, 18352 Format: "", 18353 }, 18354 }, 18355 "apiVersion": { 18356 SchemaProps: spec.SchemaProps{ 18357 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 18358 Type: []string{"string"}, 18359 Format: "", 18360 }, 18361 }, 18362 "metadata": { 18363 SchemaProps: spec.SchemaProps{ 18364 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 18365 Default: map[string]interface{}{}, 18366 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 18367 }, 18368 }, 18369 "items": { 18370 SchemaProps: spec.SchemaProps{ 18371 Description: "List of nodes", 18372 Type: []string{"array"}, 18373 Items: &spec.SchemaOrArray{ 18374 Schema: &spec.Schema{ 18375 SchemaProps: spec.SchemaProps{ 18376 Default: map[string]interface{}{}, 18377 Ref: ref("k8s.io/api/core/v1.Node"), 18378 }, 18379 }, 18380 }, 18381 }, 18382 }, 18383 }, 18384 Required: []string{"items"}, 18385 }, 18386 }, 18387 Dependencies: []string{ 18388 "k8s.io/api/core/v1.Node", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 18389 } 18390 } 18391 18392 func schema_k8sio_api_core_v1_NodeProxyOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 18393 return common.OpenAPIDefinition{ 18394 Schema: spec.Schema{ 18395 SchemaProps: spec.SchemaProps{ 18396 Description: "NodeProxyOptions is the query options to a Node's proxy call.", 18397 Type: []string{"object"}, 18398 Properties: map[string]spec.Schema{ 18399 "kind": { 18400 SchemaProps: spec.SchemaProps{ 18401 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 18402 Type: []string{"string"}, 18403 Format: "", 18404 }, 18405 }, 18406 "apiVersion": { 18407 SchemaProps: spec.SchemaProps{ 18408 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 18409 Type: []string{"string"}, 18410 Format: "", 18411 }, 18412 }, 18413 "path": { 18414 SchemaProps: spec.SchemaProps{ 18415 Description: "Path is the URL path to use for the current proxy request to node.", 18416 Type: []string{"string"}, 18417 Format: "", 18418 }, 18419 }, 18420 }, 18421 }, 18422 }, 18423 } 18424 } 18425 18426 func schema_k8sio_api_core_v1_NodeResources(ref common.ReferenceCallback) common.OpenAPIDefinition { 18427 return common.OpenAPIDefinition{ 18428 Schema: spec.Schema{ 18429 SchemaProps: spec.SchemaProps{ 18430 Description: "NodeResources is an object for conveying resource information about a node. see https://kubernetes.io/docs/concepts/architecture/nodes/#capacity for more details.", 18431 Type: []string{"object"}, 18432 Properties: map[string]spec.Schema{ 18433 "Capacity": { 18434 SchemaProps: spec.SchemaProps{ 18435 Description: "Capacity represents the available resources of a node", 18436 Type: []string{"object"}, 18437 AdditionalProperties: &spec.SchemaOrBool{ 18438 Allows: true, 18439 Schema: &spec.Schema{ 18440 SchemaProps: spec.SchemaProps{ 18441 Default: map[string]interface{}{}, 18442 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 18443 }, 18444 }, 18445 }, 18446 }, 18447 }, 18448 }, 18449 Required: []string{"Capacity"}, 18450 }, 18451 }, 18452 Dependencies: []string{ 18453 "k8s.io/apimachinery/pkg/api/resource.Quantity"}, 18454 } 18455 } 18456 18457 func schema_k8sio_api_core_v1_NodeSelector(ref common.ReferenceCallback) common.OpenAPIDefinition { 18458 return common.OpenAPIDefinition{ 18459 Schema: spec.Schema{ 18460 SchemaProps: spec.SchemaProps{ 18461 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.", 18462 Type: []string{"object"}, 18463 Properties: map[string]spec.Schema{ 18464 "nodeSelectorTerms": { 18465 SchemaProps: spec.SchemaProps{ 18466 Description: "Required. A list of node selector terms. The terms are ORed.", 18467 Type: []string{"array"}, 18468 Items: &spec.SchemaOrArray{ 18469 Schema: &spec.Schema{ 18470 SchemaProps: spec.SchemaProps{ 18471 Default: map[string]interface{}{}, 18472 Ref: ref("k8s.io/api/core/v1.NodeSelectorTerm"), 18473 }, 18474 }, 18475 }, 18476 }, 18477 }, 18478 }, 18479 Required: []string{"nodeSelectorTerms"}, 18480 }, 18481 VendorExtensible: spec.VendorExtensible{ 18482 Extensions: spec.Extensions{ 18483 "x-kubernetes-map-type": "atomic", 18484 }, 18485 }, 18486 }, 18487 Dependencies: []string{ 18488 "k8s.io/api/core/v1.NodeSelectorTerm"}, 18489 } 18490 } 18491 18492 func schema_k8sio_api_core_v1_NodeSelectorRequirement(ref common.ReferenceCallback) common.OpenAPIDefinition { 18493 return common.OpenAPIDefinition{ 18494 Schema: spec.Schema{ 18495 SchemaProps: spec.SchemaProps{ 18496 Description: "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", 18497 Type: []string{"object"}, 18498 Properties: map[string]spec.Schema{ 18499 "key": { 18500 SchemaProps: spec.SchemaProps{ 18501 Description: "The label key that the selector applies to.", 18502 Default: "", 18503 Type: []string{"string"}, 18504 Format: "", 18505 }, 18506 }, 18507 "operator": { 18508 SchemaProps: spec.SchemaProps{ 18509 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\"`", 18510 Default: "", 18511 Type: []string{"string"}, 18512 Format: "", 18513 Enum: []interface{}{"DoesNotExist", "Exists", "Gt", "In", "Lt", "NotIn"}, 18514 }, 18515 }, 18516 "values": { 18517 SchemaProps: spec.SchemaProps{ 18518 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.", 18519 Type: []string{"array"}, 18520 Items: &spec.SchemaOrArray{ 18521 Schema: &spec.Schema{ 18522 SchemaProps: spec.SchemaProps{ 18523 Default: "", 18524 Type: []string{"string"}, 18525 Format: "", 18526 }, 18527 }, 18528 }, 18529 }, 18530 }, 18531 }, 18532 Required: []string{"key", "operator"}, 18533 }, 18534 }, 18535 } 18536 } 18537 18538 func schema_k8sio_api_core_v1_NodeSelectorTerm(ref common.ReferenceCallback) common.OpenAPIDefinition { 18539 return common.OpenAPIDefinition{ 18540 Schema: spec.Schema{ 18541 SchemaProps: spec.SchemaProps{ 18542 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.", 18543 Type: []string{"object"}, 18544 Properties: map[string]spec.Schema{ 18545 "matchExpressions": { 18546 SchemaProps: spec.SchemaProps{ 18547 Description: "A list of node selector requirements by node's labels.", 18548 Type: []string{"array"}, 18549 Items: &spec.SchemaOrArray{ 18550 Schema: &spec.Schema{ 18551 SchemaProps: spec.SchemaProps{ 18552 Default: map[string]interface{}{}, 18553 Ref: ref("k8s.io/api/core/v1.NodeSelectorRequirement"), 18554 }, 18555 }, 18556 }, 18557 }, 18558 }, 18559 "matchFields": { 18560 SchemaProps: spec.SchemaProps{ 18561 Description: "A list of node selector requirements by node's fields.", 18562 Type: []string{"array"}, 18563 Items: &spec.SchemaOrArray{ 18564 Schema: &spec.Schema{ 18565 SchemaProps: spec.SchemaProps{ 18566 Default: map[string]interface{}{}, 18567 Ref: ref("k8s.io/api/core/v1.NodeSelectorRequirement"), 18568 }, 18569 }, 18570 }, 18571 }, 18572 }, 18573 }, 18574 }, 18575 VendorExtensible: spec.VendorExtensible{ 18576 Extensions: spec.Extensions{ 18577 "x-kubernetes-map-type": "atomic", 18578 }, 18579 }, 18580 }, 18581 Dependencies: []string{ 18582 "k8s.io/api/core/v1.NodeSelectorRequirement"}, 18583 } 18584 } 18585 18586 func schema_k8sio_api_core_v1_NodeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 18587 return common.OpenAPIDefinition{ 18588 Schema: spec.Schema{ 18589 SchemaProps: spec.SchemaProps{ 18590 Description: "NodeSpec describes the attributes that a node is created with.", 18591 Type: []string{"object"}, 18592 Properties: map[string]spec.Schema{ 18593 "podCIDR": { 18594 SchemaProps: spec.SchemaProps{ 18595 Description: "PodCIDR represents the pod IP range assigned to the node.", 18596 Type: []string{"string"}, 18597 Format: "", 18598 }, 18599 }, 18600 "podCIDRs": { 18601 VendorExtensible: spec.VendorExtensible{ 18602 Extensions: spec.Extensions{ 18603 "x-kubernetes-patch-strategy": "merge", 18604 }, 18605 }, 18606 SchemaProps: spec.SchemaProps{ 18607 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.", 18608 Type: []string{"array"}, 18609 Items: &spec.SchemaOrArray{ 18610 Schema: &spec.Schema{ 18611 SchemaProps: spec.SchemaProps{ 18612 Default: "", 18613 Type: []string{"string"}, 18614 Format: "", 18615 }, 18616 }, 18617 }, 18618 }, 18619 }, 18620 "providerID": { 18621 SchemaProps: spec.SchemaProps{ 18622 Description: "ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>", 18623 Type: []string{"string"}, 18624 Format: "", 18625 }, 18626 }, 18627 "unschedulable": { 18628 SchemaProps: spec.SchemaProps{ 18629 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", 18630 Type: []string{"boolean"}, 18631 Format: "", 18632 }, 18633 }, 18634 "taints": { 18635 SchemaProps: spec.SchemaProps{ 18636 Description: "If specified, the node's taints.", 18637 Type: []string{"array"}, 18638 Items: &spec.SchemaOrArray{ 18639 Schema: &spec.Schema{ 18640 SchemaProps: spec.SchemaProps{ 18641 Default: map[string]interface{}{}, 18642 Ref: ref("k8s.io/api/core/v1.Taint"), 18643 }, 18644 }, 18645 }, 18646 }, 18647 }, 18648 "configSource": { 18649 SchemaProps: spec.SchemaProps{ 18650 Description: "Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed.", 18651 Ref: ref("k8s.io/api/core/v1.NodeConfigSource"), 18652 }, 18653 }, 18654 "externalID": { 18655 SchemaProps: spec.SchemaProps{ 18656 Description: "Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966", 18657 Type: []string{"string"}, 18658 Format: "", 18659 }, 18660 }, 18661 }, 18662 }, 18663 }, 18664 Dependencies: []string{ 18665 "k8s.io/api/core/v1.NodeConfigSource", "k8s.io/api/core/v1.Taint"}, 18666 } 18667 } 18668 18669 func schema_k8sio_api_core_v1_NodeStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 18670 return common.OpenAPIDefinition{ 18671 Schema: spec.Schema{ 18672 SchemaProps: spec.SchemaProps{ 18673 Description: "NodeStatus is information about the current status of a node.", 18674 Type: []string{"object"}, 18675 Properties: map[string]spec.Schema{ 18676 "capacity": { 18677 SchemaProps: spec.SchemaProps{ 18678 Description: "Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity", 18679 Type: []string{"object"}, 18680 AdditionalProperties: &spec.SchemaOrBool{ 18681 Allows: true, 18682 Schema: &spec.Schema{ 18683 SchemaProps: spec.SchemaProps{ 18684 Default: map[string]interface{}{}, 18685 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 18686 }, 18687 }, 18688 }, 18689 }, 18690 }, 18691 "allocatable": { 18692 SchemaProps: spec.SchemaProps{ 18693 Description: "Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.", 18694 Type: []string{"object"}, 18695 AdditionalProperties: &spec.SchemaOrBool{ 18696 Allows: true, 18697 Schema: &spec.Schema{ 18698 SchemaProps: spec.SchemaProps{ 18699 Default: map[string]interface{}{}, 18700 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 18701 }, 18702 }, 18703 }, 18704 }, 18705 }, 18706 "phase": { 18707 SchemaProps: spec.SchemaProps{ 18708 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.", 18709 Type: []string{"string"}, 18710 Format: "", 18711 Enum: []interface{}{"Pending", "Running", "Terminated"}, 18712 }, 18713 }, 18714 "conditions": { 18715 VendorExtensible: spec.VendorExtensible{ 18716 Extensions: spec.Extensions{ 18717 "x-kubernetes-patch-merge-key": "type", 18718 "x-kubernetes-patch-strategy": "merge", 18719 }, 18720 }, 18721 SchemaProps: spec.SchemaProps{ 18722 Description: "Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition", 18723 Type: []string{"array"}, 18724 Items: &spec.SchemaOrArray{ 18725 Schema: &spec.Schema{ 18726 SchemaProps: spec.SchemaProps{ 18727 Default: map[string]interface{}{}, 18728 Ref: ref("k8s.io/api/core/v1.NodeCondition"), 18729 }, 18730 }, 18731 }, 18732 }, 18733 }, 18734 "addresses": { 18735 VendorExtensible: spec.VendorExtensible{ 18736 Extensions: spec.Extensions{ 18737 "x-kubernetes-patch-merge-key": "type", 18738 "x-kubernetes-patch-strategy": "merge", 18739 }, 18740 }, 18741 SchemaProps: spec.SchemaProps{ 18742 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).", 18743 Type: []string{"array"}, 18744 Items: &spec.SchemaOrArray{ 18745 Schema: &spec.Schema{ 18746 SchemaProps: spec.SchemaProps{ 18747 Default: map[string]interface{}{}, 18748 Ref: ref("k8s.io/api/core/v1.NodeAddress"), 18749 }, 18750 }, 18751 }, 18752 }, 18753 }, 18754 "daemonEndpoints": { 18755 SchemaProps: spec.SchemaProps{ 18756 Description: "Endpoints of daemons running on the Node.", 18757 Default: map[string]interface{}{}, 18758 Ref: ref("k8s.io/api/core/v1.NodeDaemonEndpoints"), 18759 }, 18760 }, 18761 "nodeInfo": { 18762 SchemaProps: spec.SchemaProps{ 18763 Description: "Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#info", 18764 Default: map[string]interface{}{}, 18765 Ref: ref("k8s.io/api/core/v1.NodeSystemInfo"), 18766 }, 18767 }, 18768 "images": { 18769 SchemaProps: spec.SchemaProps{ 18770 Description: "List of container images on this node", 18771 Type: []string{"array"}, 18772 Items: &spec.SchemaOrArray{ 18773 Schema: &spec.Schema{ 18774 SchemaProps: spec.SchemaProps{ 18775 Default: map[string]interface{}{}, 18776 Ref: ref("k8s.io/api/core/v1.ContainerImage"), 18777 }, 18778 }, 18779 }, 18780 }, 18781 }, 18782 "volumesInUse": { 18783 SchemaProps: spec.SchemaProps{ 18784 Description: "List of attachable volumes in use (mounted) by the node.", 18785 Type: []string{"array"}, 18786 Items: &spec.SchemaOrArray{ 18787 Schema: &spec.Schema{ 18788 SchemaProps: spec.SchemaProps{ 18789 Default: "", 18790 Type: []string{"string"}, 18791 Format: "", 18792 }, 18793 }, 18794 }, 18795 }, 18796 }, 18797 "volumesAttached": { 18798 SchemaProps: spec.SchemaProps{ 18799 Description: "List of volumes that are attached to the node.", 18800 Type: []string{"array"}, 18801 Items: &spec.SchemaOrArray{ 18802 Schema: &spec.Schema{ 18803 SchemaProps: spec.SchemaProps{ 18804 Default: map[string]interface{}{}, 18805 Ref: ref("k8s.io/api/core/v1.AttachedVolume"), 18806 }, 18807 }, 18808 }, 18809 }, 18810 }, 18811 "config": { 18812 SchemaProps: spec.SchemaProps{ 18813 Description: "Status of the config assigned to the node via the dynamic Kubelet config feature.", 18814 Ref: ref("k8s.io/api/core/v1.NodeConfigStatus"), 18815 }, 18816 }, 18817 }, 18818 }, 18819 }, 18820 Dependencies: []string{ 18821 "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"}, 18822 } 18823 } 18824 18825 func schema_k8sio_api_core_v1_NodeSystemInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { 18826 return common.OpenAPIDefinition{ 18827 Schema: spec.Schema{ 18828 SchemaProps: spec.SchemaProps{ 18829 Description: "NodeSystemInfo is a set of ids/uuids to uniquely identify the node.", 18830 Type: []string{"object"}, 18831 Properties: map[string]spec.Schema{ 18832 "machineID": { 18833 SchemaProps: spec.SchemaProps{ 18834 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", 18835 Default: "", 18836 Type: []string{"string"}, 18837 Format: "", 18838 }, 18839 }, 18840 "systemUUID": { 18841 SchemaProps: spec.SchemaProps{ 18842 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", 18843 Default: "", 18844 Type: []string{"string"}, 18845 Format: "", 18846 }, 18847 }, 18848 "bootID": { 18849 SchemaProps: spec.SchemaProps{ 18850 Description: "Boot ID reported by the node.", 18851 Default: "", 18852 Type: []string{"string"}, 18853 Format: "", 18854 }, 18855 }, 18856 "kernelVersion": { 18857 SchemaProps: spec.SchemaProps{ 18858 Description: "Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).", 18859 Default: "", 18860 Type: []string{"string"}, 18861 Format: "", 18862 }, 18863 }, 18864 "osImage": { 18865 SchemaProps: spec.SchemaProps{ 18866 Description: "OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).", 18867 Default: "", 18868 Type: []string{"string"}, 18869 Format: "", 18870 }, 18871 }, 18872 "containerRuntimeVersion": { 18873 SchemaProps: spec.SchemaProps{ 18874 Description: "ContainerRuntime Version reported by the node through runtime remote API (e.g. containerd://1.4.2).", 18875 Default: "", 18876 Type: []string{"string"}, 18877 Format: "", 18878 }, 18879 }, 18880 "kubeletVersion": { 18881 SchemaProps: spec.SchemaProps{ 18882 Description: "Kubelet Version reported by the node.", 18883 Default: "", 18884 Type: []string{"string"}, 18885 Format: "", 18886 }, 18887 }, 18888 "kubeProxyVersion": { 18889 SchemaProps: spec.SchemaProps{ 18890 Description: "KubeProxy Version reported by the node.", 18891 Default: "", 18892 Type: []string{"string"}, 18893 Format: "", 18894 }, 18895 }, 18896 "operatingSystem": { 18897 SchemaProps: spec.SchemaProps{ 18898 Description: "The Operating System reported by the node", 18899 Default: "", 18900 Type: []string{"string"}, 18901 Format: "", 18902 }, 18903 }, 18904 "architecture": { 18905 SchemaProps: spec.SchemaProps{ 18906 Description: "The Architecture reported by the node", 18907 Default: "", 18908 Type: []string{"string"}, 18909 Format: "", 18910 }, 18911 }, 18912 }, 18913 Required: []string{"machineID", "systemUUID", "bootID", "kernelVersion", "osImage", "containerRuntimeVersion", "kubeletVersion", "kubeProxyVersion", "operatingSystem", "architecture"}, 18914 }, 18915 }, 18916 } 18917 } 18918 18919 func schema_k8sio_api_core_v1_ObjectFieldSelector(ref common.ReferenceCallback) common.OpenAPIDefinition { 18920 return common.OpenAPIDefinition{ 18921 Schema: spec.Schema{ 18922 SchemaProps: spec.SchemaProps{ 18923 Description: "ObjectFieldSelector selects an APIVersioned field of an object.", 18924 Type: []string{"object"}, 18925 Properties: map[string]spec.Schema{ 18926 "apiVersion": { 18927 SchemaProps: spec.SchemaProps{ 18928 Description: "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", 18929 Type: []string{"string"}, 18930 Format: "", 18931 }, 18932 }, 18933 "fieldPath": { 18934 SchemaProps: spec.SchemaProps{ 18935 Description: "Path of the field to select in the specified API version.", 18936 Default: "", 18937 Type: []string{"string"}, 18938 Format: "", 18939 }, 18940 }, 18941 }, 18942 Required: []string{"fieldPath"}, 18943 }, 18944 VendorExtensible: spec.VendorExtensible{ 18945 Extensions: spec.Extensions{ 18946 "x-kubernetes-map-type": "atomic", 18947 }, 18948 }, 18949 }, 18950 } 18951 } 18952 18953 func schema_k8sio_api_core_v1_ObjectReference(ref common.ReferenceCallback) common.OpenAPIDefinition { 18954 return common.OpenAPIDefinition{ 18955 Schema: spec.Schema{ 18956 SchemaProps: spec.SchemaProps{ 18957 Description: "ObjectReference contains enough information to let you inspect or modify the referred object.", 18958 Type: []string{"object"}, 18959 Properties: map[string]spec.Schema{ 18960 "kind": { 18961 SchemaProps: spec.SchemaProps{ 18962 Description: "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 18963 Type: []string{"string"}, 18964 Format: "", 18965 }, 18966 }, 18967 "namespace": { 18968 SchemaProps: spec.SchemaProps{ 18969 Description: "Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", 18970 Type: []string{"string"}, 18971 Format: "", 18972 }, 18973 }, 18974 "name": { 18975 SchemaProps: spec.SchemaProps{ 18976 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", 18977 Type: []string{"string"}, 18978 Format: "", 18979 }, 18980 }, 18981 "uid": { 18982 SchemaProps: spec.SchemaProps{ 18983 Description: "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids", 18984 Type: []string{"string"}, 18985 Format: "", 18986 }, 18987 }, 18988 "apiVersion": { 18989 SchemaProps: spec.SchemaProps{ 18990 Description: "API version of the referent.", 18991 Type: []string{"string"}, 18992 Format: "", 18993 }, 18994 }, 18995 "resourceVersion": { 18996 SchemaProps: spec.SchemaProps{ 18997 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", 18998 Type: []string{"string"}, 18999 Format: "", 19000 }, 19001 }, 19002 "fieldPath": { 19003 SchemaProps: spec.SchemaProps{ 19004 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.", 19005 Type: []string{"string"}, 19006 Format: "", 19007 }, 19008 }, 19009 }, 19010 }, 19011 VendorExtensible: spec.VendorExtensible{ 19012 Extensions: spec.Extensions{ 19013 "x-kubernetes-map-type": "atomic", 19014 }, 19015 }, 19016 }, 19017 } 19018 } 19019 19020 func schema_k8sio_api_core_v1_PersistentVolume(ref common.ReferenceCallback) common.OpenAPIDefinition { 19021 return common.OpenAPIDefinition{ 19022 Schema: spec.Schema{ 19023 SchemaProps: spec.SchemaProps{ 19024 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", 19025 Type: []string{"object"}, 19026 Properties: map[string]spec.Schema{ 19027 "kind": { 19028 SchemaProps: spec.SchemaProps{ 19029 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 19030 Type: []string{"string"}, 19031 Format: "", 19032 }, 19033 }, 19034 "apiVersion": { 19035 SchemaProps: spec.SchemaProps{ 19036 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 19037 Type: []string{"string"}, 19038 Format: "", 19039 }, 19040 }, 19041 "metadata": { 19042 SchemaProps: spec.SchemaProps{ 19043 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 19044 Default: map[string]interface{}{}, 19045 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 19046 }, 19047 }, 19048 "spec": { 19049 SchemaProps: spec.SchemaProps{ 19050 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", 19051 Default: map[string]interface{}{}, 19052 Ref: ref("k8s.io/api/core/v1.PersistentVolumeSpec"), 19053 }, 19054 }, 19055 "status": { 19056 SchemaProps: spec.SchemaProps{ 19057 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", 19058 Default: map[string]interface{}{}, 19059 Ref: ref("k8s.io/api/core/v1.PersistentVolumeStatus"), 19060 }, 19061 }, 19062 }, 19063 }, 19064 }, 19065 Dependencies: []string{ 19066 "k8s.io/api/core/v1.PersistentVolumeSpec", "k8s.io/api/core/v1.PersistentVolumeStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 19067 } 19068 } 19069 19070 func schema_k8sio_api_core_v1_PersistentVolumeClaim(ref common.ReferenceCallback) common.OpenAPIDefinition { 19071 return common.OpenAPIDefinition{ 19072 Schema: spec.Schema{ 19073 SchemaProps: spec.SchemaProps{ 19074 Description: "PersistentVolumeClaim is a user's request for and claim to a persistent volume", 19075 Type: []string{"object"}, 19076 Properties: map[string]spec.Schema{ 19077 "kind": { 19078 SchemaProps: spec.SchemaProps{ 19079 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 19080 Type: []string{"string"}, 19081 Format: "", 19082 }, 19083 }, 19084 "apiVersion": { 19085 SchemaProps: spec.SchemaProps{ 19086 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 19087 Type: []string{"string"}, 19088 Format: "", 19089 }, 19090 }, 19091 "metadata": { 19092 SchemaProps: spec.SchemaProps{ 19093 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 19094 Default: map[string]interface{}{}, 19095 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 19096 }, 19097 }, 19098 "spec": { 19099 SchemaProps: spec.SchemaProps{ 19100 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", 19101 Default: map[string]interface{}{}, 19102 Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimSpec"), 19103 }, 19104 }, 19105 "status": { 19106 SchemaProps: spec.SchemaProps{ 19107 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", 19108 Default: map[string]interface{}{}, 19109 Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimStatus"), 19110 }, 19111 }, 19112 }, 19113 }, 19114 }, 19115 Dependencies: []string{ 19116 "k8s.io/api/core/v1.PersistentVolumeClaimSpec", "k8s.io/api/core/v1.PersistentVolumeClaimStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 19117 } 19118 } 19119 19120 func schema_k8sio_api_core_v1_PersistentVolumeClaimCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 19121 return common.OpenAPIDefinition{ 19122 Schema: spec.Schema{ 19123 SchemaProps: spec.SchemaProps{ 19124 Description: "PersistentVolumeClaimCondition contains details about state of pvc", 19125 Type: []string{"object"}, 19126 Properties: map[string]spec.Schema{ 19127 "type": { 19128 SchemaProps: spec.SchemaProps{ 19129 Default: "", 19130 Type: []string{"string"}, 19131 Format: "", 19132 }, 19133 }, 19134 "status": { 19135 SchemaProps: spec.SchemaProps{ 19136 Default: "", 19137 Type: []string{"string"}, 19138 Format: "", 19139 }, 19140 }, 19141 "lastProbeTime": { 19142 SchemaProps: spec.SchemaProps{ 19143 Description: "lastProbeTime is the time we probed the condition.", 19144 Default: map[string]interface{}{}, 19145 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 19146 }, 19147 }, 19148 "lastTransitionTime": { 19149 SchemaProps: spec.SchemaProps{ 19150 Description: "lastTransitionTime is the time the condition transitioned from one status to another.", 19151 Default: map[string]interface{}{}, 19152 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 19153 }, 19154 }, 19155 "reason": { 19156 SchemaProps: spec.SchemaProps{ 19157 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.", 19158 Type: []string{"string"}, 19159 Format: "", 19160 }, 19161 }, 19162 "message": { 19163 SchemaProps: spec.SchemaProps{ 19164 Description: "message is the human-readable message indicating details about last transition.", 19165 Type: []string{"string"}, 19166 Format: "", 19167 }, 19168 }, 19169 }, 19170 Required: []string{"type", "status"}, 19171 }, 19172 }, 19173 Dependencies: []string{ 19174 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 19175 } 19176 } 19177 19178 func schema_k8sio_api_core_v1_PersistentVolumeClaimList(ref common.ReferenceCallback) common.OpenAPIDefinition { 19179 return common.OpenAPIDefinition{ 19180 Schema: spec.Schema{ 19181 SchemaProps: spec.SchemaProps{ 19182 Description: "PersistentVolumeClaimList is a list of PersistentVolumeClaim items.", 19183 Type: []string{"object"}, 19184 Properties: map[string]spec.Schema{ 19185 "kind": { 19186 SchemaProps: spec.SchemaProps{ 19187 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 19188 Type: []string{"string"}, 19189 Format: "", 19190 }, 19191 }, 19192 "apiVersion": { 19193 SchemaProps: spec.SchemaProps{ 19194 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 19195 Type: []string{"string"}, 19196 Format: "", 19197 }, 19198 }, 19199 "metadata": { 19200 SchemaProps: spec.SchemaProps{ 19201 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 19202 Default: map[string]interface{}{}, 19203 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 19204 }, 19205 }, 19206 "items": { 19207 SchemaProps: spec.SchemaProps{ 19208 Description: "items is a list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", 19209 Type: []string{"array"}, 19210 Items: &spec.SchemaOrArray{ 19211 Schema: &spec.Schema{ 19212 SchemaProps: spec.SchemaProps{ 19213 Default: map[string]interface{}{}, 19214 Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaim"), 19215 }, 19216 }, 19217 }, 19218 }, 19219 }, 19220 }, 19221 Required: []string{"items"}, 19222 }, 19223 }, 19224 Dependencies: []string{ 19225 "k8s.io/api/core/v1.PersistentVolumeClaim", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 19226 } 19227 } 19228 19229 func schema_k8sio_api_core_v1_PersistentVolumeClaimSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 19230 return common.OpenAPIDefinition{ 19231 Schema: spec.Schema{ 19232 SchemaProps: spec.SchemaProps{ 19233 Description: "PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes", 19234 Type: []string{"object"}, 19235 Properties: map[string]spec.Schema{ 19236 "accessModes": { 19237 SchemaProps: spec.SchemaProps{ 19238 Description: "accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", 19239 Type: []string{"array"}, 19240 Items: &spec.SchemaOrArray{ 19241 Schema: &spec.Schema{ 19242 SchemaProps: spec.SchemaProps{ 19243 Default: "", 19244 Type: []string{"string"}, 19245 Format: "", 19246 }, 19247 }, 19248 }, 19249 }, 19250 }, 19251 "selector": { 19252 SchemaProps: spec.SchemaProps{ 19253 Description: "selector is a label query over volumes to consider for binding.", 19254 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), 19255 }, 19256 }, 19257 "resources": { 19258 SchemaProps: spec.SchemaProps{ 19259 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", 19260 Default: map[string]interface{}{}, 19261 Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), 19262 }, 19263 }, 19264 "volumeName": { 19265 SchemaProps: spec.SchemaProps{ 19266 Description: "volumeName is the binding reference to the PersistentVolume backing this claim.", 19267 Type: []string{"string"}, 19268 Format: "", 19269 }, 19270 }, 19271 "storageClassName": { 19272 SchemaProps: spec.SchemaProps{ 19273 Description: "storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1", 19274 Type: []string{"string"}, 19275 Format: "", 19276 }, 19277 }, 19278 "volumeMode": { 19279 SchemaProps: spec.SchemaProps{ 19280 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.", 19281 Type: []string{"string"}, 19282 Format: "", 19283 Enum: []interface{}{"Block", "Filesystem"}, 19284 }, 19285 }, 19286 "dataSource": { 19287 SchemaProps: spec.SchemaProps{ 19288 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.", 19289 Ref: ref("k8s.io/api/core/v1.TypedLocalObjectReference"), 19290 }, 19291 }, 19292 "dataSourceRef": { 19293 SchemaProps: spec.SchemaProps{ 19294 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.", 19295 Ref: ref("k8s.io/api/core/v1.TypedObjectReference"), 19296 }, 19297 }, 19298 }, 19299 }, 19300 }, 19301 Dependencies: []string{ 19302 "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"}, 19303 } 19304 } 19305 19306 func schema_k8sio_api_core_v1_PersistentVolumeClaimStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 19307 return common.OpenAPIDefinition{ 19308 Schema: spec.Schema{ 19309 SchemaProps: spec.SchemaProps{ 19310 Description: "PersistentVolumeClaimStatus is the current status of a persistent volume claim.", 19311 Type: []string{"object"}, 19312 Properties: map[string]spec.Schema{ 19313 "phase": { 19314 SchemaProps: spec.SchemaProps{ 19315 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", 19316 Type: []string{"string"}, 19317 Format: "", 19318 Enum: []interface{}{"Bound", "Lost", "Pending"}, 19319 }, 19320 }, 19321 "accessModes": { 19322 SchemaProps: spec.SchemaProps{ 19323 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", 19324 Type: []string{"array"}, 19325 Items: &spec.SchemaOrArray{ 19326 Schema: &spec.Schema{ 19327 SchemaProps: spec.SchemaProps{ 19328 Default: "", 19329 Type: []string{"string"}, 19330 Format: "", 19331 }, 19332 }, 19333 }, 19334 }, 19335 }, 19336 "capacity": { 19337 SchemaProps: spec.SchemaProps{ 19338 Description: "capacity represents the actual resources of the underlying volume.", 19339 Type: []string{"object"}, 19340 AdditionalProperties: &spec.SchemaOrBool{ 19341 Allows: true, 19342 Schema: &spec.Schema{ 19343 SchemaProps: spec.SchemaProps{ 19344 Default: map[string]interface{}{}, 19345 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 19346 }, 19347 }, 19348 }, 19349 }, 19350 }, 19351 "conditions": { 19352 VendorExtensible: spec.VendorExtensible{ 19353 Extensions: spec.Extensions{ 19354 "x-kubernetes-patch-merge-key": "type", 19355 "x-kubernetes-patch-strategy": "merge", 19356 }, 19357 }, 19358 SchemaProps: spec.SchemaProps{ 19359 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'.", 19360 Type: []string{"array"}, 19361 Items: &spec.SchemaOrArray{ 19362 Schema: &spec.Schema{ 19363 SchemaProps: spec.SchemaProps{ 19364 Default: map[string]interface{}{}, 19365 Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimCondition"), 19366 }, 19367 }, 19368 }, 19369 }, 19370 }, 19371 "allocatedResources": { 19372 SchemaProps: spec.SchemaProps{ 19373 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.", 19374 Type: []string{"object"}, 19375 AdditionalProperties: &spec.SchemaOrBool{ 19376 Allows: true, 19377 Schema: &spec.Schema{ 19378 SchemaProps: spec.SchemaProps{ 19379 Default: map[string]interface{}{}, 19380 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 19381 }, 19382 }, 19383 }, 19384 }, 19385 }, 19386 "resizeStatus": { 19387 SchemaProps: spec.SchemaProps{ 19388 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.", 19389 Type: []string{"string"}, 19390 Format: "", 19391 Enum: []interface{}{"", "ControllerExpansionFailed", "ControllerExpansionInProgress", "NodeExpansionFailed", "NodeExpansionInProgress", "NodeExpansionPending"}, 19392 }, 19393 }, 19394 }, 19395 }, 19396 }, 19397 Dependencies: []string{ 19398 "k8s.io/api/core/v1.PersistentVolumeClaimCondition", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, 19399 } 19400 } 19401 19402 func schema_k8sio_api_core_v1_PersistentVolumeClaimTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { 19403 return common.OpenAPIDefinition{ 19404 Schema: spec.Schema{ 19405 SchemaProps: spec.SchemaProps{ 19406 Description: "PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource.", 19407 Type: []string{"object"}, 19408 Properties: map[string]spec.Schema{ 19409 "metadata": { 19410 SchemaProps: spec.SchemaProps{ 19411 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.", 19412 Default: map[string]interface{}{}, 19413 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 19414 }, 19415 }, 19416 "spec": { 19417 SchemaProps: spec.SchemaProps{ 19418 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.", 19419 Default: map[string]interface{}{}, 19420 Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimSpec"), 19421 }, 19422 }, 19423 }, 19424 Required: []string{"spec"}, 19425 }, 19426 }, 19427 Dependencies: []string{ 19428 "k8s.io/api/core/v1.PersistentVolumeClaimSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 19429 } 19430 } 19431 19432 func schema_k8sio_api_core_v1_PersistentVolumeClaimVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 19433 return common.OpenAPIDefinition{ 19434 Schema: spec.Schema{ 19435 SchemaProps: spec.SchemaProps{ 19436 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).", 19437 Type: []string{"object"}, 19438 Properties: map[string]spec.Schema{ 19439 "claimName": { 19440 SchemaProps: spec.SchemaProps{ 19441 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", 19442 Default: "", 19443 Type: []string{"string"}, 19444 Format: "", 19445 }, 19446 }, 19447 "readOnly": { 19448 SchemaProps: spec.SchemaProps{ 19449 Description: "readOnly Will force the ReadOnly setting in VolumeMounts. Default false.", 19450 Type: []string{"boolean"}, 19451 Format: "", 19452 }, 19453 }, 19454 }, 19455 Required: []string{"claimName"}, 19456 }, 19457 }, 19458 } 19459 } 19460 19461 func schema_k8sio_api_core_v1_PersistentVolumeList(ref common.ReferenceCallback) common.OpenAPIDefinition { 19462 return common.OpenAPIDefinition{ 19463 Schema: spec.Schema{ 19464 SchemaProps: spec.SchemaProps{ 19465 Description: "PersistentVolumeList is a list of PersistentVolume items.", 19466 Type: []string{"object"}, 19467 Properties: map[string]spec.Schema{ 19468 "kind": { 19469 SchemaProps: spec.SchemaProps{ 19470 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 19471 Type: []string{"string"}, 19472 Format: "", 19473 }, 19474 }, 19475 "apiVersion": { 19476 SchemaProps: spec.SchemaProps{ 19477 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 19478 Type: []string{"string"}, 19479 Format: "", 19480 }, 19481 }, 19482 "metadata": { 19483 SchemaProps: spec.SchemaProps{ 19484 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 19485 Default: map[string]interface{}{}, 19486 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 19487 }, 19488 }, 19489 "items": { 19490 SchemaProps: spec.SchemaProps{ 19491 Description: "items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes", 19492 Type: []string{"array"}, 19493 Items: &spec.SchemaOrArray{ 19494 Schema: &spec.Schema{ 19495 SchemaProps: spec.SchemaProps{ 19496 Default: map[string]interface{}{}, 19497 Ref: ref("k8s.io/api/core/v1.PersistentVolume"), 19498 }, 19499 }, 19500 }, 19501 }, 19502 }, 19503 }, 19504 Required: []string{"items"}, 19505 }, 19506 }, 19507 Dependencies: []string{ 19508 "k8s.io/api/core/v1.PersistentVolume", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 19509 } 19510 } 19511 19512 func schema_k8sio_api_core_v1_PersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 19513 return common.OpenAPIDefinition{ 19514 Schema: spec.Schema{ 19515 SchemaProps: spec.SchemaProps{ 19516 Description: "PersistentVolumeSource is similar to VolumeSource but meant for the administrator who creates PVs. Exactly one of its members must be set.", 19517 Type: []string{"object"}, 19518 Properties: map[string]spec.Schema{ 19519 "gcePersistentDisk": { 19520 SchemaProps: spec.SchemaProps{ 19521 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", 19522 Ref: ref("k8s.io/api/core/v1.GCEPersistentDiskVolumeSource"), 19523 }, 19524 }, 19525 "awsElasticBlockStore": { 19526 SchemaProps: spec.SchemaProps{ 19527 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", 19528 Ref: ref("k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource"), 19529 }, 19530 }, 19531 "hostPath": { 19532 SchemaProps: spec.SchemaProps{ 19533 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", 19534 Ref: ref("k8s.io/api/core/v1.HostPathVolumeSource"), 19535 }, 19536 }, 19537 "glusterfs": { 19538 SchemaProps: spec.SchemaProps{ 19539 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", 19540 Ref: ref("k8s.io/api/core/v1.GlusterfsPersistentVolumeSource"), 19541 }, 19542 }, 19543 "nfs": { 19544 SchemaProps: spec.SchemaProps{ 19545 Description: "nfs represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", 19546 Ref: ref("k8s.io/api/core/v1.NFSVolumeSource"), 19547 }, 19548 }, 19549 "rbd": { 19550 SchemaProps: spec.SchemaProps{ 19551 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", 19552 Ref: ref("k8s.io/api/core/v1.RBDPersistentVolumeSource"), 19553 }, 19554 }, 19555 "iscsi": { 19556 SchemaProps: spec.SchemaProps{ 19557 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.", 19558 Ref: ref("k8s.io/api/core/v1.ISCSIPersistentVolumeSource"), 19559 }, 19560 }, 19561 "cinder": { 19562 SchemaProps: spec.SchemaProps{ 19563 Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", 19564 Ref: ref("k8s.io/api/core/v1.CinderPersistentVolumeSource"), 19565 }, 19566 }, 19567 "cephfs": { 19568 SchemaProps: spec.SchemaProps{ 19569 Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime", 19570 Ref: ref("k8s.io/api/core/v1.CephFSPersistentVolumeSource"), 19571 }, 19572 }, 19573 "fc": { 19574 SchemaProps: spec.SchemaProps{ 19575 Description: "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", 19576 Ref: ref("k8s.io/api/core/v1.FCVolumeSource"), 19577 }, 19578 }, 19579 "flocker": { 19580 SchemaProps: spec.SchemaProps{ 19581 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", 19582 Ref: ref("k8s.io/api/core/v1.FlockerVolumeSource"), 19583 }, 19584 }, 19585 "flexVolume": { 19586 SchemaProps: spec.SchemaProps{ 19587 Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", 19588 Ref: ref("k8s.io/api/core/v1.FlexPersistentVolumeSource"), 19589 }, 19590 }, 19591 "azureFile": { 19592 SchemaProps: spec.SchemaProps{ 19593 Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod.", 19594 Ref: ref("k8s.io/api/core/v1.AzureFilePersistentVolumeSource"), 19595 }, 19596 }, 19597 "vsphereVolume": { 19598 SchemaProps: spec.SchemaProps{ 19599 Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", 19600 Ref: ref("k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"), 19601 }, 19602 }, 19603 "quobyte": { 19604 SchemaProps: spec.SchemaProps{ 19605 Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime", 19606 Ref: ref("k8s.io/api/core/v1.QuobyteVolumeSource"), 19607 }, 19608 }, 19609 "azureDisk": { 19610 SchemaProps: spec.SchemaProps{ 19611 Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", 19612 Ref: ref("k8s.io/api/core/v1.AzureDiskVolumeSource"), 19613 }, 19614 }, 19615 "photonPersistentDisk": { 19616 SchemaProps: spec.SchemaProps{ 19617 Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", 19618 Ref: ref("k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource"), 19619 }, 19620 }, 19621 "portworxVolume": { 19622 SchemaProps: spec.SchemaProps{ 19623 Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine", 19624 Ref: ref("k8s.io/api/core/v1.PortworxVolumeSource"), 19625 }, 19626 }, 19627 "scaleIO": { 19628 SchemaProps: spec.SchemaProps{ 19629 Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", 19630 Ref: ref("k8s.io/api/core/v1.ScaleIOPersistentVolumeSource"), 19631 }, 19632 }, 19633 "local": { 19634 SchemaProps: spec.SchemaProps{ 19635 Description: "local represents directly-attached storage with node affinity", 19636 Ref: ref("k8s.io/api/core/v1.LocalVolumeSource"), 19637 }, 19638 }, 19639 "storageos": { 19640 SchemaProps: spec.SchemaProps{ 19641 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", 19642 Ref: ref("k8s.io/api/core/v1.StorageOSPersistentVolumeSource"), 19643 }, 19644 }, 19645 "csi": { 19646 SchemaProps: spec.SchemaProps{ 19647 Description: "csi represents storage that is handled by an external CSI driver (Beta feature).", 19648 Ref: ref("k8s.io/api/core/v1.CSIPersistentVolumeSource"), 19649 }, 19650 }, 19651 }, 19652 }, 19653 }, 19654 Dependencies: []string{ 19655 "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"}, 19656 } 19657 } 19658 19659 func schema_k8sio_api_core_v1_PersistentVolumeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 19660 return common.OpenAPIDefinition{ 19661 Schema: spec.Schema{ 19662 SchemaProps: spec.SchemaProps{ 19663 Description: "PersistentVolumeSpec is the specification of a persistent volume.", 19664 Type: []string{"object"}, 19665 Properties: map[string]spec.Schema{ 19666 "capacity": { 19667 SchemaProps: spec.SchemaProps{ 19668 Description: "capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity", 19669 Type: []string{"object"}, 19670 AdditionalProperties: &spec.SchemaOrBool{ 19671 Allows: true, 19672 Schema: &spec.Schema{ 19673 SchemaProps: spec.SchemaProps{ 19674 Default: map[string]interface{}{}, 19675 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 19676 }, 19677 }, 19678 }, 19679 }, 19680 }, 19681 "gcePersistentDisk": { 19682 SchemaProps: spec.SchemaProps{ 19683 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", 19684 Ref: ref("k8s.io/api/core/v1.GCEPersistentDiskVolumeSource"), 19685 }, 19686 }, 19687 "awsElasticBlockStore": { 19688 SchemaProps: spec.SchemaProps{ 19689 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", 19690 Ref: ref("k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource"), 19691 }, 19692 }, 19693 "hostPath": { 19694 SchemaProps: spec.SchemaProps{ 19695 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", 19696 Ref: ref("k8s.io/api/core/v1.HostPathVolumeSource"), 19697 }, 19698 }, 19699 "glusterfs": { 19700 SchemaProps: spec.SchemaProps{ 19701 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", 19702 Ref: ref("k8s.io/api/core/v1.GlusterfsPersistentVolumeSource"), 19703 }, 19704 }, 19705 "nfs": { 19706 SchemaProps: spec.SchemaProps{ 19707 Description: "nfs represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", 19708 Ref: ref("k8s.io/api/core/v1.NFSVolumeSource"), 19709 }, 19710 }, 19711 "rbd": { 19712 SchemaProps: spec.SchemaProps{ 19713 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", 19714 Ref: ref("k8s.io/api/core/v1.RBDPersistentVolumeSource"), 19715 }, 19716 }, 19717 "iscsi": { 19718 SchemaProps: spec.SchemaProps{ 19719 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.", 19720 Ref: ref("k8s.io/api/core/v1.ISCSIPersistentVolumeSource"), 19721 }, 19722 }, 19723 "cinder": { 19724 SchemaProps: spec.SchemaProps{ 19725 Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", 19726 Ref: ref("k8s.io/api/core/v1.CinderPersistentVolumeSource"), 19727 }, 19728 }, 19729 "cephfs": { 19730 SchemaProps: spec.SchemaProps{ 19731 Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime", 19732 Ref: ref("k8s.io/api/core/v1.CephFSPersistentVolumeSource"), 19733 }, 19734 }, 19735 "fc": { 19736 SchemaProps: spec.SchemaProps{ 19737 Description: "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", 19738 Ref: ref("k8s.io/api/core/v1.FCVolumeSource"), 19739 }, 19740 }, 19741 "flocker": { 19742 SchemaProps: spec.SchemaProps{ 19743 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", 19744 Ref: ref("k8s.io/api/core/v1.FlockerVolumeSource"), 19745 }, 19746 }, 19747 "flexVolume": { 19748 SchemaProps: spec.SchemaProps{ 19749 Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", 19750 Ref: ref("k8s.io/api/core/v1.FlexPersistentVolumeSource"), 19751 }, 19752 }, 19753 "azureFile": { 19754 SchemaProps: spec.SchemaProps{ 19755 Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod.", 19756 Ref: ref("k8s.io/api/core/v1.AzureFilePersistentVolumeSource"), 19757 }, 19758 }, 19759 "vsphereVolume": { 19760 SchemaProps: spec.SchemaProps{ 19761 Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", 19762 Ref: ref("k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"), 19763 }, 19764 }, 19765 "quobyte": { 19766 SchemaProps: spec.SchemaProps{ 19767 Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime", 19768 Ref: ref("k8s.io/api/core/v1.QuobyteVolumeSource"), 19769 }, 19770 }, 19771 "azureDisk": { 19772 SchemaProps: spec.SchemaProps{ 19773 Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", 19774 Ref: ref("k8s.io/api/core/v1.AzureDiskVolumeSource"), 19775 }, 19776 }, 19777 "photonPersistentDisk": { 19778 SchemaProps: spec.SchemaProps{ 19779 Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", 19780 Ref: ref("k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource"), 19781 }, 19782 }, 19783 "portworxVolume": { 19784 SchemaProps: spec.SchemaProps{ 19785 Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine", 19786 Ref: ref("k8s.io/api/core/v1.PortworxVolumeSource"), 19787 }, 19788 }, 19789 "scaleIO": { 19790 SchemaProps: spec.SchemaProps{ 19791 Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", 19792 Ref: ref("k8s.io/api/core/v1.ScaleIOPersistentVolumeSource"), 19793 }, 19794 }, 19795 "local": { 19796 SchemaProps: spec.SchemaProps{ 19797 Description: "local represents directly-attached storage with node affinity", 19798 Ref: ref("k8s.io/api/core/v1.LocalVolumeSource"), 19799 }, 19800 }, 19801 "storageos": { 19802 SchemaProps: spec.SchemaProps{ 19803 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", 19804 Ref: ref("k8s.io/api/core/v1.StorageOSPersistentVolumeSource"), 19805 }, 19806 }, 19807 "csi": { 19808 SchemaProps: spec.SchemaProps{ 19809 Description: "csi represents storage that is handled by an external CSI driver (Beta feature).", 19810 Ref: ref("k8s.io/api/core/v1.CSIPersistentVolumeSource"), 19811 }, 19812 }, 19813 "accessModes": { 19814 SchemaProps: spec.SchemaProps{ 19815 Description: "accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes", 19816 Type: []string{"array"}, 19817 Items: &spec.SchemaOrArray{ 19818 Schema: &spec.Schema{ 19819 SchemaProps: spec.SchemaProps{ 19820 Default: "", 19821 Type: []string{"string"}, 19822 Format: "", 19823 }, 19824 }, 19825 }, 19826 }, 19827 }, 19828 "claimRef": { 19829 VendorExtensible: spec.VendorExtensible{ 19830 Extensions: spec.Extensions{ 19831 "x-kubernetes-map-type": "granular", 19832 }, 19833 }, 19834 SchemaProps: spec.SchemaProps{ 19835 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", 19836 Ref: ref("k8s.io/api/core/v1.ObjectReference"), 19837 }, 19838 }, 19839 "persistentVolumeReclaimPolicy": { 19840 SchemaProps: spec.SchemaProps{ 19841 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.", 19842 Type: []string{"string"}, 19843 Format: "", 19844 Enum: []interface{}{"Delete", "Recycle", "Retain"}, 19845 }, 19846 }, 19847 "storageClassName": { 19848 SchemaProps: spec.SchemaProps{ 19849 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.", 19850 Type: []string{"string"}, 19851 Format: "", 19852 }, 19853 }, 19854 "mountOptions": { 19855 SchemaProps: spec.SchemaProps{ 19856 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", 19857 Type: []string{"array"}, 19858 Items: &spec.SchemaOrArray{ 19859 Schema: &spec.Schema{ 19860 SchemaProps: spec.SchemaProps{ 19861 Default: "", 19862 Type: []string{"string"}, 19863 Format: "", 19864 }, 19865 }, 19866 }, 19867 }, 19868 }, 19869 "volumeMode": { 19870 SchemaProps: spec.SchemaProps{ 19871 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.", 19872 Type: []string{"string"}, 19873 Format: "", 19874 Enum: []interface{}{"Block", "Filesystem"}, 19875 }, 19876 }, 19877 "nodeAffinity": { 19878 SchemaProps: spec.SchemaProps{ 19879 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.", 19880 Ref: ref("k8s.io/api/core/v1.VolumeNodeAffinity"), 19881 }, 19882 }, 19883 }, 19884 }, 19885 }, 19886 Dependencies: []string{ 19887 "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"}, 19888 } 19889 } 19890 19891 func schema_k8sio_api_core_v1_PersistentVolumeStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 19892 return common.OpenAPIDefinition{ 19893 Schema: spec.Schema{ 19894 SchemaProps: spec.SchemaProps{ 19895 Description: "PersistentVolumeStatus is the current status of a persistent volume.", 19896 Type: []string{"object"}, 19897 Properties: map[string]spec.Schema{ 19898 "phase": { 19899 SchemaProps: spec.SchemaProps{ 19900 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", 19901 Type: []string{"string"}, 19902 Format: "", 19903 Enum: []interface{}{"Available", "Bound", "Failed", "Pending", "Released"}, 19904 }, 19905 }, 19906 "message": { 19907 SchemaProps: spec.SchemaProps{ 19908 Description: "message is a human-readable message indicating details about why the volume is in this state.", 19909 Type: []string{"string"}, 19910 Format: "", 19911 }, 19912 }, 19913 "reason": { 19914 SchemaProps: spec.SchemaProps{ 19915 Description: "reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.", 19916 Type: []string{"string"}, 19917 Format: "", 19918 }, 19919 }, 19920 }, 19921 }, 19922 }, 19923 } 19924 } 19925 19926 func schema_k8sio_api_core_v1_PhotonPersistentDiskVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 19927 return common.OpenAPIDefinition{ 19928 Schema: spec.Schema{ 19929 SchemaProps: spec.SchemaProps{ 19930 Description: "Represents a Photon Controller persistent disk resource.", 19931 Type: []string{"object"}, 19932 Properties: map[string]spec.Schema{ 19933 "pdID": { 19934 SchemaProps: spec.SchemaProps{ 19935 Description: "pdID is the ID that identifies Photon Controller persistent disk", 19936 Default: "", 19937 Type: []string{"string"}, 19938 Format: "", 19939 }, 19940 }, 19941 "fsType": { 19942 SchemaProps: spec.SchemaProps{ 19943 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.", 19944 Type: []string{"string"}, 19945 Format: "", 19946 }, 19947 }, 19948 }, 19949 Required: []string{"pdID"}, 19950 }, 19951 }, 19952 } 19953 } 19954 19955 func schema_k8sio_api_core_v1_Pod(ref common.ReferenceCallback) common.OpenAPIDefinition { 19956 return common.OpenAPIDefinition{ 19957 Schema: spec.Schema{ 19958 SchemaProps: spec.SchemaProps{ 19959 Description: "Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts.", 19960 Type: []string{"object"}, 19961 Properties: map[string]spec.Schema{ 19962 "kind": { 19963 SchemaProps: spec.SchemaProps{ 19964 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 19965 Type: []string{"string"}, 19966 Format: "", 19967 }, 19968 }, 19969 "apiVersion": { 19970 SchemaProps: spec.SchemaProps{ 19971 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 19972 Type: []string{"string"}, 19973 Format: "", 19974 }, 19975 }, 19976 "metadata": { 19977 SchemaProps: spec.SchemaProps{ 19978 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 19979 Default: map[string]interface{}{}, 19980 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 19981 }, 19982 }, 19983 "spec": { 19984 SchemaProps: spec.SchemaProps{ 19985 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", 19986 Default: map[string]interface{}{}, 19987 Ref: ref("k8s.io/api/core/v1.PodSpec"), 19988 }, 19989 }, 19990 "status": { 19991 SchemaProps: spec.SchemaProps{ 19992 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", 19993 Default: map[string]interface{}{}, 19994 Ref: ref("k8s.io/api/core/v1.PodStatus"), 19995 }, 19996 }, 19997 }, 19998 }, 19999 }, 20000 Dependencies: []string{ 20001 "k8s.io/api/core/v1.PodSpec", "k8s.io/api/core/v1.PodStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 20002 } 20003 } 20004 20005 func schema_k8sio_api_core_v1_PodAffinity(ref common.ReferenceCallback) common.OpenAPIDefinition { 20006 return common.OpenAPIDefinition{ 20007 Schema: spec.Schema{ 20008 SchemaProps: spec.SchemaProps{ 20009 Description: "Pod affinity is a group of inter pod affinity scheduling rules.", 20010 Type: []string{"object"}, 20011 Properties: map[string]spec.Schema{ 20012 "requiredDuringSchedulingIgnoredDuringExecution": { 20013 SchemaProps: spec.SchemaProps{ 20014 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.", 20015 Type: []string{"array"}, 20016 Items: &spec.SchemaOrArray{ 20017 Schema: &spec.Schema{ 20018 SchemaProps: spec.SchemaProps{ 20019 Default: map[string]interface{}{}, 20020 Ref: ref("k8s.io/api/core/v1.PodAffinityTerm"), 20021 }, 20022 }, 20023 }, 20024 }, 20025 }, 20026 "preferredDuringSchedulingIgnoredDuringExecution": { 20027 SchemaProps: spec.SchemaProps{ 20028 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.", 20029 Type: []string{"array"}, 20030 Items: &spec.SchemaOrArray{ 20031 Schema: &spec.Schema{ 20032 SchemaProps: spec.SchemaProps{ 20033 Default: map[string]interface{}{}, 20034 Ref: ref("k8s.io/api/core/v1.WeightedPodAffinityTerm"), 20035 }, 20036 }, 20037 }, 20038 }, 20039 }, 20040 }, 20041 }, 20042 }, 20043 Dependencies: []string{ 20044 "k8s.io/api/core/v1.PodAffinityTerm", "k8s.io/api/core/v1.WeightedPodAffinityTerm"}, 20045 } 20046 } 20047 20048 func schema_k8sio_api_core_v1_PodAffinityTerm(ref common.ReferenceCallback) common.OpenAPIDefinition { 20049 return common.OpenAPIDefinition{ 20050 Schema: spec.Schema{ 20051 SchemaProps: spec.SchemaProps{ 20052 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", 20053 Type: []string{"object"}, 20054 Properties: map[string]spec.Schema{ 20055 "labelSelector": { 20056 SchemaProps: spec.SchemaProps{ 20057 Description: "A label query over a set of resources, in this case pods.", 20058 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), 20059 }, 20060 }, 20061 "namespaces": { 20062 SchemaProps: spec.SchemaProps{ 20063 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\".", 20064 Type: []string{"array"}, 20065 Items: &spec.SchemaOrArray{ 20066 Schema: &spec.Schema{ 20067 SchemaProps: spec.SchemaProps{ 20068 Default: "", 20069 Type: []string{"string"}, 20070 Format: "", 20071 }, 20072 }, 20073 }, 20074 }, 20075 }, 20076 "topologyKey": { 20077 SchemaProps: spec.SchemaProps{ 20078 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.", 20079 Default: "", 20080 Type: []string{"string"}, 20081 Format: "", 20082 }, 20083 }, 20084 "namespaceSelector": { 20085 SchemaProps: spec.SchemaProps{ 20086 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.", 20087 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), 20088 }, 20089 }, 20090 }, 20091 Required: []string{"topologyKey"}, 20092 }, 20093 }, 20094 Dependencies: []string{ 20095 "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, 20096 } 20097 } 20098 20099 func schema_k8sio_api_core_v1_PodAntiAffinity(ref common.ReferenceCallback) common.OpenAPIDefinition { 20100 return common.OpenAPIDefinition{ 20101 Schema: spec.Schema{ 20102 SchemaProps: spec.SchemaProps{ 20103 Description: "Pod anti affinity is a group of inter pod anti affinity scheduling rules.", 20104 Type: []string{"object"}, 20105 Properties: map[string]spec.Schema{ 20106 "requiredDuringSchedulingIgnoredDuringExecution": { 20107 SchemaProps: spec.SchemaProps{ 20108 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.", 20109 Type: []string{"array"}, 20110 Items: &spec.SchemaOrArray{ 20111 Schema: &spec.Schema{ 20112 SchemaProps: spec.SchemaProps{ 20113 Default: map[string]interface{}{}, 20114 Ref: ref("k8s.io/api/core/v1.PodAffinityTerm"), 20115 }, 20116 }, 20117 }, 20118 }, 20119 }, 20120 "preferredDuringSchedulingIgnoredDuringExecution": { 20121 SchemaProps: spec.SchemaProps{ 20122 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.", 20123 Type: []string{"array"}, 20124 Items: &spec.SchemaOrArray{ 20125 Schema: &spec.Schema{ 20126 SchemaProps: spec.SchemaProps{ 20127 Default: map[string]interface{}{}, 20128 Ref: ref("k8s.io/api/core/v1.WeightedPodAffinityTerm"), 20129 }, 20130 }, 20131 }, 20132 }, 20133 }, 20134 }, 20135 }, 20136 }, 20137 Dependencies: []string{ 20138 "k8s.io/api/core/v1.PodAffinityTerm", "k8s.io/api/core/v1.WeightedPodAffinityTerm"}, 20139 } 20140 } 20141 20142 func schema_k8sio_api_core_v1_PodAttachOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 20143 return common.OpenAPIDefinition{ 20144 Schema: spec.Schema{ 20145 SchemaProps: spec.SchemaProps{ 20146 Description: "PodAttachOptions is the query options to a Pod's remote attach call.", 20147 Type: []string{"object"}, 20148 Properties: map[string]spec.Schema{ 20149 "kind": { 20150 SchemaProps: spec.SchemaProps{ 20151 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 20152 Type: []string{"string"}, 20153 Format: "", 20154 }, 20155 }, 20156 "apiVersion": { 20157 SchemaProps: spec.SchemaProps{ 20158 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 20159 Type: []string{"string"}, 20160 Format: "", 20161 }, 20162 }, 20163 "stdin": { 20164 SchemaProps: spec.SchemaProps{ 20165 Description: "Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false.", 20166 Type: []string{"boolean"}, 20167 Format: "", 20168 }, 20169 }, 20170 "stdout": { 20171 SchemaProps: spec.SchemaProps{ 20172 Description: "Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true.", 20173 Type: []string{"boolean"}, 20174 Format: "", 20175 }, 20176 }, 20177 "stderr": { 20178 SchemaProps: spec.SchemaProps{ 20179 Description: "Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true.", 20180 Type: []string{"boolean"}, 20181 Format: "", 20182 }, 20183 }, 20184 "tty": { 20185 SchemaProps: spec.SchemaProps{ 20186 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.", 20187 Type: []string{"boolean"}, 20188 Format: "", 20189 }, 20190 }, 20191 "container": { 20192 SchemaProps: spec.SchemaProps{ 20193 Description: "The container in which to execute the command. Defaults to only container if there is only one container in the pod.", 20194 Type: []string{"string"}, 20195 Format: "", 20196 }, 20197 }, 20198 }, 20199 }, 20200 }, 20201 } 20202 } 20203 20204 func schema_k8sio_api_core_v1_PodCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 20205 return common.OpenAPIDefinition{ 20206 Schema: spec.Schema{ 20207 SchemaProps: spec.SchemaProps{ 20208 Description: "PodCondition contains details for the current condition of this pod.", 20209 Type: []string{"object"}, 20210 Properties: map[string]spec.Schema{ 20211 "type": { 20212 SchemaProps: spec.SchemaProps{ 20213 Description: "Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", 20214 Default: "", 20215 Type: []string{"string"}, 20216 Format: "", 20217 }, 20218 }, 20219 "status": { 20220 SchemaProps: spec.SchemaProps{ 20221 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", 20222 Default: "", 20223 Type: []string{"string"}, 20224 Format: "", 20225 }, 20226 }, 20227 "lastProbeTime": { 20228 SchemaProps: spec.SchemaProps{ 20229 Description: "Last time we probed the condition.", 20230 Default: map[string]interface{}{}, 20231 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 20232 }, 20233 }, 20234 "lastTransitionTime": { 20235 SchemaProps: spec.SchemaProps{ 20236 Description: "Last time the condition transitioned from one status to another.", 20237 Default: map[string]interface{}{}, 20238 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 20239 }, 20240 }, 20241 "reason": { 20242 SchemaProps: spec.SchemaProps{ 20243 Description: "Unique, one-word, CamelCase reason for the condition's last transition.", 20244 Type: []string{"string"}, 20245 Format: "", 20246 }, 20247 }, 20248 "message": { 20249 SchemaProps: spec.SchemaProps{ 20250 Description: "Human-readable message indicating details about last transition.", 20251 Type: []string{"string"}, 20252 Format: "", 20253 }, 20254 }, 20255 }, 20256 Required: []string{"type", "status"}, 20257 }, 20258 }, 20259 Dependencies: []string{ 20260 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 20261 } 20262 } 20263 20264 func schema_k8sio_api_core_v1_PodDNSConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 20265 return common.OpenAPIDefinition{ 20266 Schema: spec.Schema{ 20267 SchemaProps: spec.SchemaProps{ 20268 Description: "PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.", 20269 Type: []string{"object"}, 20270 Properties: map[string]spec.Schema{ 20271 "nameservers": { 20272 SchemaProps: spec.SchemaProps{ 20273 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.", 20274 Type: []string{"array"}, 20275 Items: &spec.SchemaOrArray{ 20276 Schema: &spec.Schema{ 20277 SchemaProps: spec.SchemaProps{ 20278 Default: "", 20279 Type: []string{"string"}, 20280 Format: "", 20281 }, 20282 }, 20283 }, 20284 }, 20285 }, 20286 "searches": { 20287 SchemaProps: spec.SchemaProps{ 20288 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.", 20289 Type: []string{"array"}, 20290 Items: &spec.SchemaOrArray{ 20291 Schema: &spec.Schema{ 20292 SchemaProps: spec.SchemaProps{ 20293 Default: "", 20294 Type: []string{"string"}, 20295 Format: "", 20296 }, 20297 }, 20298 }, 20299 }, 20300 }, 20301 "options": { 20302 SchemaProps: spec.SchemaProps{ 20303 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.", 20304 Type: []string{"array"}, 20305 Items: &spec.SchemaOrArray{ 20306 Schema: &spec.Schema{ 20307 SchemaProps: spec.SchemaProps{ 20308 Default: map[string]interface{}{}, 20309 Ref: ref("k8s.io/api/core/v1.PodDNSConfigOption"), 20310 }, 20311 }, 20312 }, 20313 }, 20314 }, 20315 }, 20316 }, 20317 }, 20318 Dependencies: []string{ 20319 "k8s.io/api/core/v1.PodDNSConfigOption"}, 20320 } 20321 } 20322 20323 func schema_k8sio_api_core_v1_PodDNSConfigOption(ref common.ReferenceCallback) common.OpenAPIDefinition { 20324 return common.OpenAPIDefinition{ 20325 Schema: spec.Schema{ 20326 SchemaProps: spec.SchemaProps{ 20327 Description: "PodDNSConfigOption defines DNS resolver options of a pod.", 20328 Type: []string{"object"}, 20329 Properties: map[string]spec.Schema{ 20330 "name": { 20331 SchemaProps: spec.SchemaProps{ 20332 Description: "Required.", 20333 Type: []string{"string"}, 20334 Format: "", 20335 }, 20336 }, 20337 "value": { 20338 SchemaProps: spec.SchemaProps{ 20339 Type: []string{"string"}, 20340 Format: "", 20341 }, 20342 }, 20343 }, 20344 }, 20345 }, 20346 } 20347 } 20348 20349 func schema_k8sio_api_core_v1_PodExecOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 20350 return common.OpenAPIDefinition{ 20351 Schema: spec.Schema{ 20352 SchemaProps: spec.SchemaProps{ 20353 Description: "PodExecOptions is the query options to a Pod's remote exec call.", 20354 Type: []string{"object"}, 20355 Properties: map[string]spec.Schema{ 20356 "kind": { 20357 SchemaProps: spec.SchemaProps{ 20358 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 20359 Type: []string{"string"}, 20360 Format: "", 20361 }, 20362 }, 20363 "apiVersion": { 20364 SchemaProps: spec.SchemaProps{ 20365 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 20366 Type: []string{"string"}, 20367 Format: "", 20368 }, 20369 }, 20370 "stdin": { 20371 SchemaProps: spec.SchemaProps{ 20372 Description: "Redirect the standard input stream of the pod for this call. Defaults to false.", 20373 Type: []string{"boolean"}, 20374 Format: "", 20375 }, 20376 }, 20377 "stdout": { 20378 SchemaProps: spec.SchemaProps{ 20379 Description: "Redirect the standard output stream of the pod for this call.", 20380 Type: []string{"boolean"}, 20381 Format: "", 20382 }, 20383 }, 20384 "stderr": { 20385 SchemaProps: spec.SchemaProps{ 20386 Description: "Redirect the standard error stream of the pod for this call.", 20387 Type: []string{"boolean"}, 20388 Format: "", 20389 }, 20390 }, 20391 "tty": { 20392 SchemaProps: spec.SchemaProps{ 20393 Description: "TTY if true indicates that a tty will be allocated for the exec call. Defaults to false.", 20394 Type: []string{"boolean"}, 20395 Format: "", 20396 }, 20397 }, 20398 "container": { 20399 SchemaProps: spec.SchemaProps{ 20400 Description: "Container in which to execute the command. Defaults to only container if there is only one container in the pod.", 20401 Type: []string{"string"}, 20402 Format: "", 20403 }, 20404 }, 20405 "command": { 20406 SchemaProps: spec.SchemaProps{ 20407 Description: "Command is the remote command to execute. argv array. Not executed within a shell.", 20408 Type: []string{"array"}, 20409 Items: &spec.SchemaOrArray{ 20410 Schema: &spec.Schema{ 20411 SchemaProps: spec.SchemaProps{ 20412 Default: "", 20413 Type: []string{"string"}, 20414 Format: "", 20415 }, 20416 }, 20417 }, 20418 }, 20419 }, 20420 }, 20421 Required: []string{"command"}, 20422 }, 20423 }, 20424 } 20425 } 20426 20427 func schema_k8sio_api_core_v1_PodIP(ref common.ReferenceCallback) common.OpenAPIDefinition { 20428 return common.OpenAPIDefinition{ 20429 Schema: spec.Schema{ 20430 SchemaProps: spec.SchemaProps{ 20431 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.", 20432 Type: []string{"object"}, 20433 Properties: map[string]spec.Schema{ 20434 "ip": { 20435 SchemaProps: spec.SchemaProps{ 20436 Description: "ip is an IP address (IPv4 or IPv6) assigned to the pod", 20437 Type: []string{"string"}, 20438 Format: "", 20439 }, 20440 }, 20441 }, 20442 }, 20443 }, 20444 } 20445 } 20446 20447 func schema_k8sio_api_core_v1_PodList(ref common.ReferenceCallback) common.OpenAPIDefinition { 20448 return common.OpenAPIDefinition{ 20449 Schema: spec.Schema{ 20450 SchemaProps: spec.SchemaProps{ 20451 Description: "PodList is a list of Pods.", 20452 Type: []string{"object"}, 20453 Properties: map[string]spec.Schema{ 20454 "kind": { 20455 SchemaProps: spec.SchemaProps{ 20456 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 20457 Type: []string{"string"}, 20458 Format: "", 20459 }, 20460 }, 20461 "apiVersion": { 20462 SchemaProps: spec.SchemaProps{ 20463 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 20464 Type: []string{"string"}, 20465 Format: "", 20466 }, 20467 }, 20468 "metadata": { 20469 SchemaProps: spec.SchemaProps{ 20470 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 20471 Default: map[string]interface{}{}, 20472 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 20473 }, 20474 }, 20475 "items": { 20476 SchemaProps: spec.SchemaProps{ 20477 Description: "List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md", 20478 Type: []string{"array"}, 20479 Items: &spec.SchemaOrArray{ 20480 Schema: &spec.Schema{ 20481 SchemaProps: spec.SchemaProps{ 20482 Default: map[string]interface{}{}, 20483 Ref: ref("k8s.io/api/core/v1.Pod"), 20484 }, 20485 }, 20486 }, 20487 }, 20488 }, 20489 }, 20490 Required: []string{"items"}, 20491 }, 20492 }, 20493 Dependencies: []string{ 20494 "k8s.io/api/core/v1.Pod", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 20495 } 20496 } 20497 20498 func schema_k8sio_api_core_v1_PodLogOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 20499 return common.OpenAPIDefinition{ 20500 Schema: spec.Schema{ 20501 SchemaProps: spec.SchemaProps{ 20502 Description: "PodLogOptions is the query options for a Pod's logs REST call.", 20503 Type: []string{"object"}, 20504 Properties: map[string]spec.Schema{ 20505 "kind": { 20506 SchemaProps: spec.SchemaProps{ 20507 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 20508 Type: []string{"string"}, 20509 Format: "", 20510 }, 20511 }, 20512 "apiVersion": { 20513 SchemaProps: spec.SchemaProps{ 20514 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 20515 Type: []string{"string"}, 20516 Format: "", 20517 }, 20518 }, 20519 "container": { 20520 SchemaProps: spec.SchemaProps{ 20521 Description: "The container for which to stream logs. Defaults to only container if there is one container in the pod.", 20522 Type: []string{"string"}, 20523 Format: "", 20524 }, 20525 }, 20526 "follow": { 20527 SchemaProps: spec.SchemaProps{ 20528 Description: "Follow the log stream of the pod. Defaults to false.", 20529 Type: []string{"boolean"}, 20530 Format: "", 20531 }, 20532 }, 20533 "previous": { 20534 SchemaProps: spec.SchemaProps{ 20535 Description: "Return previous terminated container logs. Defaults to false.", 20536 Type: []string{"boolean"}, 20537 Format: "", 20538 }, 20539 }, 20540 "sinceSeconds": { 20541 SchemaProps: spec.SchemaProps{ 20542 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.", 20543 Type: []string{"integer"}, 20544 Format: "int64", 20545 }, 20546 }, 20547 "sinceTime": { 20548 SchemaProps: spec.SchemaProps{ 20549 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.", 20550 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 20551 }, 20552 }, 20553 "timestamps": { 20554 SchemaProps: spec.SchemaProps{ 20555 Description: "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.", 20556 Type: []string{"boolean"}, 20557 Format: "", 20558 }, 20559 }, 20560 "tailLines": { 20561 SchemaProps: spec.SchemaProps{ 20562 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", 20563 Type: []string{"integer"}, 20564 Format: "int64", 20565 }, 20566 }, 20567 "limitBytes": { 20568 SchemaProps: spec.SchemaProps{ 20569 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.", 20570 Type: []string{"integer"}, 20571 Format: "int64", 20572 }, 20573 }, 20574 "insecureSkipTLSVerifyBackend": { 20575 SchemaProps: spec.SchemaProps{ 20576 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).", 20577 Type: []string{"boolean"}, 20578 Format: "", 20579 }, 20580 }, 20581 }, 20582 }, 20583 }, 20584 Dependencies: []string{ 20585 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 20586 } 20587 } 20588 20589 func schema_k8sio_api_core_v1_PodOS(ref common.ReferenceCallback) common.OpenAPIDefinition { 20590 return common.OpenAPIDefinition{ 20591 Schema: spec.Schema{ 20592 SchemaProps: spec.SchemaProps{ 20593 Description: "PodOS defines the OS parameters of a pod.", 20594 Type: []string{"object"}, 20595 Properties: map[string]spec.Schema{ 20596 "name": { 20597 SchemaProps: spec.SchemaProps{ 20598 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", 20599 Default: "", 20600 Type: []string{"string"}, 20601 Format: "", 20602 }, 20603 }, 20604 }, 20605 Required: []string{"name"}, 20606 }, 20607 }, 20608 } 20609 } 20610 20611 func schema_k8sio_api_core_v1_PodPortForwardOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 20612 return common.OpenAPIDefinition{ 20613 Schema: spec.Schema{ 20614 SchemaProps: spec.SchemaProps{ 20615 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.", 20616 Type: []string{"object"}, 20617 Properties: map[string]spec.Schema{ 20618 "kind": { 20619 SchemaProps: spec.SchemaProps{ 20620 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 20621 Type: []string{"string"}, 20622 Format: "", 20623 }, 20624 }, 20625 "apiVersion": { 20626 SchemaProps: spec.SchemaProps{ 20627 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 20628 Type: []string{"string"}, 20629 Format: "", 20630 }, 20631 }, 20632 "ports": { 20633 SchemaProps: spec.SchemaProps{ 20634 Description: "List of ports to forward Required when using WebSockets", 20635 Type: []string{"array"}, 20636 Items: &spec.SchemaOrArray{ 20637 Schema: &spec.Schema{ 20638 SchemaProps: spec.SchemaProps{ 20639 Default: 0, 20640 Type: []string{"integer"}, 20641 Format: "int32", 20642 }, 20643 }, 20644 }, 20645 }, 20646 }, 20647 }, 20648 }, 20649 }, 20650 } 20651 } 20652 20653 func schema_k8sio_api_core_v1_PodProxyOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 20654 return common.OpenAPIDefinition{ 20655 Schema: spec.Schema{ 20656 SchemaProps: spec.SchemaProps{ 20657 Description: "PodProxyOptions is the query options to a Pod's proxy call.", 20658 Type: []string{"object"}, 20659 Properties: map[string]spec.Schema{ 20660 "kind": { 20661 SchemaProps: spec.SchemaProps{ 20662 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 20663 Type: []string{"string"}, 20664 Format: "", 20665 }, 20666 }, 20667 "apiVersion": { 20668 SchemaProps: spec.SchemaProps{ 20669 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 20670 Type: []string{"string"}, 20671 Format: "", 20672 }, 20673 }, 20674 "path": { 20675 SchemaProps: spec.SchemaProps{ 20676 Description: "Path is the URL path to use for the current proxy request to pod.", 20677 Type: []string{"string"}, 20678 Format: "", 20679 }, 20680 }, 20681 }, 20682 }, 20683 }, 20684 } 20685 } 20686 20687 func schema_k8sio_api_core_v1_PodReadinessGate(ref common.ReferenceCallback) common.OpenAPIDefinition { 20688 return common.OpenAPIDefinition{ 20689 Schema: spec.Schema{ 20690 SchemaProps: spec.SchemaProps{ 20691 Description: "PodReadinessGate contains the reference to a pod condition", 20692 Type: []string{"object"}, 20693 Properties: map[string]spec.Schema{ 20694 "conditionType": { 20695 SchemaProps: spec.SchemaProps{ 20696 Description: "ConditionType refers to a condition in the pod's condition list with matching type.", 20697 Default: "", 20698 Type: []string{"string"}, 20699 Format: "", 20700 }, 20701 }, 20702 }, 20703 Required: []string{"conditionType"}, 20704 }, 20705 }, 20706 } 20707 } 20708 20709 func schema_k8sio_api_core_v1_PodResourceClaim(ref common.ReferenceCallback) common.OpenAPIDefinition { 20710 return common.OpenAPIDefinition{ 20711 Schema: spec.Schema{ 20712 SchemaProps: spec.SchemaProps{ 20713 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.", 20714 Type: []string{"object"}, 20715 Properties: map[string]spec.Schema{ 20716 "name": { 20717 SchemaProps: spec.SchemaProps{ 20718 Description: "Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL.", 20719 Default: "", 20720 Type: []string{"string"}, 20721 Format: "", 20722 }, 20723 }, 20724 "source": { 20725 SchemaProps: spec.SchemaProps{ 20726 Description: "Source describes where to find the ResourceClaim.", 20727 Default: map[string]interface{}{}, 20728 Ref: ref("k8s.io/api/core/v1.ClaimSource"), 20729 }, 20730 }, 20731 }, 20732 Required: []string{"name"}, 20733 }, 20734 }, 20735 Dependencies: []string{ 20736 "k8s.io/api/core/v1.ClaimSource"}, 20737 } 20738 } 20739 20740 func schema_k8sio_api_core_v1_PodSchedulingGate(ref common.ReferenceCallback) common.OpenAPIDefinition { 20741 return common.OpenAPIDefinition{ 20742 Schema: spec.Schema{ 20743 SchemaProps: spec.SchemaProps{ 20744 Description: "PodSchedulingGate is associated to a Pod to guard its scheduling.", 20745 Type: []string{"object"}, 20746 Properties: map[string]spec.Schema{ 20747 "name": { 20748 SchemaProps: spec.SchemaProps{ 20749 Description: "Name of the scheduling gate. Each scheduling gate must have a unique name field.", 20750 Default: "", 20751 Type: []string{"string"}, 20752 Format: "", 20753 }, 20754 }, 20755 }, 20756 Required: []string{"name"}, 20757 }, 20758 }, 20759 } 20760 } 20761 20762 func schema_k8sio_api_core_v1_PodSecurityContext(ref common.ReferenceCallback) common.OpenAPIDefinition { 20763 return common.OpenAPIDefinition{ 20764 Schema: spec.Schema{ 20765 SchemaProps: spec.SchemaProps{ 20766 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.", 20767 Type: []string{"object"}, 20768 Properties: map[string]spec.Schema{ 20769 "seLinuxOptions": { 20770 SchemaProps: spec.SchemaProps{ 20771 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.", 20772 Ref: ref("k8s.io/api/core/v1.SELinuxOptions"), 20773 }, 20774 }, 20775 "windowsOptions": { 20776 SchemaProps: spec.SchemaProps{ 20777 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.", 20778 Ref: ref("k8s.io/api/core/v1.WindowsSecurityContextOptions"), 20779 }, 20780 }, 20781 "runAsUser": { 20782 SchemaProps: spec.SchemaProps{ 20783 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.", 20784 Type: []string{"integer"}, 20785 Format: "int64", 20786 }, 20787 }, 20788 "runAsGroup": { 20789 SchemaProps: spec.SchemaProps{ 20790 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.", 20791 Type: []string{"integer"}, 20792 Format: "int64", 20793 }, 20794 }, 20795 "runAsNonRoot": { 20796 SchemaProps: spec.SchemaProps{ 20797 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.", 20798 Type: []string{"boolean"}, 20799 Format: "", 20800 }, 20801 }, 20802 "supplementalGroups": { 20803 SchemaProps: spec.SchemaProps{ 20804 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.", 20805 Type: []string{"array"}, 20806 Items: &spec.SchemaOrArray{ 20807 Schema: &spec.Schema{ 20808 SchemaProps: spec.SchemaProps{ 20809 Default: 0, 20810 Type: []string{"integer"}, 20811 Format: "int64", 20812 }, 20813 }, 20814 }, 20815 }, 20816 }, 20817 "fsGroup": { 20818 SchemaProps: spec.SchemaProps{ 20819 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.", 20820 Type: []string{"integer"}, 20821 Format: "int64", 20822 }, 20823 }, 20824 "sysctls": { 20825 SchemaProps: spec.SchemaProps{ 20826 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.", 20827 Type: []string{"array"}, 20828 Items: &spec.SchemaOrArray{ 20829 Schema: &spec.Schema{ 20830 SchemaProps: spec.SchemaProps{ 20831 Default: map[string]interface{}{}, 20832 Ref: ref("k8s.io/api/core/v1.Sysctl"), 20833 }, 20834 }, 20835 }, 20836 }, 20837 }, 20838 "fsGroupChangePolicy": { 20839 SchemaProps: spec.SchemaProps{ 20840 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.", 20841 Type: []string{"string"}, 20842 Format: "", 20843 Enum: []interface{}{"Always", "OnRootMismatch"}, 20844 }, 20845 }, 20846 "seccompProfile": { 20847 SchemaProps: spec.SchemaProps{ 20848 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.", 20849 Ref: ref("k8s.io/api/core/v1.SeccompProfile"), 20850 }, 20851 }, 20852 }, 20853 }, 20854 }, 20855 Dependencies: []string{ 20856 "k8s.io/api/core/v1.SELinuxOptions", "k8s.io/api/core/v1.SeccompProfile", "k8s.io/api/core/v1.Sysctl", "k8s.io/api/core/v1.WindowsSecurityContextOptions"}, 20857 } 20858 } 20859 20860 func schema_k8sio_api_core_v1_PodSignature(ref common.ReferenceCallback) common.OpenAPIDefinition { 20861 return common.OpenAPIDefinition{ 20862 Schema: spec.Schema{ 20863 SchemaProps: spec.SchemaProps{ 20864 Description: "Describes the class of pods that should avoid this node. Exactly one field should be set.", 20865 Type: []string{"object"}, 20866 Properties: map[string]spec.Schema{ 20867 "podController": { 20868 SchemaProps: spec.SchemaProps{ 20869 Description: "Reference to controller whose pods should avoid this node.", 20870 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference"), 20871 }, 20872 }, 20873 }, 20874 }, 20875 }, 20876 Dependencies: []string{ 20877 "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference"}, 20878 } 20879 } 20880 20881 func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 20882 return common.OpenAPIDefinition{ 20883 Schema: spec.Schema{ 20884 SchemaProps: spec.SchemaProps{ 20885 Description: "PodSpec is a description of a pod.", 20886 Type: []string{"object"}, 20887 Properties: map[string]spec.Schema{ 20888 "volumes": { 20889 VendorExtensible: spec.VendorExtensible{ 20890 Extensions: spec.Extensions{ 20891 "x-kubernetes-patch-merge-key": "name", 20892 "x-kubernetes-patch-strategy": "merge,retainKeys", 20893 }, 20894 }, 20895 SchemaProps: spec.SchemaProps{ 20896 Description: "List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes", 20897 Type: []string{"array"}, 20898 Items: &spec.SchemaOrArray{ 20899 Schema: &spec.Schema{ 20900 SchemaProps: spec.SchemaProps{ 20901 Default: map[string]interface{}{}, 20902 Ref: ref("k8s.io/api/core/v1.Volume"), 20903 }, 20904 }, 20905 }, 20906 }, 20907 }, 20908 "initContainers": { 20909 VendorExtensible: spec.VendorExtensible{ 20910 Extensions: spec.Extensions{ 20911 "x-kubernetes-patch-merge-key": "name", 20912 "x-kubernetes-patch-strategy": "merge", 20913 }, 20914 }, 20915 SchemaProps: spec.SchemaProps{ 20916 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/", 20917 Type: []string{"array"}, 20918 Items: &spec.SchemaOrArray{ 20919 Schema: &spec.Schema{ 20920 SchemaProps: spec.SchemaProps{ 20921 Default: map[string]interface{}{}, 20922 Ref: ref("k8s.io/api/core/v1.Container"), 20923 }, 20924 }, 20925 }, 20926 }, 20927 }, 20928 "containers": { 20929 VendorExtensible: spec.VendorExtensible{ 20930 Extensions: spec.Extensions{ 20931 "x-kubernetes-patch-merge-key": "name", 20932 "x-kubernetes-patch-strategy": "merge", 20933 }, 20934 }, 20935 SchemaProps: spec.SchemaProps{ 20936 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.", 20937 Type: []string{"array"}, 20938 Items: &spec.SchemaOrArray{ 20939 Schema: &spec.Schema{ 20940 SchemaProps: spec.SchemaProps{ 20941 Default: map[string]interface{}{}, 20942 Ref: ref("k8s.io/api/core/v1.Container"), 20943 }, 20944 }, 20945 }, 20946 }, 20947 }, 20948 "ephemeralContainers": { 20949 VendorExtensible: spec.VendorExtensible{ 20950 Extensions: spec.Extensions{ 20951 "x-kubernetes-patch-merge-key": "name", 20952 "x-kubernetes-patch-strategy": "merge", 20953 }, 20954 }, 20955 SchemaProps: spec.SchemaProps{ 20956 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.", 20957 Type: []string{"array"}, 20958 Items: &spec.SchemaOrArray{ 20959 Schema: &spec.Schema{ 20960 SchemaProps: spec.SchemaProps{ 20961 Default: map[string]interface{}{}, 20962 Ref: ref("k8s.io/api/core/v1.EphemeralContainer"), 20963 }, 20964 }, 20965 }, 20966 }, 20967 }, 20968 "restartPolicy": { 20969 SchemaProps: spec.SchemaProps{ 20970 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\"`", 20971 Type: []string{"string"}, 20972 Format: "", 20973 Enum: []interface{}{"Always", "Never", "OnFailure"}, 20974 }, 20975 }, 20976 "terminationGracePeriodSeconds": { 20977 SchemaProps: spec.SchemaProps{ 20978 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.", 20979 Type: []string{"integer"}, 20980 Format: "int64", 20981 }, 20982 }, 20983 "activeDeadlineSeconds": { 20984 SchemaProps: spec.SchemaProps{ 20985 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.", 20986 Type: []string{"integer"}, 20987 Format: "int64", 20988 }, 20989 }, 20990 "dnsPolicy": { 20991 SchemaProps: spec.SchemaProps{ 20992 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.", 20993 Type: []string{"string"}, 20994 Format: "", 20995 Enum: []interface{}{"ClusterFirst", "ClusterFirstWithHostNet", "Default", "None"}, 20996 }, 20997 }, 20998 "nodeSelector": { 20999 VendorExtensible: spec.VendorExtensible{ 21000 Extensions: spec.Extensions{ 21001 "x-kubernetes-map-type": "atomic", 21002 }, 21003 }, 21004 SchemaProps: spec.SchemaProps{ 21005 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/", 21006 Type: []string{"object"}, 21007 AdditionalProperties: &spec.SchemaOrBool{ 21008 Allows: true, 21009 Schema: &spec.Schema{ 21010 SchemaProps: spec.SchemaProps{ 21011 Default: "", 21012 Type: []string{"string"}, 21013 Format: "", 21014 }, 21015 }, 21016 }, 21017 }, 21018 }, 21019 "serviceAccountName": { 21020 SchemaProps: spec.SchemaProps{ 21021 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/", 21022 Type: []string{"string"}, 21023 Format: "", 21024 }, 21025 }, 21026 "serviceAccount": { 21027 SchemaProps: spec.SchemaProps{ 21028 Description: "DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.", 21029 Type: []string{"string"}, 21030 Format: "", 21031 }, 21032 }, 21033 "automountServiceAccountToken": { 21034 SchemaProps: spec.SchemaProps{ 21035 Description: "AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.", 21036 Type: []string{"boolean"}, 21037 Format: "", 21038 }, 21039 }, 21040 "nodeName": { 21041 SchemaProps: spec.SchemaProps{ 21042 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.", 21043 Type: []string{"string"}, 21044 Format: "", 21045 }, 21046 }, 21047 "hostNetwork": { 21048 SchemaProps: spec.SchemaProps{ 21049 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.", 21050 Type: []string{"boolean"}, 21051 Format: "", 21052 }, 21053 }, 21054 "hostPID": { 21055 SchemaProps: spec.SchemaProps{ 21056 Description: "Use the host's pid namespace. Optional: Default to false.", 21057 Type: []string{"boolean"}, 21058 Format: "", 21059 }, 21060 }, 21061 "hostIPC": { 21062 SchemaProps: spec.SchemaProps{ 21063 Description: "Use the host's ipc namespace. Optional: Default to false.", 21064 Type: []string{"boolean"}, 21065 Format: "", 21066 }, 21067 }, 21068 "shareProcessNamespace": { 21069 SchemaProps: spec.SchemaProps{ 21070 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.", 21071 Type: []string{"boolean"}, 21072 Format: "", 21073 }, 21074 }, 21075 "securityContext": { 21076 SchemaProps: spec.SchemaProps{ 21077 Description: "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field.", 21078 Ref: ref("k8s.io/api/core/v1.PodSecurityContext"), 21079 }, 21080 }, 21081 "imagePullSecrets": { 21082 VendorExtensible: spec.VendorExtensible{ 21083 Extensions: spec.Extensions{ 21084 "x-kubernetes-patch-merge-key": "name", 21085 "x-kubernetes-patch-strategy": "merge", 21086 }, 21087 }, 21088 SchemaProps: spec.SchemaProps{ 21089 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", 21090 Type: []string{"array"}, 21091 Items: &spec.SchemaOrArray{ 21092 Schema: &spec.Schema{ 21093 SchemaProps: spec.SchemaProps{ 21094 Default: map[string]interface{}{}, 21095 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 21096 }, 21097 }, 21098 }, 21099 }, 21100 }, 21101 "hostname": { 21102 SchemaProps: spec.SchemaProps{ 21103 Description: "Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.", 21104 Type: []string{"string"}, 21105 Format: "", 21106 }, 21107 }, 21108 "subdomain": { 21109 SchemaProps: spec.SchemaProps{ 21110 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.", 21111 Type: []string{"string"}, 21112 Format: "", 21113 }, 21114 }, 21115 "affinity": { 21116 SchemaProps: spec.SchemaProps{ 21117 Description: "If specified, the pod's scheduling constraints", 21118 Ref: ref("k8s.io/api/core/v1.Affinity"), 21119 }, 21120 }, 21121 "schedulerName": { 21122 SchemaProps: spec.SchemaProps{ 21123 Description: "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.", 21124 Type: []string{"string"}, 21125 Format: "", 21126 }, 21127 }, 21128 "tolerations": { 21129 SchemaProps: spec.SchemaProps{ 21130 Description: "If specified, the pod's tolerations.", 21131 Type: []string{"array"}, 21132 Items: &spec.SchemaOrArray{ 21133 Schema: &spec.Schema{ 21134 SchemaProps: spec.SchemaProps{ 21135 Default: map[string]interface{}{}, 21136 Ref: ref("k8s.io/api/core/v1.Toleration"), 21137 }, 21138 }, 21139 }, 21140 }, 21141 }, 21142 "hostAliases": { 21143 VendorExtensible: spec.VendorExtensible{ 21144 Extensions: spec.Extensions{ 21145 "x-kubernetes-patch-merge-key": "ip", 21146 "x-kubernetes-patch-strategy": "merge", 21147 }, 21148 }, 21149 SchemaProps: spec.SchemaProps{ 21150 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.", 21151 Type: []string{"array"}, 21152 Items: &spec.SchemaOrArray{ 21153 Schema: &spec.Schema{ 21154 SchemaProps: spec.SchemaProps{ 21155 Default: map[string]interface{}{}, 21156 Ref: ref("k8s.io/api/core/v1.HostAlias"), 21157 }, 21158 }, 21159 }, 21160 }, 21161 }, 21162 "priorityClassName": { 21163 SchemaProps: spec.SchemaProps{ 21164 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.", 21165 Type: []string{"string"}, 21166 Format: "", 21167 }, 21168 }, 21169 "priority": { 21170 SchemaProps: spec.SchemaProps{ 21171 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.", 21172 Type: []string{"integer"}, 21173 Format: "int32", 21174 }, 21175 }, 21176 "dnsConfig": { 21177 SchemaProps: spec.SchemaProps{ 21178 Description: "Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy.", 21179 Ref: ref("k8s.io/api/core/v1.PodDNSConfig"), 21180 }, 21181 }, 21182 "readinessGates": { 21183 SchemaProps: spec.SchemaProps{ 21184 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", 21185 Type: []string{"array"}, 21186 Items: &spec.SchemaOrArray{ 21187 Schema: &spec.Schema{ 21188 SchemaProps: spec.SchemaProps{ 21189 Default: map[string]interface{}{}, 21190 Ref: ref("k8s.io/api/core/v1.PodReadinessGate"), 21191 }, 21192 }, 21193 }, 21194 }, 21195 }, 21196 "runtimeClassName": { 21197 SchemaProps: spec.SchemaProps{ 21198 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", 21199 Type: []string{"string"}, 21200 Format: "", 21201 }, 21202 }, 21203 "enableServiceLinks": { 21204 SchemaProps: spec.SchemaProps{ 21205 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.", 21206 Type: []string{"boolean"}, 21207 Format: "", 21208 }, 21209 }, 21210 "preemptionPolicy": { 21211 SchemaProps: spec.SchemaProps{ 21212 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.", 21213 Type: []string{"string"}, 21214 Format: "", 21215 Enum: []interface{}{"Never", "PreemptLowerPriority"}, 21216 }, 21217 }, 21218 "overhead": { 21219 SchemaProps: spec.SchemaProps{ 21220 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", 21221 Type: []string{"object"}, 21222 AdditionalProperties: &spec.SchemaOrBool{ 21223 Allows: true, 21224 Schema: &spec.Schema{ 21225 SchemaProps: spec.SchemaProps{ 21226 Default: map[string]interface{}{}, 21227 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 21228 }, 21229 }, 21230 }, 21231 }, 21232 }, 21233 "topologySpreadConstraints": { 21234 VendorExtensible: spec.VendorExtensible{ 21235 Extensions: spec.Extensions{ 21236 "x-kubernetes-list-map-keys": []interface{}{ 21237 "topologyKey", 21238 "whenUnsatisfiable", 21239 }, 21240 "x-kubernetes-list-type": "map", 21241 "x-kubernetes-patch-merge-key": "topologyKey", 21242 "x-kubernetes-patch-strategy": "merge", 21243 }, 21244 }, 21245 SchemaProps: spec.SchemaProps{ 21246 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.", 21247 Type: []string{"array"}, 21248 Items: &spec.SchemaOrArray{ 21249 Schema: &spec.Schema{ 21250 SchemaProps: spec.SchemaProps{ 21251 Default: map[string]interface{}{}, 21252 Ref: ref("k8s.io/api/core/v1.TopologySpreadConstraint"), 21253 }, 21254 }, 21255 }, 21256 }, 21257 }, 21258 "setHostnameAsFQDN": { 21259 SchemaProps: spec.SchemaProps{ 21260 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.", 21261 Type: []string{"boolean"}, 21262 Format: "", 21263 }, 21264 }, 21265 "os": { 21266 SchemaProps: spec.SchemaProps{ 21267 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", 21268 Ref: ref("k8s.io/api/core/v1.PodOS"), 21269 }, 21270 }, 21271 "hostUsers": { 21272 SchemaProps: spec.SchemaProps{ 21273 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.", 21274 Type: []string{"boolean"}, 21275 Format: "", 21276 }, 21277 }, 21278 "schedulingGates": { 21279 VendorExtensible: spec.VendorExtensible{ 21280 Extensions: spec.Extensions{ 21281 "x-kubernetes-list-map-keys": []interface{}{ 21282 "name", 21283 }, 21284 "x-kubernetes-list-type": "map", 21285 "x-kubernetes-patch-merge-key": "name", 21286 "x-kubernetes-patch-strategy": "merge", 21287 }, 21288 }, 21289 SchemaProps: spec.SchemaProps{ 21290 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.", 21291 Type: []string{"array"}, 21292 Items: &spec.SchemaOrArray{ 21293 Schema: &spec.Schema{ 21294 SchemaProps: spec.SchemaProps{ 21295 Default: map[string]interface{}{}, 21296 Ref: ref("k8s.io/api/core/v1.PodSchedulingGate"), 21297 }, 21298 }, 21299 }, 21300 }, 21301 }, 21302 "resourceClaims": { 21303 VendorExtensible: spec.VendorExtensible{ 21304 Extensions: spec.Extensions{ 21305 "x-kubernetes-list-map-keys": []interface{}{ 21306 "name", 21307 }, 21308 "x-kubernetes-list-type": "map", 21309 "x-kubernetes-patch-merge-key": "name", 21310 "x-kubernetes-patch-strategy": "merge,retainKeys", 21311 }, 21312 }, 21313 SchemaProps: spec.SchemaProps{ 21314 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.", 21315 Type: []string{"array"}, 21316 Items: &spec.SchemaOrArray{ 21317 Schema: &spec.Schema{ 21318 SchemaProps: spec.SchemaProps{ 21319 Default: map[string]interface{}{}, 21320 Ref: ref("k8s.io/api/core/v1.PodResourceClaim"), 21321 }, 21322 }, 21323 }, 21324 }, 21325 }, 21326 }, 21327 Required: []string{"containers"}, 21328 }, 21329 }, 21330 Dependencies: []string{ 21331 "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"}, 21332 } 21333 } 21334 21335 func schema_k8sio_api_core_v1_PodStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 21336 return common.OpenAPIDefinition{ 21337 Schema: spec.Schema{ 21338 SchemaProps: spec.SchemaProps{ 21339 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.", 21340 Type: []string{"object"}, 21341 Properties: map[string]spec.Schema{ 21342 "phase": { 21343 SchemaProps: spec.SchemaProps{ 21344 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)", 21345 Type: []string{"string"}, 21346 Format: "", 21347 Enum: []interface{}{"Failed", "Pending", "Running", "Succeeded", "Unknown"}, 21348 }, 21349 }, 21350 "conditions": { 21351 VendorExtensible: spec.VendorExtensible{ 21352 Extensions: spec.Extensions{ 21353 "x-kubernetes-patch-merge-key": "type", 21354 "x-kubernetes-patch-strategy": "merge", 21355 }, 21356 }, 21357 SchemaProps: spec.SchemaProps{ 21358 Description: "Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", 21359 Type: []string{"array"}, 21360 Items: &spec.SchemaOrArray{ 21361 Schema: &spec.Schema{ 21362 SchemaProps: spec.SchemaProps{ 21363 Default: map[string]interface{}{}, 21364 Ref: ref("k8s.io/api/core/v1.PodCondition"), 21365 }, 21366 }, 21367 }, 21368 }, 21369 }, 21370 "message": { 21371 SchemaProps: spec.SchemaProps{ 21372 Description: "A human readable message indicating details about why the pod is in this condition.", 21373 Type: []string{"string"}, 21374 Format: "", 21375 }, 21376 }, 21377 "reason": { 21378 SchemaProps: spec.SchemaProps{ 21379 Description: "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted'", 21380 Type: []string{"string"}, 21381 Format: "", 21382 }, 21383 }, 21384 "nominatedNodeName": { 21385 SchemaProps: spec.SchemaProps{ 21386 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.", 21387 Type: []string{"string"}, 21388 Format: "", 21389 }, 21390 }, 21391 "hostIP": { 21392 SchemaProps: spec.SchemaProps{ 21393 Description: "IP address of the host to which the pod is assigned. Empty if not yet scheduled.", 21394 Type: []string{"string"}, 21395 Format: "", 21396 }, 21397 }, 21398 "podIP": { 21399 SchemaProps: spec.SchemaProps{ 21400 Description: "IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.", 21401 Type: []string{"string"}, 21402 Format: "", 21403 }, 21404 }, 21405 "podIPs": { 21406 VendorExtensible: spec.VendorExtensible{ 21407 Extensions: spec.Extensions{ 21408 "x-kubernetes-patch-merge-key": "ip", 21409 "x-kubernetes-patch-strategy": "merge", 21410 }, 21411 }, 21412 SchemaProps: spec.SchemaProps{ 21413 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.", 21414 Type: []string{"array"}, 21415 Items: &spec.SchemaOrArray{ 21416 Schema: &spec.Schema{ 21417 SchemaProps: spec.SchemaProps{ 21418 Default: map[string]interface{}{}, 21419 Ref: ref("k8s.io/api/core/v1.PodIP"), 21420 }, 21421 }, 21422 }, 21423 }, 21424 }, 21425 "startTime": { 21426 SchemaProps: spec.SchemaProps{ 21427 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.", 21428 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 21429 }, 21430 }, 21431 "initContainerStatuses": { 21432 SchemaProps: spec.SchemaProps{ 21433 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", 21434 Type: []string{"array"}, 21435 Items: &spec.SchemaOrArray{ 21436 Schema: &spec.Schema{ 21437 SchemaProps: spec.SchemaProps{ 21438 Default: map[string]interface{}{}, 21439 Ref: ref("k8s.io/api/core/v1.ContainerStatus"), 21440 }, 21441 }, 21442 }, 21443 }, 21444 }, 21445 "containerStatuses": { 21446 SchemaProps: spec.SchemaProps{ 21447 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", 21448 Type: []string{"array"}, 21449 Items: &spec.SchemaOrArray{ 21450 Schema: &spec.Schema{ 21451 SchemaProps: spec.SchemaProps{ 21452 Default: map[string]interface{}{}, 21453 Ref: ref("k8s.io/api/core/v1.ContainerStatus"), 21454 }, 21455 }, 21456 }, 21457 }, 21458 }, 21459 "qosClass": { 21460 SchemaProps: spec.SchemaProps{ 21461 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.", 21462 Type: []string{"string"}, 21463 Format: "", 21464 Enum: []interface{}{"BestEffort", "Burstable", "Guaranteed"}, 21465 }, 21466 }, 21467 "ephemeralContainerStatuses": { 21468 SchemaProps: spec.SchemaProps{ 21469 Description: "Status for any ephemeral containers that have run in this pod.", 21470 Type: []string{"array"}, 21471 Items: &spec.SchemaOrArray{ 21472 Schema: &spec.Schema{ 21473 SchemaProps: spec.SchemaProps{ 21474 Default: map[string]interface{}{}, 21475 Ref: ref("k8s.io/api/core/v1.ContainerStatus"), 21476 }, 21477 }, 21478 }, 21479 }, 21480 }, 21481 "resize": { 21482 SchemaProps: spec.SchemaProps{ 21483 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\"", 21484 Type: []string{"string"}, 21485 Format: "", 21486 }, 21487 }, 21488 }, 21489 }, 21490 }, 21491 Dependencies: []string{ 21492 "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"}, 21493 } 21494 } 21495 21496 func schema_k8sio_api_core_v1_PodStatusResult(ref common.ReferenceCallback) common.OpenAPIDefinition { 21497 return common.OpenAPIDefinition{ 21498 Schema: spec.Schema{ 21499 SchemaProps: spec.SchemaProps{ 21500 Description: "PodStatusResult is a wrapper for PodStatus returned by kubelet that can be encode/decoded", 21501 Type: []string{"object"}, 21502 Properties: map[string]spec.Schema{ 21503 "kind": { 21504 SchemaProps: spec.SchemaProps{ 21505 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 21506 Type: []string{"string"}, 21507 Format: "", 21508 }, 21509 }, 21510 "apiVersion": { 21511 SchemaProps: spec.SchemaProps{ 21512 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 21513 Type: []string{"string"}, 21514 Format: "", 21515 }, 21516 }, 21517 "metadata": { 21518 SchemaProps: spec.SchemaProps{ 21519 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 21520 Default: map[string]interface{}{}, 21521 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 21522 }, 21523 }, 21524 "status": { 21525 SchemaProps: spec.SchemaProps{ 21526 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", 21527 Default: map[string]interface{}{}, 21528 Ref: ref("k8s.io/api/core/v1.PodStatus"), 21529 }, 21530 }, 21531 }, 21532 }, 21533 }, 21534 Dependencies: []string{ 21535 "k8s.io/api/core/v1.PodStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 21536 } 21537 } 21538 21539 func schema_k8sio_api_core_v1_PodTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { 21540 return common.OpenAPIDefinition{ 21541 Schema: spec.Schema{ 21542 SchemaProps: spec.SchemaProps{ 21543 Description: "PodTemplate describes a template for creating copies of a predefined pod.", 21544 Type: []string{"object"}, 21545 Properties: map[string]spec.Schema{ 21546 "kind": { 21547 SchemaProps: spec.SchemaProps{ 21548 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 21549 Type: []string{"string"}, 21550 Format: "", 21551 }, 21552 }, 21553 "apiVersion": { 21554 SchemaProps: spec.SchemaProps{ 21555 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 21556 Type: []string{"string"}, 21557 Format: "", 21558 }, 21559 }, 21560 "metadata": { 21561 SchemaProps: spec.SchemaProps{ 21562 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 21563 Default: map[string]interface{}{}, 21564 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 21565 }, 21566 }, 21567 "template": { 21568 SchemaProps: spec.SchemaProps{ 21569 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", 21570 Default: map[string]interface{}{}, 21571 Ref: ref("k8s.io/api/core/v1.PodTemplateSpec"), 21572 }, 21573 }, 21574 }, 21575 }, 21576 }, 21577 Dependencies: []string{ 21578 "k8s.io/api/core/v1.PodTemplateSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 21579 } 21580 } 21581 21582 func schema_k8sio_api_core_v1_PodTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { 21583 return common.OpenAPIDefinition{ 21584 Schema: spec.Schema{ 21585 SchemaProps: spec.SchemaProps{ 21586 Description: "PodTemplateList is a list of PodTemplates.", 21587 Type: []string{"object"}, 21588 Properties: map[string]spec.Schema{ 21589 "kind": { 21590 SchemaProps: spec.SchemaProps{ 21591 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 21592 Type: []string{"string"}, 21593 Format: "", 21594 }, 21595 }, 21596 "apiVersion": { 21597 SchemaProps: spec.SchemaProps{ 21598 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 21599 Type: []string{"string"}, 21600 Format: "", 21601 }, 21602 }, 21603 "metadata": { 21604 SchemaProps: spec.SchemaProps{ 21605 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 21606 Default: map[string]interface{}{}, 21607 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 21608 }, 21609 }, 21610 "items": { 21611 SchemaProps: spec.SchemaProps{ 21612 Description: "List of pod templates", 21613 Type: []string{"array"}, 21614 Items: &spec.SchemaOrArray{ 21615 Schema: &spec.Schema{ 21616 SchemaProps: spec.SchemaProps{ 21617 Default: map[string]interface{}{}, 21618 Ref: ref("k8s.io/api/core/v1.PodTemplate"), 21619 }, 21620 }, 21621 }, 21622 }, 21623 }, 21624 }, 21625 Required: []string{"items"}, 21626 }, 21627 }, 21628 Dependencies: []string{ 21629 "k8s.io/api/core/v1.PodTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 21630 } 21631 } 21632 21633 func schema_k8sio_api_core_v1_PodTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 21634 return common.OpenAPIDefinition{ 21635 Schema: spec.Schema{ 21636 SchemaProps: spec.SchemaProps{ 21637 Description: "PodTemplateSpec describes the data a pod should have when created from a template", 21638 Type: []string{"object"}, 21639 Properties: map[string]spec.Schema{ 21640 "metadata": { 21641 SchemaProps: spec.SchemaProps{ 21642 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 21643 Default: map[string]interface{}{}, 21644 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 21645 }, 21646 }, 21647 "spec": { 21648 SchemaProps: spec.SchemaProps{ 21649 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", 21650 Default: map[string]interface{}{}, 21651 Ref: ref("k8s.io/api/core/v1.PodSpec"), 21652 }, 21653 }, 21654 }, 21655 }, 21656 }, 21657 Dependencies: []string{ 21658 "k8s.io/api/core/v1.PodSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 21659 } 21660 } 21661 21662 func schema_k8sio_api_core_v1_PortStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 21663 return common.OpenAPIDefinition{ 21664 Schema: spec.Schema{ 21665 SchemaProps: spec.SchemaProps{ 21666 Type: []string{"object"}, 21667 Properties: map[string]spec.Schema{ 21668 "port": { 21669 SchemaProps: spec.SchemaProps{ 21670 Description: "Port is the port number of the service port of which status is recorded here", 21671 Default: 0, 21672 Type: []string{"integer"}, 21673 Format: "int32", 21674 }, 21675 }, 21676 "protocol": { 21677 SchemaProps: spec.SchemaProps{ 21678 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.", 21679 Default: "", 21680 Type: []string{"string"}, 21681 Format: "", 21682 Enum: []interface{}{"SCTP", "TCP", "UDP"}, 21683 }, 21684 }, 21685 "error": { 21686 SchemaProps: spec.SchemaProps{ 21687 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.", 21688 Type: []string{"string"}, 21689 Format: "", 21690 }, 21691 }, 21692 }, 21693 Required: []string{"port", "protocol"}, 21694 }, 21695 }, 21696 } 21697 } 21698 21699 func schema_k8sio_api_core_v1_PortworxVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 21700 return common.OpenAPIDefinition{ 21701 Schema: spec.Schema{ 21702 SchemaProps: spec.SchemaProps{ 21703 Description: "PortworxVolumeSource represents a Portworx volume resource.", 21704 Type: []string{"object"}, 21705 Properties: map[string]spec.Schema{ 21706 "volumeID": { 21707 SchemaProps: spec.SchemaProps{ 21708 Description: "volumeID uniquely identifies a Portworx volume", 21709 Default: "", 21710 Type: []string{"string"}, 21711 Format: "", 21712 }, 21713 }, 21714 "fsType": { 21715 SchemaProps: spec.SchemaProps{ 21716 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.", 21717 Type: []string{"string"}, 21718 Format: "", 21719 }, 21720 }, 21721 "readOnly": { 21722 SchemaProps: spec.SchemaProps{ 21723 Description: "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 21724 Type: []string{"boolean"}, 21725 Format: "", 21726 }, 21727 }, 21728 }, 21729 Required: []string{"volumeID"}, 21730 }, 21731 }, 21732 } 21733 } 21734 21735 func schema_k8sio_api_core_v1_PreferAvoidPodsEntry(ref common.ReferenceCallback) common.OpenAPIDefinition { 21736 return common.OpenAPIDefinition{ 21737 Schema: spec.Schema{ 21738 SchemaProps: spec.SchemaProps{ 21739 Description: "Describes a class of pods that should avoid this node.", 21740 Type: []string{"object"}, 21741 Properties: map[string]spec.Schema{ 21742 "podSignature": { 21743 SchemaProps: spec.SchemaProps{ 21744 Description: "The class of pods.", 21745 Default: map[string]interface{}{}, 21746 Ref: ref("k8s.io/api/core/v1.PodSignature"), 21747 }, 21748 }, 21749 "evictionTime": { 21750 SchemaProps: spec.SchemaProps{ 21751 Description: "Time at which this entry was added to the list.", 21752 Default: map[string]interface{}{}, 21753 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 21754 }, 21755 }, 21756 "reason": { 21757 SchemaProps: spec.SchemaProps{ 21758 Description: "(brief) reason why this entry was added to the list.", 21759 Type: []string{"string"}, 21760 Format: "", 21761 }, 21762 }, 21763 "message": { 21764 SchemaProps: spec.SchemaProps{ 21765 Description: "Human readable message indicating why this entry was added to the list.", 21766 Type: []string{"string"}, 21767 Format: "", 21768 }, 21769 }, 21770 }, 21771 Required: []string{"podSignature"}, 21772 }, 21773 }, 21774 Dependencies: []string{ 21775 "k8s.io/api/core/v1.PodSignature", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 21776 } 21777 } 21778 21779 func schema_k8sio_api_core_v1_PreferredSchedulingTerm(ref common.ReferenceCallback) common.OpenAPIDefinition { 21780 return common.OpenAPIDefinition{ 21781 Schema: spec.Schema{ 21782 SchemaProps: spec.SchemaProps{ 21783 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).", 21784 Type: []string{"object"}, 21785 Properties: map[string]spec.Schema{ 21786 "weight": { 21787 SchemaProps: spec.SchemaProps{ 21788 Description: "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.", 21789 Default: 0, 21790 Type: []string{"integer"}, 21791 Format: "int32", 21792 }, 21793 }, 21794 "preference": { 21795 SchemaProps: spec.SchemaProps{ 21796 Description: "A node selector term, associated with the corresponding weight.", 21797 Default: map[string]interface{}{}, 21798 Ref: ref("k8s.io/api/core/v1.NodeSelectorTerm"), 21799 }, 21800 }, 21801 }, 21802 Required: []string{"weight", "preference"}, 21803 }, 21804 }, 21805 Dependencies: []string{ 21806 "k8s.io/api/core/v1.NodeSelectorTerm"}, 21807 } 21808 } 21809 21810 func schema_k8sio_api_core_v1_Probe(ref common.ReferenceCallback) common.OpenAPIDefinition { 21811 return common.OpenAPIDefinition{ 21812 Schema: spec.Schema{ 21813 SchemaProps: spec.SchemaProps{ 21814 Description: "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.", 21815 Type: []string{"object"}, 21816 Properties: map[string]spec.Schema{ 21817 "exec": { 21818 SchemaProps: spec.SchemaProps{ 21819 Description: "Exec specifies the action to take.", 21820 Ref: ref("k8s.io/api/core/v1.ExecAction"), 21821 }, 21822 }, 21823 "httpGet": { 21824 SchemaProps: spec.SchemaProps{ 21825 Description: "HTTPGet specifies the http request to perform.", 21826 Ref: ref("k8s.io/api/core/v1.HTTPGetAction"), 21827 }, 21828 }, 21829 "tcpSocket": { 21830 SchemaProps: spec.SchemaProps{ 21831 Description: "TCPSocket specifies an action involving a TCP port.", 21832 Ref: ref("k8s.io/api/core/v1.TCPSocketAction"), 21833 }, 21834 }, 21835 "grpc": { 21836 SchemaProps: spec.SchemaProps{ 21837 Description: "GRPC specifies an action involving a GRPC port.", 21838 Ref: ref("k8s.io/api/core/v1.GRPCAction"), 21839 }, 21840 }, 21841 "initialDelaySeconds": { 21842 SchemaProps: spec.SchemaProps{ 21843 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", 21844 Type: []string{"integer"}, 21845 Format: "int32", 21846 }, 21847 }, 21848 "timeoutSeconds": { 21849 SchemaProps: spec.SchemaProps{ 21850 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", 21851 Type: []string{"integer"}, 21852 Format: "int32", 21853 }, 21854 }, 21855 "periodSeconds": { 21856 SchemaProps: spec.SchemaProps{ 21857 Description: "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", 21858 Type: []string{"integer"}, 21859 Format: "int32", 21860 }, 21861 }, 21862 "successThreshold": { 21863 SchemaProps: spec.SchemaProps{ 21864 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.", 21865 Type: []string{"integer"}, 21866 Format: "int32", 21867 }, 21868 }, 21869 "failureThreshold": { 21870 SchemaProps: spec.SchemaProps{ 21871 Description: "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", 21872 Type: []string{"integer"}, 21873 Format: "int32", 21874 }, 21875 }, 21876 "terminationGracePeriodSeconds": { 21877 SchemaProps: spec.SchemaProps{ 21878 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.", 21879 Type: []string{"integer"}, 21880 Format: "int64", 21881 }, 21882 }, 21883 }, 21884 }, 21885 }, 21886 Dependencies: []string{ 21887 "k8s.io/api/core/v1.ExecAction", "k8s.io/api/core/v1.GRPCAction", "k8s.io/api/core/v1.HTTPGetAction", "k8s.io/api/core/v1.TCPSocketAction"}, 21888 } 21889 } 21890 21891 func schema_k8sio_api_core_v1_ProbeHandler(ref common.ReferenceCallback) common.OpenAPIDefinition { 21892 return common.OpenAPIDefinition{ 21893 Schema: spec.Schema{ 21894 SchemaProps: spec.SchemaProps{ 21895 Description: "ProbeHandler defines a specific action that should be taken in a probe. One and only one of the fields must be specified.", 21896 Type: []string{"object"}, 21897 Properties: map[string]spec.Schema{ 21898 "exec": { 21899 SchemaProps: spec.SchemaProps{ 21900 Description: "Exec specifies the action to take.", 21901 Ref: ref("k8s.io/api/core/v1.ExecAction"), 21902 }, 21903 }, 21904 "httpGet": { 21905 SchemaProps: spec.SchemaProps{ 21906 Description: "HTTPGet specifies the http request to perform.", 21907 Ref: ref("k8s.io/api/core/v1.HTTPGetAction"), 21908 }, 21909 }, 21910 "tcpSocket": { 21911 SchemaProps: spec.SchemaProps{ 21912 Description: "TCPSocket specifies an action involving a TCP port.", 21913 Ref: ref("k8s.io/api/core/v1.TCPSocketAction"), 21914 }, 21915 }, 21916 "grpc": { 21917 SchemaProps: spec.SchemaProps{ 21918 Description: "GRPC specifies an action involving a GRPC port.", 21919 Ref: ref("k8s.io/api/core/v1.GRPCAction"), 21920 }, 21921 }, 21922 }, 21923 }, 21924 }, 21925 Dependencies: []string{ 21926 "k8s.io/api/core/v1.ExecAction", "k8s.io/api/core/v1.GRPCAction", "k8s.io/api/core/v1.HTTPGetAction", "k8s.io/api/core/v1.TCPSocketAction"}, 21927 } 21928 } 21929 21930 func schema_k8sio_api_core_v1_ProjectedVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 21931 return common.OpenAPIDefinition{ 21932 Schema: spec.Schema{ 21933 SchemaProps: spec.SchemaProps{ 21934 Description: "Represents a projected volume source", 21935 Type: []string{"object"}, 21936 Properties: map[string]spec.Schema{ 21937 "sources": { 21938 SchemaProps: spec.SchemaProps{ 21939 Description: "sources is the list of volume projections", 21940 Type: []string{"array"}, 21941 Items: &spec.SchemaOrArray{ 21942 Schema: &spec.Schema{ 21943 SchemaProps: spec.SchemaProps{ 21944 Default: map[string]interface{}{}, 21945 Ref: ref("k8s.io/api/core/v1.VolumeProjection"), 21946 }, 21947 }, 21948 }, 21949 }, 21950 }, 21951 "defaultMode": { 21952 SchemaProps: spec.SchemaProps{ 21953 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.", 21954 Type: []string{"integer"}, 21955 Format: "int32", 21956 }, 21957 }, 21958 }, 21959 }, 21960 }, 21961 Dependencies: []string{ 21962 "k8s.io/api/core/v1.VolumeProjection"}, 21963 } 21964 } 21965 21966 func schema_k8sio_api_core_v1_QuobyteVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 21967 return common.OpenAPIDefinition{ 21968 Schema: spec.Schema{ 21969 SchemaProps: spec.SchemaProps{ 21970 Description: "Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.", 21971 Type: []string{"object"}, 21972 Properties: map[string]spec.Schema{ 21973 "registry": { 21974 SchemaProps: spec.SchemaProps{ 21975 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", 21976 Default: "", 21977 Type: []string{"string"}, 21978 Format: "", 21979 }, 21980 }, 21981 "volume": { 21982 SchemaProps: spec.SchemaProps{ 21983 Description: "volume is a string that references an already created Quobyte volume by name.", 21984 Default: "", 21985 Type: []string{"string"}, 21986 Format: "", 21987 }, 21988 }, 21989 "readOnly": { 21990 SchemaProps: spec.SchemaProps{ 21991 Description: "readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false.", 21992 Type: []string{"boolean"}, 21993 Format: "", 21994 }, 21995 }, 21996 "user": { 21997 SchemaProps: spec.SchemaProps{ 21998 Description: "user to map volume access to Defaults to serivceaccount user", 21999 Type: []string{"string"}, 22000 Format: "", 22001 }, 22002 }, 22003 "group": { 22004 SchemaProps: spec.SchemaProps{ 22005 Description: "group to map volume access to Default is no group", 22006 Type: []string{"string"}, 22007 Format: "", 22008 }, 22009 }, 22010 "tenant": { 22011 SchemaProps: spec.SchemaProps{ 22012 Description: "tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin", 22013 Type: []string{"string"}, 22014 Format: "", 22015 }, 22016 }, 22017 }, 22018 Required: []string{"registry", "volume"}, 22019 }, 22020 }, 22021 } 22022 } 22023 22024 func schema_k8sio_api_core_v1_RBDPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 22025 return common.OpenAPIDefinition{ 22026 Schema: spec.Schema{ 22027 SchemaProps: spec.SchemaProps{ 22028 Description: "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.", 22029 Type: []string{"object"}, 22030 Properties: map[string]spec.Schema{ 22031 "monitors": { 22032 SchemaProps: spec.SchemaProps{ 22033 Description: "monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", 22034 Type: []string{"array"}, 22035 Items: &spec.SchemaOrArray{ 22036 Schema: &spec.Schema{ 22037 SchemaProps: spec.SchemaProps{ 22038 Default: "", 22039 Type: []string{"string"}, 22040 Format: "", 22041 }, 22042 }, 22043 }, 22044 }, 22045 }, 22046 "image": { 22047 SchemaProps: spec.SchemaProps{ 22048 Description: "image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", 22049 Default: "", 22050 Type: []string{"string"}, 22051 Format: "", 22052 }, 22053 }, 22054 "fsType": { 22055 SchemaProps: spec.SchemaProps{ 22056 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", 22057 Type: []string{"string"}, 22058 Format: "", 22059 }, 22060 }, 22061 "pool": { 22062 SchemaProps: spec.SchemaProps{ 22063 Description: "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", 22064 Type: []string{"string"}, 22065 Format: "", 22066 }, 22067 }, 22068 "user": { 22069 SchemaProps: spec.SchemaProps{ 22070 Description: "user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", 22071 Type: []string{"string"}, 22072 Format: "", 22073 }, 22074 }, 22075 "keyring": { 22076 SchemaProps: spec.SchemaProps{ 22077 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", 22078 Type: []string{"string"}, 22079 Format: "", 22080 }, 22081 }, 22082 "secretRef": { 22083 SchemaProps: spec.SchemaProps{ 22084 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", 22085 Ref: ref("k8s.io/api/core/v1.SecretReference"), 22086 }, 22087 }, 22088 "readOnly": { 22089 SchemaProps: spec.SchemaProps{ 22090 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", 22091 Type: []string{"boolean"}, 22092 Format: "", 22093 }, 22094 }, 22095 }, 22096 Required: []string{"monitors", "image"}, 22097 }, 22098 }, 22099 Dependencies: []string{ 22100 "k8s.io/api/core/v1.SecretReference"}, 22101 } 22102 } 22103 22104 func schema_k8sio_api_core_v1_RBDVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 22105 return common.OpenAPIDefinition{ 22106 Schema: spec.Schema{ 22107 SchemaProps: spec.SchemaProps{ 22108 Description: "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.", 22109 Type: []string{"object"}, 22110 Properties: map[string]spec.Schema{ 22111 "monitors": { 22112 SchemaProps: spec.SchemaProps{ 22113 Description: "monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", 22114 Type: []string{"array"}, 22115 Items: &spec.SchemaOrArray{ 22116 Schema: &spec.Schema{ 22117 SchemaProps: spec.SchemaProps{ 22118 Default: "", 22119 Type: []string{"string"}, 22120 Format: "", 22121 }, 22122 }, 22123 }, 22124 }, 22125 }, 22126 "image": { 22127 SchemaProps: spec.SchemaProps{ 22128 Description: "image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", 22129 Default: "", 22130 Type: []string{"string"}, 22131 Format: "", 22132 }, 22133 }, 22134 "fsType": { 22135 SchemaProps: spec.SchemaProps{ 22136 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", 22137 Type: []string{"string"}, 22138 Format: "", 22139 }, 22140 }, 22141 "pool": { 22142 SchemaProps: spec.SchemaProps{ 22143 Description: "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", 22144 Type: []string{"string"}, 22145 Format: "", 22146 }, 22147 }, 22148 "user": { 22149 SchemaProps: spec.SchemaProps{ 22150 Description: "user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", 22151 Type: []string{"string"}, 22152 Format: "", 22153 }, 22154 }, 22155 "keyring": { 22156 SchemaProps: spec.SchemaProps{ 22157 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", 22158 Type: []string{"string"}, 22159 Format: "", 22160 }, 22161 }, 22162 "secretRef": { 22163 SchemaProps: spec.SchemaProps{ 22164 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", 22165 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 22166 }, 22167 }, 22168 "readOnly": { 22169 SchemaProps: spec.SchemaProps{ 22170 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", 22171 Type: []string{"boolean"}, 22172 Format: "", 22173 }, 22174 }, 22175 }, 22176 Required: []string{"monitors", "image"}, 22177 }, 22178 }, 22179 Dependencies: []string{ 22180 "k8s.io/api/core/v1.LocalObjectReference"}, 22181 } 22182 } 22183 22184 func schema_k8sio_api_core_v1_RangeAllocation(ref common.ReferenceCallback) common.OpenAPIDefinition { 22185 return common.OpenAPIDefinition{ 22186 Schema: spec.Schema{ 22187 SchemaProps: spec.SchemaProps{ 22188 Description: "RangeAllocation is not a public type.", 22189 Type: []string{"object"}, 22190 Properties: map[string]spec.Schema{ 22191 "kind": { 22192 SchemaProps: spec.SchemaProps{ 22193 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 22194 Type: []string{"string"}, 22195 Format: "", 22196 }, 22197 }, 22198 "apiVersion": { 22199 SchemaProps: spec.SchemaProps{ 22200 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 22201 Type: []string{"string"}, 22202 Format: "", 22203 }, 22204 }, 22205 "metadata": { 22206 SchemaProps: spec.SchemaProps{ 22207 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 22208 Default: map[string]interface{}{}, 22209 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 22210 }, 22211 }, 22212 "range": { 22213 SchemaProps: spec.SchemaProps{ 22214 Description: "Range is string that identifies the range represented by 'data'.", 22215 Default: "", 22216 Type: []string{"string"}, 22217 Format: "", 22218 }, 22219 }, 22220 "data": { 22221 SchemaProps: spec.SchemaProps{ 22222 Description: "Data is a bit array containing all allocated addresses in the previous segment.", 22223 Type: []string{"string"}, 22224 Format: "byte", 22225 }, 22226 }, 22227 }, 22228 Required: []string{"range", "data"}, 22229 }, 22230 }, 22231 Dependencies: []string{ 22232 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 22233 } 22234 } 22235 22236 func schema_k8sio_api_core_v1_ReplicationController(ref common.ReferenceCallback) common.OpenAPIDefinition { 22237 return common.OpenAPIDefinition{ 22238 Schema: spec.Schema{ 22239 SchemaProps: spec.SchemaProps{ 22240 Description: "ReplicationController represents the configuration of a replication controller.", 22241 Type: []string{"object"}, 22242 Properties: map[string]spec.Schema{ 22243 "kind": { 22244 SchemaProps: spec.SchemaProps{ 22245 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 22246 Type: []string{"string"}, 22247 Format: "", 22248 }, 22249 }, 22250 "apiVersion": { 22251 SchemaProps: spec.SchemaProps{ 22252 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 22253 Type: []string{"string"}, 22254 Format: "", 22255 }, 22256 }, 22257 "metadata": { 22258 SchemaProps: spec.SchemaProps{ 22259 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", 22260 Default: map[string]interface{}{}, 22261 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 22262 }, 22263 }, 22264 "spec": { 22265 SchemaProps: spec.SchemaProps{ 22266 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", 22267 Default: map[string]interface{}{}, 22268 Ref: ref("k8s.io/api/core/v1.ReplicationControllerSpec"), 22269 }, 22270 }, 22271 "status": { 22272 SchemaProps: spec.SchemaProps{ 22273 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", 22274 Default: map[string]interface{}{}, 22275 Ref: ref("k8s.io/api/core/v1.ReplicationControllerStatus"), 22276 }, 22277 }, 22278 }, 22279 }, 22280 }, 22281 Dependencies: []string{ 22282 "k8s.io/api/core/v1.ReplicationControllerSpec", "k8s.io/api/core/v1.ReplicationControllerStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 22283 } 22284 } 22285 22286 func schema_k8sio_api_core_v1_ReplicationControllerCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 22287 return common.OpenAPIDefinition{ 22288 Schema: spec.Schema{ 22289 SchemaProps: spec.SchemaProps{ 22290 Description: "ReplicationControllerCondition describes the state of a replication controller at a certain point.", 22291 Type: []string{"object"}, 22292 Properties: map[string]spec.Schema{ 22293 "type": { 22294 SchemaProps: spec.SchemaProps{ 22295 Description: "Type of replication controller condition.", 22296 Default: "", 22297 Type: []string{"string"}, 22298 Format: "", 22299 }, 22300 }, 22301 "status": { 22302 SchemaProps: spec.SchemaProps{ 22303 Description: "Status of the condition, one of True, False, Unknown.", 22304 Default: "", 22305 Type: []string{"string"}, 22306 Format: "", 22307 }, 22308 }, 22309 "lastTransitionTime": { 22310 SchemaProps: spec.SchemaProps{ 22311 Description: "The last time the condition transitioned from one status to another.", 22312 Default: map[string]interface{}{}, 22313 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 22314 }, 22315 }, 22316 "reason": { 22317 SchemaProps: spec.SchemaProps{ 22318 Description: "The reason for the condition's last transition.", 22319 Type: []string{"string"}, 22320 Format: "", 22321 }, 22322 }, 22323 "message": { 22324 SchemaProps: spec.SchemaProps{ 22325 Description: "A human readable message indicating details about the transition.", 22326 Type: []string{"string"}, 22327 Format: "", 22328 }, 22329 }, 22330 }, 22331 Required: []string{"type", "status"}, 22332 }, 22333 }, 22334 Dependencies: []string{ 22335 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 22336 } 22337 } 22338 22339 func schema_k8sio_api_core_v1_ReplicationControllerList(ref common.ReferenceCallback) common.OpenAPIDefinition { 22340 return common.OpenAPIDefinition{ 22341 Schema: spec.Schema{ 22342 SchemaProps: spec.SchemaProps{ 22343 Description: "ReplicationControllerList is a collection of replication controllers.", 22344 Type: []string{"object"}, 22345 Properties: map[string]spec.Schema{ 22346 "kind": { 22347 SchemaProps: spec.SchemaProps{ 22348 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 22349 Type: []string{"string"}, 22350 Format: "", 22351 }, 22352 }, 22353 "apiVersion": { 22354 SchemaProps: spec.SchemaProps{ 22355 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 22356 Type: []string{"string"}, 22357 Format: "", 22358 }, 22359 }, 22360 "metadata": { 22361 SchemaProps: spec.SchemaProps{ 22362 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 22363 Default: map[string]interface{}{}, 22364 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 22365 }, 22366 }, 22367 "items": { 22368 SchemaProps: spec.SchemaProps{ 22369 Description: "List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller", 22370 Type: []string{"array"}, 22371 Items: &spec.SchemaOrArray{ 22372 Schema: &spec.Schema{ 22373 SchemaProps: spec.SchemaProps{ 22374 Default: map[string]interface{}{}, 22375 Ref: ref("k8s.io/api/core/v1.ReplicationController"), 22376 }, 22377 }, 22378 }, 22379 }, 22380 }, 22381 }, 22382 Required: []string{"items"}, 22383 }, 22384 }, 22385 Dependencies: []string{ 22386 "k8s.io/api/core/v1.ReplicationController", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 22387 } 22388 } 22389 22390 func schema_k8sio_api_core_v1_ReplicationControllerSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 22391 return common.OpenAPIDefinition{ 22392 Schema: spec.Schema{ 22393 SchemaProps: spec.SchemaProps{ 22394 Description: "ReplicationControllerSpec is the specification of a replication controller.", 22395 Type: []string{"object"}, 22396 Properties: map[string]spec.Schema{ 22397 "replicas": { 22398 SchemaProps: spec.SchemaProps{ 22399 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", 22400 Type: []string{"integer"}, 22401 Format: "int32", 22402 }, 22403 }, 22404 "minReadySeconds": { 22405 SchemaProps: spec.SchemaProps{ 22406 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)", 22407 Type: []string{"integer"}, 22408 Format: "int32", 22409 }, 22410 }, 22411 "selector": { 22412 VendorExtensible: spec.VendorExtensible{ 22413 Extensions: spec.Extensions{ 22414 "x-kubernetes-map-type": "atomic", 22415 }, 22416 }, 22417 SchemaProps: spec.SchemaProps{ 22418 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", 22419 Type: []string{"object"}, 22420 AdditionalProperties: &spec.SchemaOrBool{ 22421 Allows: true, 22422 Schema: &spec.Schema{ 22423 SchemaProps: spec.SchemaProps{ 22424 Default: "", 22425 Type: []string{"string"}, 22426 Format: "", 22427 }, 22428 }, 22429 }, 22430 }, 22431 }, 22432 "template": { 22433 SchemaProps: spec.SchemaProps{ 22434 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", 22435 Ref: ref("k8s.io/api/core/v1.PodTemplateSpec"), 22436 }, 22437 }, 22438 }, 22439 }, 22440 }, 22441 Dependencies: []string{ 22442 "k8s.io/api/core/v1.PodTemplateSpec"}, 22443 } 22444 } 22445 22446 func schema_k8sio_api_core_v1_ReplicationControllerStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 22447 return common.OpenAPIDefinition{ 22448 Schema: spec.Schema{ 22449 SchemaProps: spec.SchemaProps{ 22450 Description: "ReplicationControllerStatus represents the current status of a replication controller.", 22451 Type: []string{"object"}, 22452 Properties: map[string]spec.Schema{ 22453 "replicas": { 22454 SchemaProps: spec.SchemaProps{ 22455 Description: "Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller", 22456 Default: 0, 22457 Type: []string{"integer"}, 22458 Format: "int32", 22459 }, 22460 }, 22461 "fullyLabeledReplicas": { 22462 SchemaProps: spec.SchemaProps{ 22463 Description: "The number of pods that have labels matching the labels of the pod template of the replication controller.", 22464 Type: []string{"integer"}, 22465 Format: "int32", 22466 }, 22467 }, 22468 "readyReplicas": { 22469 SchemaProps: spec.SchemaProps{ 22470 Description: "The number of ready replicas for this replication controller.", 22471 Type: []string{"integer"}, 22472 Format: "int32", 22473 }, 22474 }, 22475 "availableReplicas": { 22476 SchemaProps: spec.SchemaProps{ 22477 Description: "The number of available replicas (ready for at least minReadySeconds) for this replication controller.", 22478 Type: []string{"integer"}, 22479 Format: "int32", 22480 }, 22481 }, 22482 "observedGeneration": { 22483 SchemaProps: spec.SchemaProps{ 22484 Description: "ObservedGeneration reflects the generation of the most recently observed replication controller.", 22485 Type: []string{"integer"}, 22486 Format: "int64", 22487 }, 22488 }, 22489 "conditions": { 22490 VendorExtensible: spec.VendorExtensible{ 22491 Extensions: spec.Extensions{ 22492 "x-kubernetes-patch-merge-key": "type", 22493 "x-kubernetes-patch-strategy": "merge", 22494 }, 22495 }, 22496 SchemaProps: spec.SchemaProps{ 22497 Description: "Represents the latest available observations of a replication controller's current state.", 22498 Type: []string{"array"}, 22499 Items: &spec.SchemaOrArray{ 22500 Schema: &spec.Schema{ 22501 SchemaProps: spec.SchemaProps{ 22502 Default: map[string]interface{}{}, 22503 Ref: ref("k8s.io/api/core/v1.ReplicationControllerCondition"), 22504 }, 22505 }, 22506 }, 22507 }, 22508 }, 22509 }, 22510 Required: []string{"replicas"}, 22511 }, 22512 }, 22513 Dependencies: []string{ 22514 "k8s.io/api/core/v1.ReplicationControllerCondition"}, 22515 } 22516 } 22517 22518 func schema_k8sio_api_core_v1_ResourceClaim(ref common.ReferenceCallback) common.OpenAPIDefinition { 22519 return common.OpenAPIDefinition{ 22520 Schema: spec.Schema{ 22521 SchemaProps: spec.SchemaProps{ 22522 Description: "ResourceClaim references one entry in PodSpec.ResourceClaims.", 22523 Type: []string{"object"}, 22524 Properties: map[string]spec.Schema{ 22525 "name": { 22526 SchemaProps: spec.SchemaProps{ 22527 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.", 22528 Default: "", 22529 Type: []string{"string"}, 22530 Format: "", 22531 }, 22532 }, 22533 }, 22534 Required: []string{"name"}, 22535 }, 22536 }, 22537 } 22538 } 22539 22540 func schema_k8sio_api_core_v1_ResourceFieldSelector(ref common.ReferenceCallback) common.OpenAPIDefinition { 22541 return common.OpenAPIDefinition{ 22542 Schema: spec.Schema{ 22543 SchemaProps: spec.SchemaProps{ 22544 Description: "ResourceFieldSelector represents container resources (cpu, memory) and their output format", 22545 Type: []string{"object"}, 22546 Properties: map[string]spec.Schema{ 22547 "containerName": { 22548 SchemaProps: spec.SchemaProps{ 22549 Description: "Container name: required for volumes, optional for env vars", 22550 Type: []string{"string"}, 22551 Format: "", 22552 }, 22553 }, 22554 "resource": { 22555 SchemaProps: spec.SchemaProps{ 22556 Description: "Required: resource to select", 22557 Default: "", 22558 Type: []string{"string"}, 22559 Format: "", 22560 }, 22561 }, 22562 "divisor": { 22563 SchemaProps: spec.SchemaProps{ 22564 Description: "Specifies the output format of the exposed resources, defaults to \"1\"", 22565 Default: map[string]interface{}{}, 22566 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 22567 }, 22568 }, 22569 }, 22570 Required: []string{"resource"}, 22571 }, 22572 VendorExtensible: spec.VendorExtensible{ 22573 Extensions: spec.Extensions{ 22574 "x-kubernetes-map-type": "atomic", 22575 }, 22576 }, 22577 }, 22578 Dependencies: []string{ 22579 "k8s.io/apimachinery/pkg/api/resource.Quantity"}, 22580 } 22581 } 22582 22583 func schema_k8sio_api_core_v1_ResourceQuota(ref common.ReferenceCallback) common.OpenAPIDefinition { 22584 return common.OpenAPIDefinition{ 22585 Schema: spec.Schema{ 22586 SchemaProps: spec.SchemaProps{ 22587 Description: "ResourceQuota sets aggregate quota restrictions enforced per namespace", 22588 Type: []string{"object"}, 22589 Properties: map[string]spec.Schema{ 22590 "kind": { 22591 SchemaProps: spec.SchemaProps{ 22592 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 22593 Type: []string{"string"}, 22594 Format: "", 22595 }, 22596 }, 22597 "apiVersion": { 22598 SchemaProps: spec.SchemaProps{ 22599 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 22600 Type: []string{"string"}, 22601 Format: "", 22602 }, 22603 }, 22604 "metadata": { 22605 SchemaProps: spec.SchemaProps{ 22606 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 22607 Default: map[string]interface{}{}, 22608 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 22609 }, 22610 }, 22611 "spec": { 22612 SchemaProps: spec.SchemaProps{ 22613 Description: "Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", 22614 Default: map[string]interface{}{}, 22615 Ref: ref("k8s.io/api/core/v1.ResourceQuotaSpec"), 22616 }, 22617 }, 22618 "status": { 22619 SchemaProps: spec.SchemaProps{ 22620 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", 22621 Default: map[string]interface{}{}, 22622 Ref: ref("k8s.io/api/core/v1.ResourceQuotaStatus"), 22623 }, 22624 }, 22625 }, 22626 }, 22627 }, 22628 Dependencies: []string{ 22629 "k8s.io/api/core/v1.ResourceQuotaSpec", "k8s.io/api/core/v1.ResourceQuotaStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 22630 } 22631 } 22632 22633 func schema_k8sio_api_core_v1_ResourceQuotaList(ref common.ReferenceCallback) common.OpenAPIDefinition { 22634 return common.OpenAPIDefinition{ 22635 Schema: spec.Schema{ 22636 SchemaProps: spec.SchemaProps{ 22637 Description: "ResourceQuotaList is a list of ResourceQuota items.", 22638 Type: []string{"object"}, 22639 Properties: map[string]spec.Schema{ 22640 "kind": { 22641 SchemaProps: spec.SchemaProps{ 22642 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 22643 Type: []string{"string"}, 22644 Format: "", 22645 }, 22646 }, 22647 "apiVersion": { 22648 SchemaProps: spec.SchemaProps{ 22649 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 22650 Type: []string{"string"}, 22651 Format: "", 22652 }, 22653 }, 22654 "metadata": { 22655 SchemaProps: spec.SchemaProps{ 22656 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 22657 Default: map[string]interface{}{}, 22658 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 22659 }, 22660 }, 22661 "items": { 22662 SchemaProps: spec.SchemaProps{ 22663 Description: "Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", 22664 Type: []string{"array"}, 22665 Items: &spec.SchemaOrArray{ 22666 Schema: &spec.Schema{ 22667 SchemaProps: spec.SchemaProps{ 22668 Default: map[string]interface{}{}, 22669 Ref: ref("k8s.io/api/core/v1.ResourceQuota"), 22670 }, 22671 }, 22672 }, 22673 }, 22674 }, 22675 }, 22676 Required: []string{"items"}, 22677 }, 22678 }, 22679 Dependencies: []string{ 22680 "k8s.io/api/core/v1.ResourceQuota", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 22681 } 22682 } 22683 22684 func schema_k8sio_api_core_v1_ResourceQuotaSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 22685 return common.OpenAPIDefinition{ 22686 Schema: spec.Schema{ 22687 SchemaProps: spec.SchemaProps{ 22688 Description: "ResourceQuotaSpec defines the desired hard limits to enforce for Quota.", 22689 Type: []string{"object"}, 22690 Properties: map[string]spec.Schema{ 22691 "hard": { 22692 SchemaProps: spec.SchemaProps{ 22693 Description: "hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", 22694 Type: []string{"object"}, 22695 AdditionalProperties: &spec.SchemaOrBool{ 22696 Allows: true, 22697 Schema: &spec.Schema{ 22698 SchemaProps: spec.SchemaProps{ 22699 Default: map[string]interface{}{}, 22700 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 22701 }, 22702 }, 22703 }, 22704 }, 22705 }, 22706 "scopes": { 22707 SchemaProps: spec.SchemaProps{ 22708 Description: "A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.", 22709 Type: []string{"array"}, 22710 Items: &spec.SchemaOrArray{ 22711 Schema: &spec.Schema{ 22712 SchemaProps: spec.SchemaProps{ 22713 Default: "", 22714 Type: []string{"string"}, 22715 Format: "", 22716 }, 22717 }, 22718 }, 22719 }, 22720 }, 22721 "scopeSelector": { 22722 SchemaProps: spec.SchemaProps{ 22723 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.", 22724 Ref: ref("k8s.io/api/core/v1.ScopeSelector"), 22725 }, 22726 }, 22727 }, 22728 }, 22729 }, 22730 Dependencies: []string{ 22731 "k8s.io/api/core/v1.ScopeSelector", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, 22732 } 22733 } 22734 22735 func schema_k8sio_api_core_v1_ResourceQuotaStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 22736 return common.OpenAPIDefinition{ 22737 Schema: spec.Schema{ 22738 SchemaProps: spec.SchemaProps{ 22739 Description: "ResourceQuotaStatus defines the enforced hard limits and observed use.", 22740 Type: []string{"object"}, 22741 Properties: map[string]spec.Schema{ 22742 "hard": { 22743 SchemaProps: spec.SchemaProps{ 22744 Description: "Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", 22745 Type: []string{"object"}, 22746 AdditionalProperties: &spec.SchemaOrBool{ 22747 Allows: true, 22748 Schema: &spec.Schema{ 22749 SchemaProps: spec.SchemaProps{ 22750 Default: map[string]interface{}{}, 22751 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 22752 }, 22753 }, 22754 }, 22755 }, 22756 }, 22757 "used": { 22758 SchemaProps: spec.SchemaProps{ 22759 Description: "Used is the current observed total usage of the resource in the namespace.", 22760 Type: []string{"object"}, 22761 AdditionalProperties: &spec.SchemaOrBool{ 22762 Allows: true, 22763 Schema: &spec.Schema{ 22764 SchemaProps: spec.SchemaProps{ 22765 Default: map[string]interface{}{}, 22766 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 22767 }, 22768 }, 22769 }, 22770 }, 22771 }, 22772 }, 22773 }, 22774 }, 22775 Dependencies: []string{ 22776 "k8s.io/apimachinery/pkg/api/resource.Quantity"}, 22777 } 22778 } 22779 22780 func schema_k8sio_api_core_v1_ResourceRequirements(ref common.ReferenceCallback) common.OpenAPIDefinition { 22781 return common.OpenAPIDefinition{ 22782 Schema: spec.Schema{ 22783 SchemaProps: spec.SchemaProps{ 22784 Description: "ResourceRequirements describes the compute resource requirements.", 22785 Type: []string{"object"}, 22786 Properties: map[string]spec.Schema{ 22787 "limits": { 22788 SchemaProps: spec.SchemaProps{ 22789 Description: "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", 22790 Type: []string{"object"}, 22791 AdditionalProperties: &spec.SchemaOrBool{ 22792 Allows: true, 22793 Schema: &spec.Schema{ 22794 SchemaProps: spec.SchemaProps{ 22795 Default: map[string]interface{}{}, 22796 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 22797 }, 22798 }, 22799 }, 22800 }, 22801 }, 22802 "requests": { 22803 SchemaProps: spec.SchemaProps{ 22804 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/", 22805 Type: []string{"object"}, 22806 AdditionalProperties: &spec.SchemaOrBool{ 22807 Allows: true, 22808 Schema: &spec.Schema{ 22809 SchemaProps: spec.SchemaProps{ 22810 Default: map[string]interface{}{}, 22811 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 22812 }, 22813 }, 22814 }, 22815 }, 22816 }, 22817 "claims": { 22818 VendorExtensible: spec.VendorExtensible{ 22819 Extensions: spec.Extensions{ 22820 "x-kubernetes-list-map-keys": []interface{}{ 22821 "name", 22822 }, 22823 "x-kubernetes-list-type": "map", 22824 }, 22825 }, 22826 SchemaProps: spec.SchemaProps{ 22827 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.", 22828 Type: []string{"array"}, 22829 Items: &spec.SchemaOrArray{ 22830 Schema: &spec.Schema{ 22831 SchemaProps: spec.SchemaProps{ 22832 Default: map[string]interface{}{}, 22833 Ref: ref("k8s.io/api/core/v1.ResourceClaim"), 22834 }, 22835 }, 22836 }, 22837 }, 22838 }, 22839 }, 22840 }, 22841 }, 22842 Dependencies: []string{ 22843 "k8s.io/api/core/v1.ResourceClaim", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, 22844 } 22845 } 22846 22847 func schema_k8sio_api_core_v1_SELinuxOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 22848 return common.OpenAPIDefinition{ 22849 Schema: spec.Schema{ 22850 SchemaProps: spec.SchemaProps{ 22851 Description: "SELinuxOptions are the labels to be applied to the container", 22852 Type: []string{"object"}, 22853 Properties: map[string]spec.Schema{ 22854 "user": { 22855 SchemaProps: spec.SchemaProps{ 22856 Description: "User is a SELinux user label that applies to the container.", 22857 Type: []string{"string"}, 22858 Format: "", 22859 }, 22860 }, 22861 "role": { 22862 SchemaProps: spec.SchemaProps{ 22863 Description: "Role is a SELinux role label that applies to the container.", 22864 Type: []string{"string"}, 22865 Format: "", 22866 }, 22867 }, 22868 "type": { 22869 SchemaProps: spec.SchemaProps{ 22870 Description: "Type is a SELinux type label that applies to the container.", 22871 Type: []string{"string"}, 22872 Format: "", 22873 }, 22874 }, 22875 "level": { 22876 SchemaProps: spec.SchemaProps{ 22877 Description: "Level is SELinux level label that applies to the container.", 22878 Type: []string{"string"}, 22879 Format: "", 22880 }, 22881 }, 22882 }, 22883 }, 22884 }, 22885 } 22886 } 22887 22888 func schema_k8sio_api_core_v1_ScaleIOPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 22889 return common.OpenAPIDefinition{ 22890 Schema: spec.Schema{ 22891 SchemaProps: spec.SchemaProps{ 22892 Description: "ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume", 22893 Type: []string{"object"}, 22894 Properties: map[string]spec.Schema{ 22895 "gateway": { 22896 SchemaProps: spec.SchemaProps{ 22897 Description: "gateway is the host address of the ScaleIO API Gateway.", 22898 Default: "", 22899 Type: []string{"string"}, 22900 Format: "", 22901 }, 22902 }, 22903 "system": { 22904 SchemaProps: spec.SchemaProps{ 22905 Description: "system is the name of the storage system as configured in ScaleIO.", 22906 Default: "", 22907 Type: []string{"string"}, 22908 Format: "", 22909 }, 22910 }, 22911 "secretRef": { 22912 SchemaProps: spec.SchemaProps{ 22913 Description: "secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail.", 22914 Ref: ref("k8s.io/api/core/v1.SecretReference"), 22915 }, 22916 }, 22917 "sslEnabled": { 22918 SchemaProps: spec.SchemaProps{ 22919 Description: "sslEnabled is the flag to enable/disable SSL communication with Gateway, default false", 22920 Type: []string{"boolean"}, 22921 Format: "", 22922 }, 22923 }, 22924 "protectionDomain": { 22925 SchemaProps: spec.SchemaProps{ 22926 Description: "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.", 22927 Type: []string{"string"}, 22928 Format: "", 22929 }, 22930 }, 22931 "storagePool": { 22932 SchemaProps: spec.SchemaProps{ 22933 Description: "storagePool is the ScaleIO Storage Pool associated with the protection domain.", 22934 Type: []string{"string"}, 22935 Format: "", 22936 }, 22937 }, 22938 "storageMode": { 22939 SchemaProps: spec.SchemaProps{ 22940 Description: "storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.", 22941 Type: []string{"string"}, 22942 Format: "", 22943 }, 22944 }, 22945 "volumeName": { 22946 SchemaProps: spec.SchemaProps{ 22947 Description: "volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.", 22948 Type: []string{"string"}, 22949 Format: "", 22950 }, 22951 }, 22952 "fsType": { 22953 SchemaProps: spec.SchemaProps{ 22954 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\"", 22955 Type: []string{"string"}, 22956 Format: "", 22957 }, 22958 }, 22959 "readOnly": { 22960 SchemaProps: spec.SchemaProps{ 22961 Description: "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 22962 Type: []string{"boolean"}, 22963 Format: "", 22964 }, 22965 }, 22966 }, 22967 Required: []string{"gateway", "system", "secretRef"}, 22968 }, 22969 }, 22970 Dependencies: []string{ 22971 "k8s.io/api/core/v1.SecretReference"}, 22972 } 22973 } 22974 22975 func schema_k8sio_api_core_v1_ScaleIOVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 22976 return common.OpenAPIDefinition{ 22977 Schema: spec.Schema{ 22978 SchemaProps: spec.SchemaProps{ 22979 Description: "ScaleIOVolumeSource represents a persistent ScaleIO volume", 22980 Type: []string{"object"}, 22981 Properties: map[string]spec.Schema{ 22982 "gateway": { 22983 SchemaProps: spec.SchemaProps{ 22984 Description: "gateway is the host address of the ScaleIO API Gateway.", 22985 Default: "", 22986 Type: []string{"string"}, 22987 Format: "", 22988 }, 22989 }, 22990 "system": { 22991 SchemaProps: spec.SchemaProps{ 22992 Description: "system is the name of the storage system as configured in ScaleIO.", 22993 Default: "", 22994 Type: []string{"string"}, 22995 Format: "", 22996 }, 22997 }, 22998 "secretRef": { 22999 SchemaProps: spec.SchemaProps{ 23000 Description: "secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail.", 23001 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 23002 }, 23003 }, 23004 "sslEnabled": { 23005 SchemaProps: spec.SchemaProps{ 23006 Description: "sslEnabled Flag enable/disable SSL communication with Gateway, default false", 23007 Type: []string{"boolean"}, 23008 Format: "", 23009 }, 23010 }, 23011 "protectionDomain": { 23012 SchemaProps: spec.SchemaProps{ 23013 Description: "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.", 23014 Type: []string{"string"}, 23015 Format: "", 23016 }, 23017 }, 23018 "storagePool": { 23019 SchemaProps: spec.SchemaProps{ 23020 Description: "storagePool is the ScaleIO Storage Pool associated with the protection domain.", 23021 Type: []string{"string"}, 23022 Format: "", 23023 }, 23024 }, 23025 "storageMode": { 23026 SchemaProps: spec.SchemaProps{ 23027 Description: "storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.", 23028 Type: []string{"string"}, 23029 Format: "", 23030 }, 23031 }, 23032 "volumeName": { 23033 SchemaProps: spec.SchemaProps{ 23034 Description: "volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.", 23035 Type: []string{"string"}, 23036 Format: "", 23037 }, 23038 }, 23039 "fsType": { 23040 SchemaProps: spec.SchemaProps{ 23041 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\".", 23042 Type: []string{"string"}, 23043 Format: "", 23044 }, 23045 }, 23046 "readOnly": { 23047 SchemaProps: spec.SchemaProps{ 23048 Description: "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 23049 Type: []string{"boolean"}, 23050 Format: "", 23051 }, 23052 }, 23053 }, 23054 Required: []string{"gateway", "system", "secretRef"}, 23055 }, 23056 }, 23057 Dependencies: []string{ 23058 "k8s.io/api/core/v1.LocalObjectReference"}, 23059 } 23060 } 23061 23062 func schema_k8sio_api_core_v1_ScopeSelector(ref common.ReferenceCallback) common.OpenAPIDefinition { 23063 return common.OpenAPIDefinition{ 23064 Schema: spec.Schema{ 23065 SchemaProps: spec.SchemaProps{ 23066 Description: "A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements.", 23067 Type: []string{"object"}, 23068 Properties: map[string]spec.Schema{ 23069 "matchExpressions": { 23070 SchemaProps: spec.SchemaProps{ 23071 Description: "A list of scope selector requirements by scope of the resources.", 23072 Type: []string{"array"}, 23073 Items: &spec.SchemaOrArray{ 23074 Schema: &spec.Schema{ 23075 SchemaProps: spec.SchemaProps{ 23076 Default: map[string]interface{}{}, 23077 Ref: ref("k8s.io/api/core/v1.ScopedResourceSelectorRequirement"), 23078 }, 23079 }, 23080 }, 23081 }, 23082 }, 23083 }, 23084 }, 23085 VendorExtensible: spec.VendorExtensible{ 23086 Extensions: spec.Extensions{ 23087 "x-kubernetes-map-type": "atomic", 23088 }, 23089 }, 23090 }, 23091 Dependencies: []string{ 23092 "k8s.io/api/core/v1.ScopedResourceSelectorRequirement"}, 23093 } 23094 } 23095 23096 func schema_k8sio_api_core_v1_ScopedResourceSelectorRequirement(ref common.ReferenceCallback) common.OpenAPIDefinition { 23097 return common.OpenAPIDefinition{ 23098 Schema: spec.Schema{ 23099 SchemaProps: spec.SchemaProps{ 23100 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.", 23101 Type: []string{"object"}, 23102 Properties: map[string]spec.Schema{ 23103 "scopeName": { 23104 SchemaProps: spec.SchemaProps{ 23105 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", 23106 Default: "", 23107 Type: []string{"string"}, 23108 Format: "", 23109 Enum: []interface{}{"BestEffort", "CrossNamespacePodAffinity", "NotBestEffort", "NotTerminating", "PriorityClass", "Terminating"}, 23110 }, 23111 }, 23112 "operator": { 23113 SchemaProps: spec.SchemaProps{ 23114 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\"`", 23115 Default: "", 23116 Type: []string{"string"}, 23117 Format: "", 23118 Enum: []interface{}{"DoesNotExist", "Exists", "In", "NotIn"}, 23119 }, 23120 }, 23121 "values": { 23122 SchemaProps: spec.SchemaProps{ 23123 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.", 23124 Type: []string{"array"}, 23125 Items: &spec.SchemaOrArray{ 23126 Schema: &spec.Schema{ 23127 SchemaProps: spec.SchemaProps{ 23128 Default: "", 23129 Type: []string{"string"}, 23130 Format: "", 23131 }, 23132 }, 23133 }, 23134 }, 23135 }, 23136 }, 23137 Required: []string{"scopeName", "operator"}, 23138 }, 23139 }, 23140 } 23141 } 23142 23143 func schema_k8sio_api_core_v1_SeccompProfile(ref common.ReferenceCallback) common.OpenAPIDefinition { 23144 return common.OpenAPIDefinition{ 23145 Schema: spec.Schema{ 23146 SchemaProps: spec.SchemaProps{ 23147 Description: "SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.", 23148 Type: []string{"object"}, 23149 Properties: map[string]spec.Schema{ 23150 "type": { 23151 SchemaProps: spec.SchemaProps{ 23152 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).", 23153 Default: "", 23154 Type: []string{"string"}, 23155 Format: "", 23156 Enum: []interface{}{"Localhost", "RuntimeDefault", "Unconfined"}, 23157 }, 23158 }, 23159 "localhostProfile": { 23160 SchemaProps: spec.SchemaProps{ 23161 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\".", 23162 Type: []string{"string"}, 23163 Format: "", 23164 }, 23165 }, 23166 }, 23167 Required: []string{"type"}, 23168 }, 23169 VendorExtensible: spec.VendorExtensible{ 23170 Extensions: spec.Extensions{ 23171 "x-kubernetes-unions": []interface{}{ 23172 map[string]interface{}{ 23173 "discriminator": "type", 23174 "fields-to-discriminateBy": map[string]interface{}{ 23175 "localhostProfile": "LocalhostProfile", 23176 }, 23177 }, 23178 }, 23179 }, 23180 }, 23181 }, 23182 } 23183 } 23184 23185 func schema_k8sio_api_core_v1_Secret(ref common.ReferenceCallback) common.OpenAPIDefinition { 23186 return common.OpenAPIDefinition{ 23187 Schema: spec.Schema{ 23188 SchemaProps: spec.SchemaProps{ 23189 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.", 23190 Type: []string{"object"}, 23191 Properties: map[string]spec.Schema{ 23192 "kind": { 23193 SchemaProps: spec.SchemaProps{ 23194 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 23195 Type: []string{"string"}, 23196 Format: "", 23197 }, 23198 }, 23199 "apiVersion": { 23200 SchemaProps: spec.SchemaProps{ 23201 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 23202 Type: []string{"string"}, 23203 Format: "", 23204 }, 23205 }, 23206 "metadata": { 23207 SchemaProps: spec.SchemaProps{ 23208 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 23209 Default: map[string]interface{}{}, 23210 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 23211 }, 23212 }, 23213 "immutable": { 23214 SchemaProps: spec.SchemaProps{ 23215 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.", 23216 Type: []string{"boolean"}, 23217 Format: "", 23218 }, 23219 }, 23220 "data": { 23221 SchemaProps: spec.SchemaProps{ 23222 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", 23223 Type: []string{"object"}, 23224 AdditionalProperties: &spec.SchemaOrBool{ 23225 Allows: true, 23226 Schema: &spec.Schema{ 23227 SchemaProps: spec.SchemaProps{ 23228 Type: []string{"string"}, 23229 Format: "byte", 23230 }, 23231 }, 23232 }, 23233 }, 23234 }, 23235 "stringData": { 23236 SchemaProps: spec.SchemaProps{ 23237 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.", 23238 Type: []string{"object"}, 23239 AdditionalProperties: &spec.SchemaOrBool{ 23240 Allows: true, 23241 Schema: &spec.Schema{ 23242 SchemaProps: spec.SchemaProps{ 23243 Default: "", 23244 Type: []string{"string"}, 23245 Format: "", 23246 }, 23247 }, 23248 }, 23249 }, 23250 }, 23251 "type": { 23252 SchemaProps: spec.SchemaProps{ 23253 Description: "Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types", 23254 Type: []string{"string"}, 23255 Format: "", 23256 }, 23257 }, 23258 }, 23259 }, 23260 }, 23261 Dependencies: []string{ 23262 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 23263 } 23264 } 23265 23266 func schema_k8sio_api_core_v1_SecretEnvSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 23267 return common.OpenAPIDefinition{ 23268 Schema: spec.Schema{ 23269 SchemaProps: spec.SchemaProps{ 23270 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.", 23271 Type: []string{"object"}, 23272 Properties: map[string]spec.Schema{ 23273 "name": { 23274 SchemaProps: spec.SchemaProps{ 23275 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", 23276 Type: []string{"string"}, 23277 Format: "", 23278 }, 23279 }, 23280 "optional": { 23281 SchemaProps: spec.SchemaProps{ 23282 Description: "Specify whether the Secret must be defined", 23283 Type: []string{"boolean"}, 23284 Format: "", 23285 }, 23286 }, 23287 }, 23288 }, 23289 }, 23290 } 23291 } 23292 23293 func schema_k8sio_api_core_v1_SecretKeySelector(ref common.ReferenceCallback) common.OpenAPIDefinition { 23294 return common.OpenAPIDefinition{ 23295 Schema: spec.Schema{ 23296 SchemaProps: spec.SchemaProps{ 23297 Description: "SecretKeySelector selects a key of a Secret.", 23298 Type: []string{"object"}, 23299 Properties: map[string]spec.Schema{ 23300 "name": { 23301 SchemaProps: spec.SchemaProps{ 23302 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", 23303 Type: []string{"string"}, 23304 Format: "", 23305 }, 23306 }, 23307 "key": { 23308 SchemaProps: spec.SchemaProps{ 23309 Description: "The key of the secret to select from. Must be a valid secret key.", 23310 Default: "", 23311 Type: []string{"string"}, 23312 Format: "", 23313 }, 23314 }, 23315 "optional": { 23316 SchemaProps: spec.SchemaProps{ 23317 Description: "Specify whether the Secret or its key must be defined", 23318 Type: []string{"boolean"}, 23319 Format: "", 23320 }, 23321 }, 23322 }, 23323 Required: []string{"key"}, 23324 }, 23325 VendorExtensible: spec.VendorExtensible{ 23326 Extensions: spec.Extensions{ 23327 "x-kubernetes-map-type": "atomic", 23328 }, 23329 }, 23330 }, 23331 } 23332 } 23333 23334 func schema_k8sio_api_core_v1_SecretList(ref common.ReferenceCallback) common.OpenAPIDefinition { 23335 return common.OpenAPIDefinition{ 23336 Schema: spec.Schema{ 23337 SchemaProps: spec.SchemaProps{ 23338 Description: "SecretList is a list of Secret.", 23339 Type: []string{"object"}, 23340 Properties: map[string]spec.Schema{ 23341 "kind": { 23342 SchemaProps: spec.SchemaProps{ 23343 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 23344 Type: []string{"string"}, 23345 Format: "", 23346 }, 23347 }, 23348 "apiVersion": { 23349 SchemaProps: spec.SchemaProps{ 23350 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 23351 Type: []string{"string"}, 23352 Format: "", 23353 }, 23354 }, 23355 "metadata": { 23356 SchemaProps: spec.SchemaProps{ 23357 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 23358 Default: map[string]interface{}{}, 23359 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 23360 }, 23361 }, 23362 "items": { 23363 SchemaProps: spec.SchemaProps{ 23364 Description: "Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret", 23365 Type: []string{"array"}, 23366 Items: &spec.SchemaOrArray{ 23367 Schema: &spec.Schema{ 23368 SchemaProps: spec.SchemaProps{ 23369 Default: map[string]interface{}{}, 23370 Ref: ref("k8s.io/api/core/v1.Secret"), 23371 }, 23372 }, 23373 }, 23374 }, 23375 }, 23376 }, 23377 Required: []string{"items"}, 23378 }, 23379 }, 23380 Dependencies: []string{ 23381 "k8s.io/api/core/v1.Secret", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 23382 } 23383 } 23384 23385 func schema_k8sio_api_core_v1_SecretProjection(ref common.ReferenceCallback) common.OpenAPIDefinition { 23386 return common.OpenAPIDefinition{ 23387 Schema: spec.Schema{ 23388 SchemaProps: spec.SchemaProps{ 23389 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.", 23390 Type: []string{"object"}, 23391 Properties: map[string]spec.Schema{ 23392 "name": { 23393 SchemaProps: spec.SchemaProps{ 23394 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", 23395 Type: []string{"string"}, 23396 Format: "", 23397 }, 23398 }, 23399 "items": { 23400 SchemaProps: spec.SchemaProps{ 23401 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 '..'.", 23402 Type: []string{"array"}, 23403 Items: &spec.SchemaOrArray{ 23404 Schema: &spec.Schema{ 23405 SchemaProps: spec.SchemaProps{ 23406 Default: map[string]interface{}{}, 23407 Ref: ref("k8s.io/api/core/v1.KeyToPath"), 23408 }, 23409 }, 23410 }, 23411 }, 23412 }, 23413 "optional": { 23414 SchemaProps: spec.SchemaProps{ 23415 Description: "optional field specify whether the Secret or its key must be defined", 23416 Type: []string{"boolean"}, 23417 Format: "", 23418 }, 23419 }, 23420 }, 23421 }, 23422 }, 23423 Dependencies: []string{ 23424 "k8s.io/api/core/v1.KeyToPath"}, 23425 } 23426 } 23427 23428 func schema_k8sio_api_core_v1_SecretReference(ref common.ReferenceCallback) common.OpenAPIDefinition { 23429 return common.OpenAPIDefinition{ 23430 Schema: spec.Schema{ 23431 SchemaProps: spec.SchemaProps{ 23432 Description: "SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace", 23433 Type: []string{"object"}, 23434 Properties: map[string]spec.Schema{ 23435 "name": { 23436 SchemaProps: spec.SchemaProps{ 23437 Description: "name is unique within a namespace to reference a secret resource.", 23438 Type: []string{"string"}, 23439 Format: "", 23440 }, 23441 }, 23442 "namespace": { 23443 SchemaProps: spec.SchemaProps{ 23444 Description: "namespace defines the space within which the secret name must be unique.", 23445 Type: []string{"string"}, 23446 Format: "", 23447 }, 23448 }, 23449 }, 23450 }, 23451 VendorExtensible: spec.VendorExtensible{ 23452 Extensions: spec.Extensions{ 23453 "x-kubernetes-map-type": "atomic", 23454 }, 23455 }, 23456 }, 23457 } 23458 } 23459 23460 func schema_k8sio_api_core_v1_SecretVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 23461 return common.OpenAPIDefinition{ 23462 Schema: spec.Schema{ 23463 SchemaProps: spec.SchemaProps{ 23464 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.", 23465 Type: []string{"object"}, 23466 Properties: map[string]spec.Schema{ 23467 "secretName": { 23468 SchemaProps: spec.SchemaProps{ 23469 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", 23470 Type: []string{"string"}, 23471 Format: "", 23472 }, 23473 }, 23474 "items": { 23475 SchemaProps: spec.SchemaProps{ 23476 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 '..'.", 23477 Type: []string{"array"}, 23478 Items: &spec.SchemaOrArray{ 23479 Schema: &spec.Schema{ 23480 SchemaProps: spec.SchemaProps{ 23481 Default: map[string]interface{}{}, 23482 Ref: ref("k8s.io/api/core/v1.KeyToPath"), 23483 }, 23484 }, 23485 }, 23486 }, 23487 }, 23488 "defaultMode": { 23489 SchemaProps: spec.SchemaProps{ 23490 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.", 23491 Type: []string{"integer"}, 23492 Format: "int32", 23493 }, 23494 }, 23495 "optional": { 23496 SchemaProps: spec.SchemaProps{ 23497 Description: "optional field specify whether the Secret or its keys must be defined", 23498 Type: []string{"boolean"}, 23499 Format: "", 23500 }, 23501 }, 23502 }, 23503 }, 23504 }, 23505 Dependencies: []string{ 23506 "k8s.io/api/core/v1.KeyToPath"}, 23507 } 23508 } 23509 23510 func schema_k8sio_api_core_v1_SecurityContext(ref common.ReferenceCallback) common.OpenAPIDefinition { 23511 return common.OpenAPIDefinition{ 23512 Schema: spec.Schema{ 23513 SchemaProps: spec.SchemaProps{ 23514 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.", 23515 Type: []string{"object"}, 23516 Properties: map[string]spec.Schema{ 23517 "capabilities": { 23518 SchemaProps: spec.SchemaProps{ 23519 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.", 23520 Ref: ref("k8s.io/api/core/v1.Capabilities"), 23521 }, 23522 }, 23523 "privileged": { 23524 SchemaProps: spec.SchemaProps{ 23525 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.", 23526 Type: []string{"boolean"}, 23527 Format: "", 23528 }, 23529 }, 23530 "seLinuxOptions": { 23531 SchemaProps: spec.SchemaProps{ 23532 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.", 23533 Ref: ref("k8s.io/api/core/v1.SELinuxOptions"), 23534 }, 23535 }, 23536 "windowsOptions": { 23537 SchemaProps: spec.SchemaProps{ 23538 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.", 23539 Ref: ref("k8s.io/api/core/v1.WindowsSecurityContextOptions"), 23540 }, 23541 }, 23542 "runAsUser": { 23543 SchemaProps: spec.SchemaProps{ 23544 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.", 23545 Type: []string{"integer"}, 23546 Format: "int64", 23547 }, 23548 }, 23549 "runAsGroup": { 23550 SchemaProps: spec.SchemaProps{ 23551 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.", 23552 Type: []string{"integer"}, 23553 Format: "int64", 23554 }, 23555 }, 23556 "runAsNonRoot": { 23557 SchemaProps: spec.SchemaProps{ 23558 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.", 23559 Type: []string{"boolean"}, 23560 Format: "", 23561 }, 23562 }, 23563 "readOnlyRootFilesystem": { 23564 SchemaProps: spec.SchemaProps{ 23565 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.", 23566 Type: []string{"boolean"}, 23567 Format: "", 23568 }, 23569 }, 23570 "allowPrivilegeEscalation": { 23571 SchemaProps: spec.SchemaProps{ 23572 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.", 23573 Type: []string{"boolean"}, 23574 Format: "", 23575 }, 23576 }, 23577 "procMount": { 23578 SchemaProps: spec.SchemaProps{ 23579 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.", 23580 Type: []string{"string"}, 23581 Format: "", 23582 Enum: []interface{}{"Default", "Unmasked"}, 23583 }, 23584 }, 23585 "seccompProfile": { 23586 SchemaProps: spec.SchemaProps{ 23587 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.", 23588 Ref: ref("k8s.io/api/core/v1.SeccompProfile"), 23589 }, 23590 }, 23591 }, 23592 }, 23593 }, 23594 Dependencies: []string{ 23595 "k8s.io/api/core/v1.Capabilities", "k8s.io/api/core/v1.SELinuxOptions", "k8s.io/api/core/v1.SeccompProfile", "k8s.io/api/core/v1.WindowsSecurityContextOptions"}, 23596 } 23597 } 23598 23599 func schema_k8sio_api_core_v1_SerializedReference(ref common.ReferenceCallback) common.OpenAPIDefinition { 23600 return common.OpenAPIDefinition{ 23601 Schema: spec.Schema{ 23602 SchemaProps: spec.SchemaProps{ 23603 Description: "SerializedReference is a reference to serialized object.", 23604 Type: []string{"object"}, 23605 Properties: map[string]spec.Schema{ 23606 "kind": { 23607 SchemaProps: spec.SchemaProps{ 23608 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 23609 Type: []string{"string"}, 23610 Format: "", 23611 }, 23612 }, 23613 "apiVersion": { 23614 SchemaProps: spec.SchemaProps{ 23615 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 23616 Type: []string{"string"}, 23617 Format: "", 23618 }, 23619 }, 23620 "reference": { 23621 SchemaProps: spec.SchemaProps{ 23622 Description: "The reference to an object in the system.", 23623 Default: map[string]interface{}{}, 23624 Ref: ref("k8s.io/api/core/v1.ObjectReference"), 23625 }, 23626 }, 23627 }, 23628 }, 23629 }, 23630 Dependencies: []string{ 23631 "k8s.io/api/core/v1.ObjectReference"}, 23632 } 23633 } 23634 23635 func schema_k8sio_api_core_v1_Service(ref common.ReferenceCallback) common.OpenAPIDefinition { 23636 return common.OpenAPIDefinition{ 23637 Schema: spec.Schema{ 23638 SchemaProps: spec.SchemaProps{ 23639 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.", 23640 Type: []string{"object"}, 23641 Properties: map[string]spec.Schema{ 23642 "kind": { 23643 SchemaProps: spec.SchemaProps{ 23644 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 23645 Type: []string{"string"}, 23646 Format: "", 23647 }, 23648 }, 23649 "apiVersion": { 23650 SchemaProps: spec.SchemaProps{ 23651 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 23652 Type: []string{"string"}, 23653 Format: "", 23654 }, 23655 }, 23656 "metadata": { 23657 SchemaProps: spec.SchemaProps{ 23658 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 23659 Default: map[string]interface{}{}, 23660 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 23661 }, 23662 }, 23663 "spec": { 23664 SchemaProps: spec.SchemaProps{ 23665 Description: "Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", 23666 Default: map[string]interface{}{}, 23667 Ref: ref("k8s.io/api/core/v1.ServiceSpec"), 23668 }, 23669 }, 23670 "status": { 23671 SchemaProps: spec.SchemaProps{ 23672 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", 23673 Default: map[string]interface{}{}, 23674 Ref: ref("k8s.io/api/core/v1.ServiceStatus"), 23675 }, 23676 }, 23677 }, 23678 }, 23679 }, 23680 Dependencies: []string{ 23681 "k8s.io/api/core/v1.ServiceSpec", "k8s.io/api/core/v1.ServiceStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 23682 } 23683 } 23684 23685 func schema_k8sio_api_core_v1_ServiceAccount(ref common.ReferenceCallback) common.OpenAPIDefinition { 23686 return common.OpenAPIDefinition{ 23687 Schema: spec.Schema{ 23688 SchemaProps: spec.SchemaProps{ 23689 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", 23690 Type: []string{"object"}, 23691 Properties: map[string]spec.Schema{ 23692 "kind": { 23693 SchemaProps: spec.SchemaProps{ 23694 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 23695 Type: []string{"string"}, 23696 Format: "", 23697 }, 23698 }, 23699 "apiVersion": { 23700 SchemaProps: spec.SchemaProps{ 23701 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 23702 Type: []string{"string"}, 23703 Format: "", 23704 }, 23705 }, 23706 "metadata": { 23707 SchemaProps: spec.SchemaProps{ 23708 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 23709 Default: map[string]interface{}{}, 23710 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 23711 }, 23712 }, 23713 "secrets": { 23714 VendorExtensible: spec.VendorExtensible{ 23715 Extensions: spec.Extensions{ 23716 "x-kubernetes-patch-merge-key": "name", 23717 "x-kubernetes-patch-strategy": "merge", 23718 }, 23719 }, 23720 SchemaProps: spec.SchemaProps{ 23721 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", 23722 Type: []string{"array"}, 23723 Items: &spec.SchemaOrArray{ 23724 Schema: &spec.Schema{ 23725 SchemaProps: spec.SchemaProps{ 23726 Default: map[string]interface{}{}, 23727 Ref: ref("k8s.io/api/core/v1.ObjectReference"), 23728 }, 23729 }, 23730 }, 23731 }, 23732 }, 23733 "imagePullSecrets": { 23734 SchemaProps: spec.SchemaProps{ 23735 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", 23736 Type: []string{"array"}, 23737 Items: &spec.SchemaOrArray{ 23738 Schema: &spec.Schema{ 23739 SchemaProps: spec.SchemaProps{ 23740 Default: map[string]interface{}{}, 23741 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 23742 }, 23743 }, 23744 }, 23745 }, 23746 }, 23747 "automountServiceAccountToken": { 23748 SchemaProps: spec.SchemaProps{ 23749 Description: "AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level.", 23750 Type: []string{"boolean"}, 23751 Format: "", 23752 }, 23753 }, 23754 }, 23755 }, 23756 }, 23757 Dependencies: []string{ 23758 "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/api/core/v1.ObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 23759 } 23760 } 23761 23762 func schema_k8sio_api_core_v1_ServiceAccountList(ref common.ReferenceCallback) common.OpenAPIDefinition { 23763 return common.OpenAPIDefinition{ 23764 Schema: spec.Schema{ 23765 SchemaProps: spec.SchemaProps{ 23766 Description: "ServiceAccountList is a list of ServiceAccount objects", 23767 Type: []string{"object"}, 23768 Properties: map[string]spec.Schema{ 23769 "kind": { 23770 SchemaProps: spec.SchemaProps{ 23771 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 23772 Type: []string{"string"}, 23773 Format: "", 23774 }, 23775 }, 23776 "apiVersion": { 23777 SchemaProps: spec.SchemaProps{ 23778 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 23779 Type: []string{"string"}, 23780 Format: "", 23781 }, 23782 }, 23783 "metadata": { 23784 SchemaProps: spec.SchemaProps{ 23785 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 23786 Default: map[string]interface{}{}, 23787 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 23788 }, 23789 }, 23790 "items": { 23791 SchemaProps: spec.SchemaProps{ 23792 Description: "List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/", 23793 Type: []string{"array"}, 23794 Items: &spec.SchemaOrArray{ 23795 Schema: &spec.Schema{ 23796 SchemaProps: spec.SchemaProps{ 23797 Default: map[string]interface{}{}, 23798 Ref: ref("k8s.io/api/core/v1.ServiceAccount"), 23799 }, 23800 }, 23801 }, 23802 }, 23803 }, 23804 }, 23805 Required: []string{"items"}, 23806 }, 23807 }, 23808 Dependencies: []string{ 23809 "k8s.io/api/core/v1.ServiceAccount", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 23810 } 23811 } 23812 23813 func schema_k8sio_api_core_v1_ServiceAccountTokenProjection(ref common.ReferenceCallback) common.OpenAPIDefinition { 23814 return common.OpenAPIDefinition{ 23815 Schema: spec.Schema{ 23816 SchemaProps: spec.SchemaProps{ 23817 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).", 23818 Type: []string{"object"}, 23819 Properties: map[string]spec.Schema{ 23820 "audience": { 23821 SchemaProps: spec.SchemaProps{ 23822 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.", 23823 Type: []string{"string"}, 23824 Format: "", 23825 }, 23826 }, 23827 "expirationSeconds": { 23828 SchemaProps: spec.SchemaProps{ 23829 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.", 23830 Type: []string{"integer"}, 23831 Format: "int64", 23832 }, 23833 }, 23834 "path": { 23835 SchemaProps: spec.SchemaProps{ 23836 Description: "path is the path relative to the mount point of the file to project the token into.", 23837 Default: "", 23838 Type: []string{"string"}, 23839 Format: "", 23840 }, 23841 }, 23842 }, 23843 Required: []string{"path"}, 23844 }, 23845 }, 23846 } 23847 } 23848 23849 func schema_k8sio_api_core_v1_ServiceList(ref common.ReferenceCallback) common.OpenAPIDefinition { 23850 return common.OpenAPIDefinition{ 23851 Schema: spec.Schema{ 23852 SchemaProps: spec.SchemaProps{ 23853 Description: "ServiceList holds a list of services.", 23854 Type: []string{"object"}, 23855 Properties: map[string]spec.Schema{ 23856 "kind": { 23857 SchemaProps: spec.SchemaProps{ 23858 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 23859 Type: []string{"string"}, 23860 Format: "", 23861 }, 23862 }, 23863 "apiVersion": { 23864 SchemaProps: spec.SchemaProps{ 23865 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 23866 Type: []string{"string"}, 23867 Format: "", 23868 }, 23869 }, 23870 "metadata": { 23871 SchemaProps: spec.SchemaProps{ 23872 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 23873 Default: map[string]interface{}{}, 23874 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 23875 }, 23876 }, 23877 "items": { 23878 SchemaProps: spec.SchemaProps{ 23879 Description: "List of services", 23880 Type: []string{"array"}, 23881 Items: &spec.SchemaOrArray{ 23882 Schema: &spec.Schema{ 23883 SchemaProps: spec.SchemaProps{ 23884 Default: map[string]interface{}{}, 23885 Ref: ref("k8s.io/api/core/v1.Service"), 23886 }, 23887 }, 23888 }, 23889 }, 23890 }, 23891 }, 23892 Required: []string{"items"}, 23893 }, 23894 }, 23895 Dependencies: []string{ 23896 "k8s.io/api/core/v1.Service", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 23897 } 23898 } 23899 23900 func schema_k8sio_api_core_v1_ServicePort(ref common.ReferenceCallback) common.OpenAPIDefinition { 23901 return common.OpenAPIDefinition{ 23902 Schema: spec.Schema{ 23903 SchemaProps: spec.SchemaProps{ 23904 Description: "ServicePort contains information on service's port.", 23905 Type: []string{"object"}, 23906 Properties: map[string]spec.Schema{ 23907 "name": { 23908 SchemaProps: spec.SchemaProps{ 23909 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.", 23910 Type: []string{"string"}, 23911 Format: "", 23912 }, 23913 }, 23914 "protocol": { 23915 SchemaProps: spec.SchemaProps{ 23916 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.", 23917 Default: "TCP", 23918 Type: []string{"string"}, 23919 Format: "", 23920 Enum: []interface{}{"SCTP", "TCP", "UDP"}, 23921 }, 23922 }, 23923 "appProtocol": { 23924 SchemaProps: spec.SchemaProps{ 23925 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.", 23926 Type: []string{"string"}, 23927 Format: "", 23928 }, 23929 }, 23930 "port": { 23931 SchemaProps: spec.SchemaProps{ 23932 Description: "The port that will be exposed by this service.", 23933 Default: 0, 23934 Type: []string{"integer"}, 23935 Format: "int32", 23936 }, 23937 }, 23938 "targetPort": { 23939 SchemaProps: spec.SchemaProps{ 23940 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", 23941 Default: map[string]interface{}{}, 23942 Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), 23943 }, 23944 }, 23945 "nodePort": { 23946 SchemaProps: spec.SchemaProps{ 23947 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", 23948 Type: []string{"integer"}, 23949 Format: "int32", 23950 }, 23951 }, 23952 }, 23953 Required: []string{"port"}, 23954 }, 23955 }, 23956 Dependencies: []string{ 23957 "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, 23958 } 23959 } 23960 23961 func schema_k8sio_api_core_v1_ServiceProxyOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 23962 return common.OpenAPIDefinition{ 23963 Schema: spec.Schema{ 23964 SchemaProps: spec.SchemaProps{ 23965 Description: "ServiceProxyOptions is the query options to a Service's proxy call.", 23966 Type: []string{"object"}, 23967 Properties: map[string]spec.Schema{ 23968 "kind": { 23969 SchemaProps: spec.SchemaProps{ 23970 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 23971 Type: []string{"string"}, 23972 Format: "", 23973 }, 23974 }, 23975 "apiVersion": { 23976 SchemaProps: spec.SchemaProps{ 23977 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 23978 Type: []string{"string"}, 23979 Format: "", 23980 }, 23981 }, 23982 "path": { 23983 SchemaProps: spec.SchemaProps{ 23984 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.", 23985 Type: []string{"string"}, 23986 Format: "", 23987 }, 23988 }, 23989 }, 23990 }, 23991 }, 23992 } 23993 } 23994 23995 func schema_k8sio_api_core_v1_ServiceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 23996 return common.OpenAPIDefinition{ 23997 Schema: spec.Schema{ 23998 SchemaProps: spec.SchemaProps{ 23999 Description: "ServiceSpec describes the attributes that a user creates on a service.", 24000 Type: []string{"object"}, 24001 Properties: map[string]spec.Schema{ 24002 "ports": { 24003 VendorExtensible: spec.VendorExtensible{ 24004 Extensions: spec.Extensions{ 24005 "x-kubernetes-list-map-keys": []interface{}{ 24006 "port", 24007 "protocol", 24008 }, 24009 "x-kubernetes-list-type": "map", 24010 "x-kubernetes-patch-merge-key": "port", 24011 "x-kubernetes-patch-strategy": "merge", 24012 }, 24013 }, 24014 SchemaProps: spec.SchemaProps{ 24015 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", 24016 Type: []string{"array"}, 24017 Items: &spec.SchemaOrArray{ 24018 Schema: &spec.Schema{ 24019 SchemaProps: spec.SchemaProps{ 24020 Default: map[string]interface{}{}, 24021 Ref: ref("k8s.io/api/core/v1.ServicePort"), 24022 }, 24023 }, 24024 }, 24025 }, 24026 }, 24027 "selector": { 24028 VendorExtensible: spec.VendorExtensible{ 24029 Extensions: spec.Extensions{ 24030 "x-kubernetes-map-type": "atomic", 24031 }, 24032 }, 24033 SchemaProps: spec.SchemaProps{ 24034 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/", 24035 Type: []string{"object"}, 24036 AdditionalProperties: &spec.SchemaOrBool{ 24037 Allows: true, 24038 Schema: &spec.Schema{ 24039 SchemaProps: spec.SchemaProps{ 24040 Default: "", 24041 Type: []string{"string"}, 24042 Format: "", 24043 }, 24044 }, 24045 }, 24046 }, 24047 }, 24048 "clusterIP": { 24049 SchemaProps: spec.SchemaProps{ 24050 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", 24051 Type: []string{"string"}, 24052 Format: "", 24053 }, 24054 }, 24055 "clusterIPs": { 24056 VendorExtensible: spec.VendorExtensible{ 24057 Extensions: spec.Extensions{ 24058 "x-kubernetes-list-type": "atomic", 24059 }, 24060 }, 24061 SchemaProps: spec.SchemaProps{ 24062 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", 24063 Type: []string{"array"}, 24064 Items: &spec.SchemaOrArray{ 24065 Schema: &spec.Schema{ 24066 SchemaProps: spec.SchemaProps{ 24067 Default: "", 24068 Type: []string{"string"}, 24069 Format: "", 24070 }, 24071 }, 24072 }, 24073 }, 24074 }, 24075 "type": { 24076 SchemaProps: spec.SchemaProps{ 24077 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.", 24078 Type: []string{"string"}, 24079 Format: "", 24080 Enum: []interface{}{"ClusterIP", "ExternalName", "LoadBalancer", "NodePort"}, 24081 }, 24082 }, 24083 "externalIPs": { 24084 SchemaProps: spec.SchemaProps{ 24085 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.", 24086 Type: []string{"array"}, 24087 Items: &spec.SchemaOrArray{ 24088 Schema: &spec.Schema{ 24089 SchemaProps: spec.SchemaProps{ 24090 Default: "", 24091 Type: []string{"string"}, 24092 Format: "", 24093 }, 24094 }, 24095 }, 24096 }, 24097 }, 24098 "sessionAffinity": { 24099 SchemaProps: spec.SchemaProps{ 24100 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.", 24101 Type: []string{"string"}, 24102 Format: "", 24103 Enum: []interface{}{"ClientIP", "None"}, 24104 }, 24105 }, 24106 "loadBalancerIP": { 24107 SchemaProps: spec.SchemaProps{ 24108 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.", 24109 Type: []string{"string"}, 24110 Format: "", 24111 }, 24112 }, 24113 "loadBalancerSourceRanges": { 24114 SchemaProps: spec.SchemaProps{ 24115 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/", 24116 Type: []string{"array"}, 24117 Items: &spec.SchemaOrArray{ 24118 Schema: &spec.Schema{ 24119 SchemaProps: spec.SchemaProps{ 24120 Default: "", 24121 Type: []string{"string"}, 24122 Format: "", 24123 }, 24124 }, 24125 }, 24126 }, 24127 }, 24128 "externalName": { 24129 SchemaProps: spec.SchemaProps{ 24130 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\".", 24131 Type: []string{"string"}, 24132 Format: "", 24133 }, 24134 }, 24135 "externalTrafficPolicy": { 24136 SchemaProps: spec.SchemaProps{ 24137 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).", 24138 Type: []string{"string"}, 24139 Format: "", 24140 Enum: []interface{}{"Cluster", "Cluster", "Local", "Local"}, 24141 }, 24142 }, 24143 "healthCheckNodePort": { 24144 SchemaProps: spec.SchemaProps{ 24145 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.", 24146 Type: []string{"integer"}, 24147 Format: "int32", 24148 }, 24149 }, 24150 "publishNotReadyAddresses": { 24151 SchemaProps: spec.SchemaProps{ 24152 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.", 24153 Type: []string{"boolean"}, 24154 Format: "", 24155 }, 24156 }, 24157 "sessionAffinityConfig": { 24158 SchemaProps: spec.SchemaProps{ 24159 Description: "sessionAffinityConfig contains the configurations of session affinity.", 24160 Ref: ref("k8s.io/api/core/v1.SessionAffinityConfig"), 24161 }, 24162 }, 24163 "ipFamilies": { 24164 VendorExtensible: spec.VendorExtensible{ 24165 Extensions: spec.Extensions{ 24166 "x-kubernetes-list-type": "atomic", 24167 }, 24168 }, 24169 SchemaProps: spec.SchemaProps{ 24170 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.", 24171 Type: []string{"array"}, 24172 Items: &spec.SchemaOrArray{ 24173 Schema: &spec.Schema{ 24174 SchemaProps: spec.SchemaProps{ 24175 Default: "", 24176 Type: []string{"string"}, 24177 Format: "", 24178 }, 24179 }, 24180 }, 24181 }, 24182 }, 24183 "ipFamilyPolicy": { 24184 SchemaProps: spec.SchemaProps{ 24185 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", 24186 Type: []string{"string"}, 24187 Format: "", 24188 Enum: []interface{}{"PreferDualStack", "RequireDualStack", "SingleStack"}, 24189 }, 24190 }, 24191 "allocateLoadBalancerNodePorts": { 24192 SchemaProps: spec.SchemaProps{ 24193 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.", 24194 Type: []string{"boolean"}, 24195 Format: "", 24196 }, 24197 }, 24198 "loadBalancerClass": { 24199 SchemaProps: spec.SchemaProps{ 24200 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.", 24201 Type: []string{"string"}, 24202 Format: "", 24203 }, 24204 }, 24205 "internalTrafficPolicy": { 24206 SchemaProps: spec.SchemaProps{ 24207 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).", 24208 Type: []string{"string"}, 24209 Format: "", 24210 Enum: []interface{}{"Cluster", "Local"}, 24211 }, 24212 }, 24213 }, 24214 }, 24215 }, 24216 Dependencies: []string{ 24217 "k8s.io/api/core/v1.ServicePort", "k8s.io/api/core/v1.SessionAffinityConfig"}, 24218 } 24219 } 24220 24221 func schema_k8sio_api_core_v1_ServiceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 24222 return common.OpenAPIDefinition{ 24223 Schema: spec.Schema{ 24224 SchemaProps: spec.SchemaProps{ 24225 Description: "ServiceStatus represents the current status of a service.", 24226 Type: []string{"object"}, 24227 Properties: map[string]spec.Schema{ 24228 "loadBalancer": { 24229 SchemaProps: spec.SchemaProps{ 24230 Description: "LoadBalancer contains the current status of the load-balancer, if one is present.", 24231 Default: map[string]interface{}{}, 24232 Ref: ref("k8s.io/api/core/v1.LoadBalancerStatus"), 24233 }, 24234 }, 24235 "conditions": { 24236 VendorExtensible: spec.VendorExtensible{ 24237 Extensions: spec.Extensions{ 24238 "x-kubernetes-list-map-keys": []interface{}{ 24239 "type", 24240 }, 24241 "x-kubernetes-list-type": "map", 24242 "x-kubernetes-patch-merge-key": "type", 24243 "x-kubernetes-patch-strategy": "merge", 24244 }, 24245 }, 24246 SchemaProps: spec.SchemaProps{ 24247 Description: "Current service state", 24248 Type: []string{"array"}, 24249 Items: &spec.SchemaOrArray{ 24250 Schema: &spec.Schema{ 24251 SchemaProps: spec.SchemaProps{ 24252 Default: map[string]interface{}{}, 24253 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Condition"), 24254 }, 24255 }, 24256 }, 24257 }, 24258 }, 24259 }, 24260 }, 24261 }, 24262 Dependencies: []string{ 24263 "k8s.io/api/core/v1.LoadBalancerStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.Condition"}, 24264 } 24265 } 24266 24267 func schema_k8sio_api_core_v1_SessionAffinityConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 24268 return common.OpenAPIDefinition{ 24269 Schema: spec.Schema{ 24270 SchemaProps: spec.SchemaProps{ 24271 Description: "SessionAffinityConfig represents the configurations of session affinity.", 24272 Type: []string{"object"}, 24273 Properties: map[string]spec.Schema{ 24274 "clientIP": { 24275 SchemaProps: spec.SchemaProps{ 24276 Description: "clientIP contains the configurations of Client IP based session affinity.", 24277 Ref: ref("k8s.io/api/core/v1.ClientIPConfig"), 24278 }, 24279 }, 24280 }, 24281 }, 24282 }, 24283 Dependencies: []string{ 24284 "k8s.io/api/core/v1.ClientIPConfig"}, 24285 } 24286 } 24287 24288 func schema_k8sio_api_core_v1_StorageOSPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 24289 return common.OpenAPIDefinition{ 24290 Schema: spec.Schema{ 24291 SchemaProps: spec.SchemaProps{ 24292 Description: "Represents a StorageOS persistent volume resource.", 24293 Type: []string{"object"}, 24294 Properties: map[string]spec.Schema{ 24295 "volumeName": { 24296 SchemaProps: spec.SchemaProps{ 24297 Description: "volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.", 24298 Type: []string{"string"}, 24299 Format: "", 24300 }, 24301 }, 24302 "volumeNamespace": { 24303 SchemaProps: spec.SchemaProps{ 24304 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.", 24305 Type: []string{"string"}, 24306 Format: "", 24307 }, 24308 }, 24309 "fsType": { 24310 SchemaProps: spec.SchemaProps{ 24311 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.", 24312 Type: []string{"string"}, 24313 Format: "", 24314 }, 24315 }, 24316 "readOnly": { 24317 SchemaProps: spec.SchemaProps{ 24318 Description: "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 24319 Type: []string{"boolean"}, 24320 Format: "", 24321 }, 24322 }, 24323 "secretRef": { 24324 SchemaProps: spec.SchemaProps{ 24325 Description: "secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.", 24326 Ref: ref("k8s.io/api/core/v1.ObjectReference"), 24327 }, 24328 }, 24329 }, 24330 }, 24331 }, 24332 Dependencies: []string{ 24333 "k8s.io/api/core/v1.ObjectReference"}, 24334 } 24335 } 24336 24337 func schema_k8sio_api_core_v1_StorageOSVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 24338 return common.OpenAPIDefinition{ 24339 Schema: spec.Schema{ 24340 SchemaProps: spec.SchemaProps{ 24341 Description: "Represents a StorageOS persistent volume resource.", 24342 Type: []string{"object"}, 24343 Properties: map[string]spec.Schema{ 24344 "volumeName": { 24345 SchemaProps: spec.SchemaProps{ 24346 Description: "volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.", 24347 Type: []string{"string"}, 24348 Format: "", 24349 }, 24350 }, 24351 "volumeNamespace": { 24352 SchemaProps: spec.SchemaProps{ 24353 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.", 24354 Type: []string{"string"}, 24355 Format: "", 24356 }, 24357 }, 24358 "fsType": { 24359 SchemaProps: spec.SchemaProps{ 24360 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.", 24361 Type: []string{"string"}, 24362 Format: "", 24363 }, 24364 }, 24365 "readOnly": { 24366 SchemaProps: spec.SchemaProps{ 24367 Description: "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 24368 Type: []string{"boolean"}, 24369 Format: "", 24370 }, 24371 }, 24372 "secretRef": { 24373 SchemaProps: spec.SchemaProps{ 24374 Description: "secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.", 24375 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 24376 }, 24377 }, 24378 }, 24379 }, 24380 }, 24381 Dependencies: []string{ 24382 "k8s.io/api/core/v1.LocalObjectReference"}, 24383 } 24384 } 24385 24386 func schema_k8sio_api_core_v1_Sysctl(ref common.ReferenceCallback) common.OpenAPIDefinition { 24387 return common.OpenAPIDefinition{ 24388 Schema: spec.Schema{ 24389 SchemaProps: spec.SchemaProps{ 24390 Description: "Sysctl defines a kernel parameter to be set", 24391 Type: []string{"object"}, 24392 Properties: map[string]spec.Schema{ 24393 "name": { 24394 SchemaProps: spec.SchemaProps{ 24395 Description: "Name of a property to set", 24396 Default: "", 24397 Type: []string{"string"}, 24398 Format: "", 24399 }, 24400 }, 24401 "value": { 24402 SchemaProps: spec.SchemaProps{ 24403 Description: "Value of a property to set", 24404 Default: "", 24405 Type: []string{"string"}, 24406 Format: "", 24407 }, 24408 }, 24409 }, 24410 Required: []string{"name", "value"}, 24411 }, 24412 }, 24413 } 24414 } 24415 24416 func schema_k8sio_api_core_v1_TCPSocketAction(ref common.ReferenceCallback) common.OpenAPIDefinition { 24417 return common.OpenAPIDefinition{ 24418 Schema: spec.Schema{ 24419 SchemaProps: spec.SchemaProps{ 24420 Description: "TCPSocketAction describes an action based on opening a socket", 24421 Type: []string{"object"}, 24422 Properties: map[string]spec.Schema{ 24423 "port": { 24424 SchemaProps: spec.SchemaProps{ 24425 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.", 24426 Default: map[string]interface{}{}, 24427 Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), 24428 }, 24429 }, 24430 "host": { 24431 SchemaProps: spec.SchemaProps{ 24432 Description: "Optional: Host name to connect to, defaults to the pod IP.", 24433 Type: []string{"string"}, 24434 Format: "", 24435 }, 24436 }, 24437 }, 24438 Required: []string{"port"}, 24439 }, 24440 }, 24441 Dependencies: []string{ 24442 "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, 24443 } 24444 } 24445 24446 func schema_k8sio_api_core_v1_Taint(ref common.ReferenceCallback) common.OpenAPIDefinition { 24447 return common.OpenAPIDefinition{ 24448 Schema: spec.Schema{ 24449 SchemaProps: spec.SchemaProps{ 24450 Description: "The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint.", 24451 Type: []string{"object"}, 24452 Properties: map[string]spec.Schema{ 24453 "key": { 24454 SchemaProps: spec.SchemaProps{ 24455 Description: "Required. The taint key to be applied to a node.", 24456 Default: "", 24457 Type: []string{"string"}, 24458 Format: "", 24459 }, 24460 }, 24461 "value": { 24462 SchemaProps: spec.SchemaProps{ 24463 Description: "The taint value corresponding to the taint key.", 24464 Type: []string{"string"}, 24465 Format: "", 24466 }, 24467 }, 24468 "effect": { 24469 SchemaProps: spec.SchemaProps{ 24470 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.", 24471 Default: "", 24472 Type: []string{"string"}, 24473 Format: "", 24474 Enum: []interface{}{"NoExecute", "NoSchedule", "PreferNoSchedule"}, 24475 }, 24476 }, 24477 "timeAdded": { 24478 SchemaProps: spec.SchemaProps{ 24479 Description: "TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.", 24480 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 24481 }, 24482 }, 24483 }, 24484 Required: []string{"key", "effect"}, 24485 }, 24486 }, 24487 Dependencies: []string{ 24488 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 24489 } 24490 } 24491 24492 func schema_k8sio_api_core_v1_Toleration(ref common.ReferenceCallback) common.OpenAPIDefinition { 24493 return common.OpenAPIDefinition{ 24494 Schema: spec.Schema{ 24495 SchemaProps: spec.SchemaProps{ 24496 Description: "The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>.", 24497 Type: []string{"object"}, 24498 Properties: map[string]spec.Schema{ 24499 "key": { 24500 SchemaProps: spec.SchemaProps{ 24501 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.", 24502 Type: []string{"string"}, 24503 Format: "", 24504 }, 24505 }, 24506 "operator": { 24507 SchemaProps: spec.SchemaProps{ 24508 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\"`", 24509 Type: []string{"string"}, 24510 Format: "", 24511 Enum: []interface{}{"Equal", "Exists"}, 24512 }, 24513 }, 24514 "value": { 24515 SchemaProps: spec.SchemaProps{ 24516 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.", 24517 Type: []string{"string"}, 24518 Format: "", 24519 }, 24520 }, 24521 "effect": { 24522 SchemaProps: spec.SchemaProps{ 24523 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.", 24524 Type: []string{"string"}, 24525 Format: "", 24526 Enum: []interface{}{"NoExecute", "NoSchedule", "PreferNoSchedule"}, 24527 }, 24528 }, 24529 "tolerationSeconds": { 24530 SchemaProps: spec.SchemaProps{ 24531 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.", 24532 Type: []string{"integer"}, 24533 Format: "int64", 24534 }, 24535 }, 24536 }, 24537 }, 24538 }, 24539 } 24540 } 24541 24542 func schema_k8sio_api_core_v1_TopologySelectorLabelRequirement(ref common.ReferenceCallback) common.OpenAPIDefinition { 24543 return common.OpenAPIDefinition{ 24544 Schema: spec.Schema{ 24545 SchemaProps: spec.SchemaProps{ 24546 Description: "A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future.", 24547 Type: []string{"object"}, 24548 Properties: map[string]spec.Schema{ 24549 "key": { 24550 SchemaProps: spec.SchemaProps{ 24551 Description: "The label key that the selector applies to.", 24552 Default: "", 24553 Type: []string{"string"}, 24554 Format: "", 24555 }, 24556 }, 24557 "values": { 24558 SchemaProps: spec.SchemaProps{ 24559 Description: "An array of string values. One value must match the label to be selected. Each entry in Values is ORed.", 24560 Type: []string{"array"}, 24561 Items: &spec.SchemaOrArray{ 24562 Schema: &spec.Schema{ 24563 SchemaProps: spec.SchemaProps{ 24564 Default: "", 24565 Type: []string{"string"}, 24566 Format: "", 24567 }, 24568 }, 24569 }, 24570 }, 24571 }, 24572 }, 24573 Required: []string{"key", "values"}, 24574 }, 24575 }, 24576 } 24577 } 24578 24579 func schema_k8sio_api_core_v1_TopologySelectorTerm(ref common.ReferenceCallback) common.OpenAPIDefinition { 24580 return common.OpenAPIDefinition{ 24581 Schema: spec.Schema{ 24582 SchemaProps: spec.SchemaProps{ 24583 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.", 24584 Type: []string{"object"}, 24585 Properties: map[string]spec.Schema{ 24586 "matchLabelExpressions": { 24587 SchemaProps: spec.SchemaProps{ 24588 Description: "A list of topology selector requirements by labels.", 24589 Type: []string{"array"}, 24590 Items: &spec.SchemaOrArray{ 24591 Schema: &spec.Schema{ 24592 SchemaProps: spec.SchemaProps{ 24593 Default: map[string]interface{}{}, 24594 Ref: ref("k8s.io/api/core/v1.TopologySelectorLabelRequirement"), 24595 }, 24596 }, 24597 }, 24598 }, 24599 }, 24600 }, 24601 }, 24602 VendorExtensible: spec.VendorExtensible{ 24603 Extensions: spec.Extensions{ 24604 "x-kubernetes-map-type": "atomic", 24605 }, 24606 }, 24607 }, 24608 Dependencies: []string{ 24609 "k8s.io/api/core/v1.TopologySelectorLabelRequirement"}, 24610 } 24611 } 24612 24613 func schema_k8sio_api_core_v1_TopologySpreadConstraint(ref common.ReferenceCallback) common.OpenAPIDefinition { 24614 return common.OpenAPIDefinition{ 24615 Schema: spec.Schema{ 24616 SchemaProps: spec.SchemaProps{ 24617 Description: "TopologySpreadConstraint specifies how to spread matching pods among the given topology.", 24618 Type: []string{"object"}, 24619 Properties: map[string]spec.Schema{ 24620 "maxSkew": { 24621 SchemaProps: spec.SchemaProps{ 24622 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.", 24623 Default: 0, 24624 Type: []string{"integer"}, 24625 Format: "int32", 24626 }, 24627 }, 24628 "topologyKey": { 24629 SchemaProps: spec.SchemaProps{ 24630 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.", 24631 Default: "", 24632 Type: []string{"string"}, 24633 Format: "", 24634 }, 24635 }, 24636 "whenUnsatisfiable": { 24637 SchemaProps: spec.SchemaProps{ 24638 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.", 24639 Default: "", 24640 Type: []string{"string"}, 24641 Format: "", 24642 Enum: []interface{}{"DoNotSchedule", "ScheduleAnyway"}, 24643 }, 24644 }, 24645 "labelSelector": { 24646 SchemaProps: spec.SchemaProps{ 24647 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.", 24648 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), 24649 }, 24650 }, 24651 "minDomains": { 24652 SchemaProps: spec.SchemaProps{ 24653 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).", 24654 Type: []string{"integer"}, 24655 Format: "int32", 24656 }, 24657 }, 24658 "nodeAffinityPolicy": { 24659 SchemaProps: spec.SchemaProps{ 24660 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.", 24661 Type: []string{"string"}, 24662 Format: "", 24663 Enum: []interface{}{"Honor", "Ignore"}, 24664 }, 24665 }, 24666 "nodeTaintsPolicy": { 24667 SchemaProps: spec.SchemaProps{ 24668 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.", 24669 Type: []string{"string"}, 24670 Format: "", 24671 Enum: []interface{}{"Honor", "Ignore"}, 24672 }, 24673 }, 24674 "matchLabelKeys": { 24675 VendorExtensible: spec.VendorExtensible{ 24676 Extensions: spec.Extensions{ 24677 "x-kubernetes-list-type": "atomic", 24678 }, 24679 }, 24680 SchemaProps: spec.SchemaProps{ 24681 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).", 24682 Type: []string{"array"}, 24683 Items: &spec.SchemaOrArray{ 24684 Schema: &spec.Schema{ 24685 SchemaProps: spec.SchemaProps{ 24686 Default: "", 24687 Type: []string{"string"}, 24688 Format: "", 24689 }, 24690 }, 24691 }, 24692 }, 24693 }, 24694 }, 24695 Required: []string{"maxSkew", "topologyKey", "whenUnsatisfiable"}, 24696 }, 24697 }, 24698 Dependencies: []string{ 24699 "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, 24700 } 24701 } 24702 24703 func schema_k8sio_api_core_v1_TypedLocalObjectReference(ref common.ReferenceCallback) common.OpenAPIDefinition { 24704 return common.OpenAPIDefinition{ 24705 Schema: spec.Schema{ 24706 SchemaProps: spec.SchemaProps{ 24707 Description: "TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.", 24708 Type: []string{"object"}, 24709 Properties: map[string]spec.Schema{ 24710 "apiGroup": { 24711 SchemaProps: spec.SchemaProps{ 24712 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.", 24713 Type: []string{"string"}, 24714 Format: "", 24715 }, 24716 }, 24717 "kind": { 24718 SchemaProps: spec.SchemaProps{ 24719 Description: "Kind is the type of resource being referenced", 24720 Default: "", 24721 Type: []string{"string"}, 24722 Format: "", 24723 }, 24724 }, 24725 "name": { 24726 SchemaProps: spec.SchemaProps{ 24727 Description: "Name is the name of resource being referenced", 24728 Default: "", 24729 Type: []string{"string"}, 24730 Format: "", 24731 }, 24732 }, 24733 }, 24734 Required: []string{"kind", "name"}, 24735 }, 24736 VendorExtensible: spec.VendorExtensible{ 24737 Extensions: spec.Extensions{ 24738 "x-kubernetes-map-type": "atomic", 24739 }, 24740 }, 24741 }, 24742 } 24743 } 24744 24745 func schema_k8sio_api_core_v1_TypedObjectReference(ref common.ReferenceCallback) common.OpenAPIDefinition { 24746 return common.OpenAPIDefinition{ 24747 Schema: spec.Schema{ 24748 SchemaProps: spec.SchemaProps{ 24749 Type: []string{"object"}, 24750 Properties: map[string]spec.Schema{ 24751 "apiGroup": { 24752 SchemaProps: spec.SchemaProps{ 24753 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.", 24754 Type: []string{"string"}, 24755 Format: "", 24756 }, 24757 }, 24758 "kind": { 24759 SchemaProps: spec.SchemaProps{ 24760 Description: "Kind is the type of resource being referenced", 24761 Default: "", 24762 Type: []string{"string"}, 24763 Format: "", 24764 }, 24765 }, 24766 "name": { 24767 SchemaProps: spec.SchemaProps{ 24768 Description: "Name is the name of resource being referenced", 24769 Default: "", 24770 Type: []string{"string"}, 24771 Format: "", 24772 }, 24773 }, 24774 "namespace": { 24775 SchemaProps: spec.SchemaProps{ 24776 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.", 24777 Type: []string{"string"}, 24778 Format: "", 24779 }, 24780 }, 24781 }, 24782 Required: []string{"kind", "name"}, 24783 }, 24784 }, 24785 } 24786 } 24787 24788 func schema_k8sio_api_core_v1_Volume(ref common.ReferenceCallback) common.OpenAPIDefinition { 24789 return common.OpenAPIDefinition{ 24790 Schema: spec.Schema{ 24791 SchemaProps: spec.SchemaProps{ 24792 Description: "Volume represents a named volume in a pod that may be accessed by any container in the pod.", 24793 Type: []string{"object"}, 24794 Properties: map[string]spec.Schema{ 24795 "name": { 24796 SchemaProps: spec.SchemaProps{ 24797 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", 24798 Default: "", 24799 Type: []string{"string"}, 24800 Format: "", 24801 }, 24802 }, 24803 "hostPath": { 24804 SchemaProps: spec.SchemaProps{ 24805 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", 24806 Ref: ref("k8s.io/api/core/v1.HostPathVolumeSource"), 24807 }, 24808 }, 24809 "emptyDir": { 24810 SchemaProps: spec.SchemaProps{ 24811 Description: "emptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", 24812 Ref: ref("k8s.io/api/core/v1.EmptyDirVolumeSource"), 24813 }, 24814 }, 24815 "gcePersistentDisk": { 24816 SchemaProps: spec.SchemaProps{ 24817 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", 24818 Ref: ref("k8s.io/api/core/v1.GCEPersistentDiskVolumeSource"), 24819 }, 24820 }, 24821 "awsElasticBlockStore": { 24822 SchemaProps: spec.SchemaProps{ 24823 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", 24824 Ref: ref("k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource"), 24825 }, 24826 }, 24827 "gitRepo": { 24828 SchemaProps: spec.SchemaProps{ 24829 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.", 24830 Ref: ref("k8s.io/api/core/v1.GitRepoVolumeSource"), 24831 }, 24832 }, 24833 "secret": { 24834 SchemaProps: spec.SchemaProps{ 24835 Description: "secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret", 24836 Ref: ref("k8s.io/api/core/v1.SecretVolumeSource"), 24837 }, 24838 }, 24839 "nfs": { 24840 SchemaProps: spec.SchemaProps{ 24841 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", 24842 Ref: ref("k8s.io/api/core/v1.NFSVolumeSource"), 24843 }, 24844 }, 24845 "iscsi": { 24846 SchemaProps: spec.SchemaProps{ 24847 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", 24848 Ref: ref("k8s.io/api/core/v1.ISCSIVolumeSource"), 24849 }, 24850 }, 24851 "glusterfs": { 24852 SchemaProps: spec.SchemaProps{ 24853 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", 24854 Ref: ref("k8s.io/api/core/v1.GlusterfsVolumeSource"), 24855 }, 24856 }, 24857 "persistentVolumeClaim": { 24858 SchemaProps: spec.SchemaProps{ 24859 Description: "persistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", 24860 Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimVolumeSource"), 24861 }, 24862 }, 24863 "rbd": { 24864 SchemaProps: spec.SchemaProps{ 24865 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", 24866 Ref: ref("k8s.io/api/core/v1.RBDVolumeSource"), 24867 }, 24868 }, 24869 "flexVolume": { 24870 SchemaProps: spec.SchemaProps{ 24871 Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", 24872 Ref: ref("k8s.io/api/core/v1.FlexVolumeSource"), 24873 }, 24874 }, 24875 "cinder": { 24876 SchemaProps: spec.SchemaProps{ 24877 Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", 24878 Ref: ref("k8s.io/api/core/v1.CinderVolumeSource"), 24879 }, 24880 }, 24881 "cephfs": { 24882 SchemaProps: spec.SchemaProps{ 24883 Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime", 24884 Ref: ref("k8s.io/api/core/v1.CephFSVolumeSource"), 24885 }, 24886 }, 24887 "flocker": { 24888 SchemaProps: spec.SchemaProps{ 24889 Description: "flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running", 24890 Ref: ref("k8s.io/api/core/v1.FlockerVolumeSource"), 24891 }, 24892 }, 24893 "downwardAPI": { 24894 SchemaProps: spec.SchemaProps{ 24895 Description: "downwardAPI represents downward API about the pod that should populate this volume", 24896 Ref: ref("k8s.io/api/core/v1.DownwardAPIVolumeSource"), 24897 }, 24898 }, 24899 "fc": { 24900 SchemaProps: spec.SchemaProps{ 24901 Description: "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", 24902 Ref: ref("k8s.io/api/core/v1.FCVolumeSource"), 24903 }, 24904 }, 24905 "azureFile": { 24906 SchemaProps: spec.SchemaProps{ 24907 Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod.", 24908 Ref: ref("k8s.io/api/core/v1.AzureFileVolumeSource"), 24909 }, 24910 }, 24911 "configMap": { 24912 SchemaProps: spec.SchemaProps{ 24913 Description: "configMap represents a configMap that should populate this volume", 24914 Ref: ref("k8s.io/api/core/v1.ConfigMapVolumeSource"), 24915 }, 24916 }, 24917 "vsphereVolume": { 24918 SchemaProps: spec.SchemaProps{ 24919 Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", 24920 Ref: ref("k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"), 24921 }, 24922 }, 24923 "quobyte": { 24924 SchemaProps: spec.SchemaProps{ 24925 Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime", 24926 Ref: ref("k8s.io/api/core/v1.QuobyteVolumeSource"), 24927 }, 24928 }, 24929 "azureDisk": { 24930 SchemaProps: spec.SchemaProps{ 24931 Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", 24932 Ref: ref("k8s.io/api/core/v1.AzureDiskVolumeSource"), 24933 }, 24934 }, 24935 "photonPersistentDisk": { 24936 SchemaProps: spec.SchemaProps{ 24937 Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", 24938 Ref: ref("k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource"), 24939 }, 24940 }, 24941 "projected": { 24942 SchemaProps: spec.SchemaProps{ 24943 Description: "projected items for all in one resources secrets, configmaps, and downward API", 24944 Ref: ref("k8s.io/api/core/v1.ProjectedVolumeSource"), 24945 }, 24946 }, 24947 "portworxVolume": { 24948 SchemaProps: spec.SchemaProps{ 24949 Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine", 24950 Ref: ref("k8s.io/api/core/v1.PortworxVolumeSource"), 24951 }, 24952 }, 24953 "scaleIO": { 24954 SchemaProps: spec.SchemaProps{ 24955 Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", 24956 Ref: ref("k8s.io/api/core/v1.ScaleIOVolumeSource"), 24957 }, 24958 }, 24959 "storageos": { 24960 SchemaProps: spec.SchemaProps{ 24961 Description: "storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.", 24962 Ref: ref("k8s.io/api/core/v1.StorageOSVolumeSource"), 24963 }, 24964 }, 24965 "csi": { 24966 SchemaProps: spec.SchemaProps{ 24967 Description: "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).", 24968 Ref: ref("k8s.io/api/core/v1.CSIVolumeSource"), 24969 }, 24970 }, 24971 "ephemeral": { 24972 SchemaProps: spec.SchemaProps{ 24973 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.", 24974 Ref: ref("k8s.io/api/core/v1.EphemeralVolumeSource"), 24975 }, 24976 }, 24977 }, 24978 Required: []string{"name"}, 24979 }, 24980 }, 24981 Dependencies: []string{ 24982 "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"}, 24983 } 24984 } 24985 24986 func schema_k8sio_api_core_v1_VolumeDevice(ref common.ReferenceCallback) common.OpenAPIDefinition { 24987 return common.OpenAPIDefinition{ 24988 Schema: spec.Schema{ 24989 SchemaProps: spec.SchemaProps{ 24990 Description: "volumeDevice describes a mapping of a raw block device within a container.", 24991 Type: []string{"object"}, 24992 Properties: map[string]spec.Schema{ 24993 "name": { 24994 SchemaProps: spec.SchemaProps{ 24995 Description: "name must match the name of a persistentVolumeClaim in the pod", 24996 Default: "", 24997 Type: []string{"string"}, 24998 Format: "", 24999 }, 25000 }, 25001 "devicePath": { 25002 SchemaProps: spec.SchemaProps{ 25003 Description: "devicePath is the path inside of the container that the device will be mapped to.", 25004 Default: "", 25005 Type: []string{"string"}, 25006 Format: "", 25007 }, 25008 }, 25009 }, 25010 Required: []string{"name", "devicePath"}, 25011 }, 25012 }, 25013 } 25014 } 25015 25016 func schema_k8sio_api_core_v1_VolumeMount(ref common.ReferenceCallback) common.OpenAPIDefinition { 25017 return common.OpenAPIDefinition{ 25018 Schema: spec.Schema{ 25019 SchemaProps: spec.SchemaProps{ 25020 Description: "VolumeMount describes a mounting of a Volume within a container.", 25021 Type: []string{"object"}, 25022 Properties: map[string]spec.Schema{ 25023 "name": { 25024 SchemaProps: spec.SchemaProps{ 25025 Description: "This must match the Name of a Volume.", 25026 Default: "", 25027 Type: []string{"string"}, 25028 Format: "", 25029 }, 25030 }, 25031 "readOnly": { 25032 SchemaProps: spec.SchemaProps{ 25033 Description: "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.", 25034 Type: []string{"boolean"}, 25035 Format: "", 25036 }, 25037 }, 25038 "mountPath": { 25039 SchemaProps: spec.SchemaProps{ 25040 Description: "Path within the container at which the volume should be mounted. Must not contain ':'.", 25041 Default: "", 25042 Type: []string{"string"}, 25043 Format: "", 25044 }, 25045 }, 25046 "subPath": { 25047 SchemaProps: spec.SchemaProps{ 25048 Description: "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).", 25049 Type: []string{"string"}, 25050 Format: "", 25051 }, 25052 }, 25053 "mountPropagation": { 25054 SchemaProps: spec.SchemaProps{ 25055 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.", 25056 Type: []string{"string"}, 25057 Format: "", 25058 Enum: []interface{}{"Bidirectional", "HostToContainer", "None"}, 25059 }, 25060 }, 25061 "subPathExpr": { 25062 SchemaProps: spec.SchemaProps{ 25063 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.", 25064 Type: []string{"string"}, 25065 Format: "", 25066 }, 25067 }, 25068 }, 25069 Required: []string{"name", "mountPath"}, 25070 }, 25071 }, 25072 } 25073 } 25074 25075 func schema_k8sio_api_core_v1_VolumeNodeAffinity(ref common.ReferenceCallback) common.OpenAPIDefinition { 25076 return common.OpenAPIDefinition{ 25077 Schema: spec.Schema{ 25078 SchemaProps: spec.SchemaProps{ 25079 Description: "VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from.", 25080 Type: []string{"object"}, 25081 Properties: map[string]spec.Schema{ 25082 "required": { 25083 SchemaProps: spec.SchemaProps{ 25084 Description: "required specifies hard node constraints that must be met.", 25085 Ref: ref("k8s.io/api/core/v1.NodeSelector"), 25086 }, 25087 }, 25088 }, 25089 }, 25090 }, 25091 Dependencies: []string{ 25092 "k8s.io/api/core/v1.NodeSelector"}, 25093 } 25094 } 25095 25096 func schema_k8sio_api_core_v1_VolumeProjection(ref common.ReferenceCallback) common.OpenAPIDefinition { 25097 return common.OpenAPIDefinition{ 25098 Schema: spec.Schema{ 25099 SchemaProps: spec.SchemaProps{ 25100 Description: "Projection that may be projected along with other supported volume types", 25101 Type: []string{"object"}, 25102 Properties: map[string]spec.Schema{ 25103 "secret": { 25104 SchemaProps: spec.SchemaProps{ 25105 Description: "secret information about the secret data to project", 25106 Ref: ref("k8s.io/api/core/v1.SecretProjection"), 25107 }, 25108 }, 25109 "downwardAPI": { 25110 SchemaProps: spec.SchemaProps{ 25111 Description: "downwardAPI information about the downwardAPI data to project", 25112 Ref: ref("k8s.io/api/core/v1.DownwardAPIProjection"), 25113 }, 25114 }, 25115 "configMap": { 25116 SchemaProps: spec.SchemaProps{ 25117 Description: "configMap information about the configMap data to project", 25118 Ref: ref("k8s.io/api/core/v1.ConfigMapProjection"), 25119 }, 25120 }, 25121 "serviceAccountToken": { 25122 SchemaProps: spec.SchemaProps{ 25123 Description: "serviceAccountToken is information about the serviceAccountToken data to project", 25124 Ref: ref("k8s.io/api/core/v1.ServiceAccountTokenProjection"), 25125 }, 25126 }, 25127 }, 25128 }, 25129 }, 25130 Dependencies: []string{ 25131 "k8s.io/api/core/v1.ConfigMapProjection", "k8s.io/api/core/v1.DownwardAPIProjection", "k8s.io/api/core/v1.SecretProjection", "k8s.io/api/core/v1.ServiceAccountTokenProjection"}, 25132 } 25133 } 25134 25135 func schema_k8sio_api_core_v1_VolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 25136 return common.OpenAPIDefinition{ 25137 Schema: spec.Schema{ 25138 SchemaProps: spec.SchemaProps{ 25139 Description: "Represents the source of a volume to mount. Only one of its members may be specified.", 25140 Type: []string{"object"}, 25141 Properties: map[string]spec.Schema{ 25142 "hostPath": { 25143 SchemaProps: spec.SchemaProps{ 25144 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", 25145 Ref: ref("k8s.io/api/core/v1.HostPathVolumeSource"), 25146 }, 25147 }, 25148 "emptyDir": { 25149 SchemaProps: spec.SchemaProps{ 25150 Description: "emptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", 25151 Ref: ref("k8s.io/api/core/v1.EmptyDirVolumeSource"), 25152 }, 25153 }, 25154 "gcePersistentDisk": { 25155 SchemaProps: spec.SchemaProps{ 25156 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", 25157 Ref: ref("k8s.io/api/core/v1.GCEPersistentDiskVolumeSource"), 25158 }, 25159 }, 25160 "awsElasticBlockStore": { 25161 SchemaProps: spec.SchemaProps{ 25162 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", 25163 Ref: ref("k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource"), 25164 }, 25165 }, 25166 "gitRepo": { 25167 SchemaProps: spec.SchemaProps{ 25168 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.", 25169 Ref: ref("k8s.io/api/core/v1.GitRepoVolumeSource"), 25170 }, 25171 }, 25172 "secret": { 25173 SchemaProps: spec.SchemaProps{ 25174 Description: "secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret", 25175 Ref: ref("k8s.io/api/core/v1.SecretVolumeSource"), 25176 }, 25177 }, 25178 "nfs": { 25179 SchemaProps: spec.SchemaProps{ 25180 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", 25181 Ref: ref("k8s.io/api/core/v1.NFSVolumeSource"), 25182 }, 25183 }, 25184 "iscsi": { 25185 SchemaProps: spec.SchemaProps{ 25186 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", 25187 Ref: ref("k8s.io/api/core/v1.ISCSIVolumeSource"), 25188 }, 25189 }, 25190 "glusterfs": { 25191 SchemaProps: spec.SchemaProps{ 25192 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", 25193 Ref: ref("k8s.io/api/core/v1.GlusterfsVolumeSource"), 25194 }, 25195 }, 25196 "persistentVolumeClaim": { 25197 SchemaProps: spec.SchemaProps{ 25198 Description: "persistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", 25199 Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimVolumeSource"), 25200 }, 25201 }, 25202 "rbd": { 25203 SchemaProps: spec.SchemaProps{ 25204 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", 25205 Ref: ref("k8s.io/api/core/v1.RBDVolumeSource"), 25206 }, 25207 }, 25208 "flexVolume": { 25209 SchemaProps: spec.SchemaProps{ 25210 Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", 25211 Ref: ref("k8s.io/api/core/v1.FlexVolumeSource"), 25212 }, 25213 }, 25214 "cinder": { 25215 SchemaProps: spec.SchemaProps{ 25216 Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", 25217 Ref: ref("k8s.io/api/core/v1.CinderVolumeSource"), 25218 }, 25219 }, 25220 "cephfs": { 25221 SchemaProps: spec.SchemaProps{ 25222 Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime", 25223 Ref: ref("k8s.io/api/core/v1.CephFSVolumeSource"), 25224 }, 25225 }, 25226 "flocker": { 25227 SchemaProps: spec.SchemaProps{ 25228 Description: "flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running", 25229 Ref: ref("k8s.io/api/core/v1.FlockerVolumeSource"), 25230 }, 25231 }, 25232 "downwardAPI": { 25233 SchemaProps: spec.SchemaProps{ 25234 Description: "downwardAPI represents downward API about the pod that should populate this volume", 25235 Ref: ref("k8s.io/api/core/v1.DownwardAPIVolumeSource"), 25236 }, 25237 }, 25238 "fc": { 25239 SchemaProps: spec.SchemaProps{ 25240 Description: "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", 25241 Ref: ref("k8s.io/api/core/v1.FCVolumeSource"), 25242 }, 25243 }, 25244 "azureFile": { 25245 SchemaProps: spec.SchemaProps{ 25246 Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod.", 25247 Ref: ref("k8s.io/api/core/v1.AzureFileVolumeSource"), 25248 }, 25249 }, 25250 "configMap": { 25251 SchemaProps: spec.SchemaProps{ 25252 Description: "configMap represents a configMap that should populate this volume", 25253 Ref: ref("k8s.io/api/core/v1.ConfigMapVolumeSource"), 25254 }, 25255 }, 25256 "vsphereVolume": { 25257 SchemaProps: spec.SchemaProps{ 25258 Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", 25259 Ref: ref("k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"), 25260 }, 25261 }, 25262 "quobyte": { 25263 SchemaProps: spec.SchemaProps{ 25264 Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime", 25265 Ref: ref("k8s.io/api/core/v1.QuobyteVolumeSource"), 25266 }, 25267 }, 25268 "azureDisk": { 25269 SchemaProps: spec.SchemaProps{ 25270 Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", 25271 Ref: ref("k8s.io/api/core/v1.AzureDiskVolumeSource"), 25272 }, 25273 }, 25274 "photonPersistentDisk": { 25275 SchemaProps: spec.SchemaProps{ 25276 Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", 25277 Ref: ref("k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource"), 25278 }, 25279 }, 25280 "projected": { 25281 SchemaProps: spec.SchemaProps{ 25282 Description: "projected items for all in one resources secrets, configmaps, and downward API", 25283 Ref: ref("k8s.io/api/core/v1.ProjectedVolumeSource"), 25284 }, 25285 }, 25286 "portworxVolume": { 25287 SchemaProps: spec.SchemaProps{ 25288 Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine", 25289 Ref: ref("k8s.io/api/core/v1.PortworxVolumeSource"), 25290 }, 25291 }, 25292 "scaleIO": { 25293 SchemaProps: spec.SchemaProps{ 25294 Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", 25295 Ref: ref("k8s.io/api/core/v1.ScaleIOVolumeSource"), 25296 }, 25297 }, 25298 "storageos": { 25299 SchemaProps: spec.SchemaProps{ 25300 Description: "storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.", 25301 Ref: ref("k8s.io/api/core/v1.StorageOSVolumeSource"), 25302 }, 25303 }, 25304 "csi": { 25305 SchemaProps: spec.SchemaProps{ 25306 Description: "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).", 25307 Ref: ref("k8s.io/api/core/v1.CSIVolumeSource"), 25308 }, 25309 }, 25310 "ephemeral": { 25311 SchemaProps: spec.SchemaProps{ 25312 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.", 25313 Ref: ref("k8s.io/api/core/v1.EphemeralVolumeSource"), 25314 }, 25315 }, 25316 }, 25317 }, 25318 }, 25319 Dependencies: []string{ 25320 "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"}, 25321 } 25322 } 25323 25324 func schema_k8sio_api_core_v1_VsphereVirtualDiskVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 25325 return common.OpenAPIDefinition{ 25326 Schema: spec.Schema{ 25327 SchemaProps: spec.SchemaProps{ 25328 Description: "Represents a vSphere volume resource.", 25329 Type: []string{"object"}, 25330 Properties: map[string]spec.Schema{ 25331 "volumePath": { 25332 SchemaProps: spec.SchemaProps{ 25333 Description: "volumePath is the path that identifies vSphere volume vmdk", 25334 Default: "", 25335 Type: []string{"string"}, 25336 Format: "", 25337 }, 25338 }, 25339 "fsType": { 25340 SchemaProps: spec.SchemaProps{ 25341 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.", 25342 Type: []string{"string"}, 25343 Format: "", 25344 }, 25345 }, 25346 "storagePolicyName": { 25347 SchemaProps: spec.SchemaProps{ 25348 Description: "storagePolicyName is the storage Policy Based Management (SPBM) profile name.", 25349 Type: []string{"string"}, 25350 Format: "", 25351 }, 25352 }, 25353 "storagePolicyID": { 25354 SchemaProps: spec.SchemaProps{ 25355 Description: "storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.", 25356 Type: []string{"string"}, 25357 Format: "", 25358 }, 25359 }, 25360 }, 25361 Required: []string{"volumePath"}, 25362 }, 25363 }, 25364 } 25365 } 25366 25367 func schema_k8sio_api_core_v1_WeightedPodAffinityTerm(ref common.ReferenceCallback) common.OpenAPIDefinition { 25368 return common.OpenAPIDefinition{ 25369 Schema: spec.Schema{ 25370 SchemaProps: spec.SchemaProps{ 25371 Description: "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", 25372 Type: []string{"object"}, 25373 Properties: map[string]spec.Schema{ 25374 "weight": { 25375 SchemaProps: spec.SchemaProps{ 25376 Description: "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.", 25377 Default: 0, 25378 Type: []string{"integer"}, 25379 Format: "int32", 25380 }, 25381 }, 25382 "podAffinityTerm": { 25383 SchemaProps: spec.SchemaProps{ 25384 Description: "Required. A pod affinity term, associated with the corresponding weight.", 25385 Default: map[string]interface{}{}, 25386 Ref: ref("k8s.io/api/core/v1.PodAffinityTerm"), 25387 }, 25388 }, 25389 }, 25390 Required: []string{"weight", "podAffinityTerm"}, 25391 }, 25392 }, 25393 Dependencies: []string{ 25394 "k8s.io/api/core/v1.PodAffinityTerm"}, 25395 } 25396 } 25397 25398 func schema_k8sio_api_core_v1_WindowsSecurityContextOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 25399 return common.OpenAPIDefinition{ 25400 Schema: spec.Schema{ 25401 SchemaProps: spec.SchemaProps{ 25402 Description: "WindowsSecurityContextOptions contain Windows-specific options and credentials.", 25403 Type: []string{"object"}, 25404 Properties: map[string]spec.Schema{ 25405 "gmsaCredentialSpecName": { 25406 SchemaProps: spec.SchemaProps{ 25407 Description: "GMSACredentialSpecName is the name of the GMSA credential spec to use.", 25408 Type: []string{"string"}, 25409 Format: "", 25410 }, 25411 }, 25412 "gmsaCredentialSpec": { 25413 SchemaProps: spec.SchemaProps{ 25414 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.", 25415 Type: []string{"string"}, 25416 Format: "", 25417 }, 25418 }, 25419 "runAsUserName": { 25420 SchemaProps: spec.SchemaProps{ 25421 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.", 25422 Type: []string{"string"}, 25423 Format: "", 25424 }, 25425 }, 25426 "hostProcess": { 25427 SchemaProps: spec.SchemaProps{ 25428 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.", 25429 Type: []string{"boolean"}, 25430 Format: "", 25431 }, 25432 }, 25433 }, 25434 }, 25435 }, 25436 } 25437 } 25438 25439 func schema_k8sio_api_networking_v1_HTTPIngressPath(ref common.ReferenceCallback) common.OpenAPIDefinition { 25440 return common.OpenAPIDefinition{ 25441 Schema: spec.Schema{ 25442 SchemaProps: spec.SchemaProps{ 25443 Description: "HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.", 25444 Type: []string{"object"}, 25445 Properties: map[string]spec.Schema{ 25446 "path": { 25447 SchemaProps: spec.SchemaProps{ 25448 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\".", 25449 Type: []string{"string"}, 25450 Format: "", 25451 }, 25452 }, 25453 "pathType": { 25454 SchemaProps: spec.SchemaProps{ 25455 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.", 25456 Type: []string{"string"}, 25457 Format: "", 25458 Enum: []interface{}{"Exact", "ImplementationSpecific", "Prefix"}, 25459 }, 25460 }, 25461 "backend": { 25462 SchemaProps: spec.SchemaProps{ 25463 Description: "backend defines the referenced service endpoint to which the traffic will be forwarded to.", 25464 Default: map[string]interface{}{}, 25465 Ref: ref("k8s.io/api/networking/v1.IngressBackend"), 25466 }, 25467 }, 25468 }, 25469 Required: []string{"pathType", "backend"}, 25470 }, 25471 }, 25472 Dependencies: []string{ 25473 "k8s.io/api/networking/v1.IngressBackend"}, 25474 } 25475 } 25476 25477 func schema_k8sio_api_networking_v1_HTTPIngressRuleValue(ref common.ReferenceCallback) common.OpenAPIDefinition { 25478 return common.OpenAPIDefinition{ 25479 Schema: spec.Schema{ 25480 SchemaProps: spec.SchemaProps{ 25481 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 '#'.", 25482 Type: []string{"object"}, 25483 Properties: map[string]spec.Schema{ 25484 "paths": { 25485 VendorExtensible: spec.VendorExtensible{ 25486 Extensions: spec.Extensions{ 25487 "x-kubernetes-list-type": "atomic", 25488 }, 25489 }, 25490 SchemaProps: spec.SchemaProps{ 25491 Description: "paths is a collection of paths that map requests to backends.", 25492 Type: []string{"array"}, 25493 Items: &spec.SchemaOrArray{ 25494 Schema: &spec.Schema{ 25495 SchemaProps: spec.SchemaProps{ 25496 Default: map[string]interface{}{}, 25497 Ref: ref("k8s.io/api/networking/v1.HTTPIngressPath"), 25498 }, 25499 }, 25500 }, 25501 }, 25502 }, 25503 }, 25504 Required: []string{"paths"}, 25505 }, 25506 }, 25507 Dependencies: []string{ 25508 "k8s.io/api/networking/v1.HTTPIngressPath"}, 25509 } 25510 } 25511 25512 func schema_k8sio_api_networking_v1_IPBlock(ref common.ReferenceCallback) common.OpenAPIDefinition { 25513 return common.OpenAPIDefinition{ 25514 Schema: spec.Schema{ 25515 SchemaProps: spec.SchemaProps{ 25516 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.", 25517 Type: []string{"object"}, 25518 Properties: map[string]spec.Schema{ 25519 "cidr": { 25520 SchemaProps: spec.SchemaProps{ 25521 Description: "cidr is a string representing the IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\"", 25522 Default: "", 25523 Type: []string{"string"}, 25524 Format: "", 25525 }, 25526 }, 25527 "except": { 25528 SchemaProps: spec.SchemaProps{ 25529 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", 25530 Type: []string{"array"}, 25531 Items: &spec.SchemaOrArray{ 25532 Schema: &spec.Schema{ 25533 SchemaProps: spec.SchemaProps{ 25534 Default: "", 25535 Type: []string{"string"}, 25536 Format: "", 25537 }, 25538 }, 25539 }, 25540 }, 25541 }, 25542 }, 25543 Required: []string{"cidr"}, 25544 }, 25545 }, 25546 } 25547 } 25548 25549 func schema_k8sio_api_networking_v1_Ingress(ref common.ReferenceCallback) common.OpenAPIDefinition { 25550 return common.OpenAPIDefinition{ 25551 Schema: spec.Schema{ 25552 SchemaProps: spec.SchemaProps{ 25553 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.", 25554 Type: []string{"object"}, 25555 Properties: map[string]spec.Schema{ 25556 "kind": { 25557 SchemaProps: spec.SchemaProps{ 25558 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 25559 Type: []string{"string"}, 25560 Format: "", 25561 }, 25562 }, 25563 "apiVersion": { 25564 SchemaProps: spec.SchemaProps{ 25565 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 25566 Type: []string{"string"}, 25567 Format: "", 25568 }, 25569 }, 25570 "metadata": { 25571 SchemaProps: spec.SchemaProps{ 25572 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 25573 Default: map[string]interface{}{}, 25574 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 25575 }, 25576 }, 25577 "spec": { 25578 SchemaProps: spec.SchemaProps{ 25579 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", 25580 Default: map[string]interface{}{}, 25581 Ref: ref("k8s.io/api/networking/v1.IngressSpec"), 25582 }, 25583 }, 25584 "status": { 25585 SchemaProps: spec.SchemaProps{ 25586 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", 25587 Default: map[string]interface{}{}, 25588 Ref: ref("k8s.io/api/networking/v1.IngressStatus"), 25589 }, 25590 }, 25591 }, 25592 }, 25593 }, 25594 Dependencies: []string{ 25595 "k8s.io/api/networking/v1.IngressSpec", "k8s.io/api/networking/v1.IngressStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 25596 } 25597 } 25598 25599 func schema_k8sio_api_networking_v1_IngressBackend(ref common.ReferenceCallback) common.OpenAPIDefinition { 25600 return common.OpenAPIDefinition{ 25601 Schema: spec.Schema{ 25602 SchemaProps: spec.SchemaProps{ 25603 Description: "IngressBackend describes all endpoints for a given service and port.", 25604 Type: []string{"object"}, 25605 Properties: map[string]spec.Schema{ 25606 "service": { 25607 SchemaProps: spec.SchemaProps{ 25608 Description: "service references a service as a backend. This is a mutually exclusive setting with \"Resource\".", 25609 Ref: ref("k8s.io/api/networking/v1.IngressServiceBackend"), 25610 }, 25611 }, 25612 "resource": { 25613 SchemaProps: spec.SchemaProps{ 25614 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\".", 25615 Ref: ref("k8s.io/api/core/v1.TypedLocalObjectReference"), 25616 }, 25617 }, 25618 }, 25619 }, 25620 }, 25621 Dependencies: []string{ 25622 "k8s.io/api/core/v1.TypedLocalObjectReference", "k8s.io/api/networking/v1.IngressServiceBackend"}, 25623 } 25624 } 25625 25626 func schema_k8sio_api_networking_v1_IngressClass(ref common.ReferenceCallback) common.OpenAPIDefinition { 25627 return common.OpenAPIDefinition{ 25628 Schema: spec.Schema{ 25629 SchemaProps: spec.SchemaProps{ 25630 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.", 25631 Type: []string{"object"}, 25632 Properties: map[string]spec.Schema{ 25633 "kind": { 25634 SchemaProps: spec.SchemaProps{ 25635 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 25636 Type: []string{"string"}, 25637 Format: "", 25638 }, 25639 }, 25640 "apiVersion": { 25641 SchemaProps: spec.SchemaProps{ 25642 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 25643 Type: []string{"string"}, 25644 Format: "", 25645 }, 25646 }, 25647 "metadata": { 25648 SchemaProps: spec.SchemaProps{ 25649 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 25650 Default: map[string]interface{}{}, 25651 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 25652 }, 25653 }, 25654 "spec": { 25655 SchemaProps: spec.SchemaProps{ 25656 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", 25657 Default: map[string]interface{}{}, 25658 Ref: ref("k8s.io/api/networking/v1.IngressClassSpec"), 25659 }, 25660 }, 25661 }, 25662 }, 25663 }, 25664 Dependencies: []string{ 25665 "k8s.io/api/networking/v1.IngressClassSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 25666 } 25667 } 25668 25669 func schema_k8sio_api_networking_v1_IngressClassList(ref common.ReferenceCallback) common.OpenAPIDefinition { 25670 return common.OpenAPIDefinition{ 25671 Schema: spec.Schema{ 25672 SchemaProps: spec.SchemaProps{ 25673 Description: "IngressClassList is a collection of IngressClasses.", 25674 Type: []string{"object"}, 25675 Properties: map[string]spec.Schema{ 25676 "kind": { 25677 SchemaProps: spec.SchemaProps{ 25678 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 25679 Type: []string{"string"}, 25680 Format: "", 25681 }, 25682 }, 25683 "apiVersion": { 25684 SchemaProps: spec.SchemaProps{ 25685 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 25686 Type: []string{"string"}, 25687 Format: "", 25688 }, 25689 }, 25690 "metadata": { 25691 SchemaProps: spec.SchemaProps{ 25692 Description: "Standard list metadata.", 25693 Default: map[string]interface{}{}, 25694 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 25695 }, 25696 }, 25697 "items": { 25698 SchemaProps: spec.SchemaProps{ 25699 Description: "items is the list of IngressClasses.", 25700 Type: []string{"array"}, 25701 Items: &spec.SchemaOrArray{ 25702 Schema: &spec.Schema{ 25703 SchemaProps: spec.SchemaProps{ 25704 Default: map[string]interface{}{}, 25705 Ref: ref("k8s.io/api/networking/v1.IngressClass"), 25706 }, 25707 }, 25708 }, 25709 }, 25710 }, 25711 }, 25712 Required: []string{"items"}, 25713 }, 25714 }, 25715 Dependencies: []string{ 25716 "k8s.io/api/networking/v1.IngressClass", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 25717 } 25718 } 25719 25720 func schema_k8sio_api_networking_v1_IngressClassParametersReference(ref common.ReferenceCallback) common.OpenAPIDefinition { 25721 return common.OpenAPIDefinition{ 25722 Schema: spec.Schema{ 25723 SchemaProps: spec.SchemaProps{ 25724 Description: "IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource.", 25725 Type: []string{"object"}, 25726 Properties: map[string]spec.Schema{ 25727 "apiGroup": { 25728 SchemaProps: spec.SchemaProps{ 25729 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.", 25730 Type: []string{"string"}, 25731 Format: "", 25732 }, 25733 }, 25734 "kind": { 25735 SchemaProps: spec.SchemaProps{ 25736 Description: "kind is the type of resource being referenced.", 25737 Default: "", 25738 Type: []string{"string"}, 25739 Format: "", 25740 }, 25741 }, 25742 "name": { 25743 SchemaProps: spec.SchemaProps{ 25744 Description: "name is the name of resource being referenced.", 25745 Default: "", 25746 Type: []string{"string"}, 25747 Format: "", 25748 }, 25749 }, 25750 "scope": { 25751 SchemaProps: spec.SchemaProps{ 25752 Description: "scope represents if this refers to a cluster or namespace scoped resource. This may be set to \"Cluster\" (default) or \"Namespace\".", 25753 Type: []string{"string"}, 25754 Format: "", 25755 }, 25756 }, 25757 "namespace": { 25758 SchemaProps: spec.SchemaProps{ 25759 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\".", 25760 Type: []string{"string"}, 25761 Format: "", 25762 }, 25763 }, 25764 }, 25765 Required: []string{"kind", "name"}, 25766 }, 25767 }, 25768 } 25769 } 25770 25771 func schema_k8sio_api_networking_v1_IngressClassSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 25772 return common.OpenAPIDefinition{ 25773 Schema: spec.Schema{ 25774 SchemaProps: spec.SchemaProps{ 25775 Description: "IngressClassSpec provides information about the class of an Ingress.", 25776 Type: []string{"object"}, 25777 Properties: map[string]spec.Schema{ 25778 "controller": { 25779 SchemaProps: spec.SchemaProps{ 25780 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.", 25781 Type: []string{"string"}, 25782 Format: "", 25783 }, 25784 }, 25785 "parameters": { 25786 SchemaProps: spec.SchemaProps{ 25787 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.", 25788 Ref: ref("k8s.io/api/networking/v1.IngressClassParametersReference"), 25789 }, 25790 }, 25791 }, 25792 }, 25793 }, 25794 Dependencies: []string{ 25795 "k8s.io/api/networking/v1.IngressClassParametersReference"}, 25796 } 25797 } 25798 25799 func schema_k8sio_api_networking_v1_IngressList(ref common.ReferenceCallback) common.OpenAPIDefinition { 25800 return common.OpenAPIDefinition{ 25801 Schema: spec.Schema{ 25802 SchemaProps: spec.SchemaProps{ 25803 Description: "IngressList is a collection of Ingress.", 25804 Type: []string{"object"}, 25805 Properties: map[string]spec.Schema{ 25806 "kind": { 25807 SchemaProps: spec.SchemaProps{ 25808 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 25809 Type: []string{"string"}, 25810 Format: "", 25811 }, 25812 }, 25813 "apiVersion": { 25814 SchemaProps: spec.SchemaProps{ 25815 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 25816 Type: []string{"string"}, 25817 Format: "", 25818 }, 25819 }, 25820 "metadata": { 25821 SchemaProps: spec.SchemaProps{ 25822 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 25823 Default: map[string]interface{}{}, 25824 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 25825 }, 25826 }, 25827 "items": { 25828 SchemaProps: spec.SchemaProps{ 25829 Description: "items is the list of Ingress.", 25830 Type: []string{"array"}, 25831 Items: &spec.SchemaOrArray{ 25832 Schema: &spec.Schema{ 25833 SchemaProps: spec.SchemaProps{ 25834 Default: map[string]interface{}{}, 25835 Ref: ref("k8s.io/api/networking/v1.Ingress"), 25836 }, 25837 }, 25838 }, 25839 }, 25840 }, 25841 }, 25842 Required: []string{"items"}, 25843 }, 25844 }, 25845 Dependencies: []string{ 25846 "k8s.io/api/networking/v1.Ingress", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 25847 } 25848 } 25849 25850 func schema_k8sio_api_networking_v1_IngressLoadBalancerIngress(ref common.ReferenceCallback) common.OpenAPIDefinition { 25851 return common.OpenAPIDefinition{ 25852 Schema: spec.Schema{ 25853 SchemaProps: spec.SchemaProps{ 25854 Description: "IngressLoadBalancerIngress represents the status of a load-balancer ingress point.", 25855 Type: []string{"object"}, 25856 Properties: map[string]spec.Schema{ 25857 "ip": { 25858 SchemaProps: spec.SchemaProps{ 25859 Description: "ip is set for load-balancer ingress points that are IP based.", 25860 Type: []string{"string"}, 25861 Format: "", 25862 }, 25863 }, 25864 "hostname": { 25865 SchemaProps: spec.SchemaProps{ 25866 Description: "hostname is set for load-balancer ingress points that are DNS based.", 25867 Type: []string{"string"}, 25868 Format: "", 25869 }, 25870 }, 25871 "ports": { 25872 VendorExtensible: spec.VendorExtensible{ 25873 Extensions: spec.Extensions{ 25874 "x-kubernetes-list-type": "atomic", 25875 }, 25876 }, 25877 SchemaProps: spec.SchemaProps{ 25878 Description: "ports provides information about the ports exposed by this LoadBalancer.", 25879 Type: []string{"array"}, 25880 Items: &spec.SchemaOrArray{ 25881 Schema: &spec.Schema{ 25882 SchemaProps: spec.SchemaProps{ 25883 Default: map[string]interface{}{}, 25884 Ref: ref("k8s.io/api/networking/v1.IngressPortStatus"), 25885 }, 25886 }, 25887 }, 25888 }, 25889 }, 25890 }, 25891 }, 25892 }, 25893 Dependencies: []string{ 25894 "k8s.io/api/networking/v1.IngressPortStatus"}, 25895 } 25896 } 25897 25898 func schema_k8sio_api_networking_v1_IngressLoadBalancerStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 25899 return common.OpenAPIDefinition{ 25900 Schema: spec.Schema{ 25901 SchemaProps: spec.SchemaProps{ 25902 Description: "IngressLoadBalancerStatus represents the status of a load-balancer.", 25903 Type: []string{"object"}, 25904 Properties: map[string]spec.Schema{ 25905 "ingress": { 25906 SchemaProps: spec.SchemaProps{ 25907 Description: "ingress is a list containing ingress points for the load-balancer.", 25908 Type: []string{"array"}, 25909 Items: &spec.SchemaOrArray{ 25910 Schema: &spec.Schema{ 25911 SchemaProps: spec.SchemaProps{ 25912 Default: map[string]interface{}{}, 25913 Ref: ref("k8s.io/api/networking/v1.IngressLoadBalancerIngress"), 25914 }, 25915 }, 25916 }, 25917 }, 25918 }, 25919 }, 25920 }, 25921 }, 25922 Dependencies: []string{ 25923 "k8s.io/api/networking/v1.IngressLoadBalancerIngress"}, 25924 } 25925 } 25926 25927 func schema_k8sio_api_networking_v1_IngressPortStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 25928 return common.OpenAPIDefinition{ 25929 Schema: spec.Schema{ 25930 SchemaProps: spec.SchemaProps{ 25931 Description: "IngressPortStatus represents the error condition of a service port", 25932 Type: []string{"object"}, 25933 Properties: map[string]spec.Schema{ 25934 "port": { 25935 SchemaProps: spec.SchemaProps{ 25936 Description: "port is the port number of the ingress port.", 25937 Default: 0, 25938 Type: []string{"integer"}, 25939 Format: "int32", 25940 }, 25941 }, 25942 "protocol": { 25943 SchemaProps: spec.SchemaProps{ 25944 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.", 25945 Default: "", 25946 Type: []string{"string"}, 25947 Format: "", 25948 Enum: []interface{}{"SCTP", "TCP", "UDP"}, 25949 }, 25950 }, 25951 "error": { 25952 SchemaProps: spec.SchemaProps{ 25953 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.", 25954 Type: []string{"string"}, 25955 Format: "", 25956 }, 25957 }, 25958 }, 25959 Required: []string{"port", "protocol"}, 25960 }, 25961 }, 25962 } 25963 } 25964 25965 func schema_k8sio_api_networking_v1_IngressRule(ref common.ReferenceCallback) common.OpenAPIDefinition { 25966 return common.OpenAPIDefinition{ 25967 Schema: spec.Schema{ 25968 SchemaProps: spec.SchemaProps{ 25969 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.", 25970 Type: []string{"object"}, 25971 Properties: map[string]spec.Schema{ 25972 "host": { 25973 SchemaProps: spec.SchemaProps{ 25974 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.", 25975 Type: []string{"string"}, 25976 Format: "", 25977 }, 25978 }, 25979 "http": { 25980 SchemaProps: spec.SchemaProps{ 25981 Ref: ref("k8s.io/api/networking/v1.HTTPIngressRuleValue"), 25982 }, 25983 }, 25984 }, 25985 }, 25986 }, 25987 Dependencies: []string{ 25988 "k8s.io/api/networking/v1.HTTPIngressRuleValue"}, 25989 } 25990 } 25991 25992 func schema_k8sio_api_networking_v1_IngressRuleValue(ref common.ReferenceCallback) common.OpenAPIDefinition { 25993 return common.OpenAPIDefinition{ 25994 Schema: spec.Schema{ 25995 SchemaProps: spec.SchemaProps{ 25996 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.", 25997 Type: []string{"object"}, 25998 Properties: map[string]spec.Schema{ 25999 "http": { 26000 SchemaProps: spec.SchemaProps{ 26001 Ref: ref("k8s.io/api/networking/v1.HTTPIngressRuleValue"), 26002 }, 26003 }, 26004 }, 26005 }, 26006 }, 26007 Dependencies: []string{ 26008 "k8s.io/api/networking/v1.HTTPIngressRuleValue"}, 26009 } 26010 } 26011 26012 func schema_k8sio_api_networking_v1_IngressServiceBackend(ref common.ReferenceCallback) common.OpenAPIDefinition { 26013 return common.OpenAPIDefinition{ 26014 Schema: spec.Schema{ 26015 SchemaProps: spec.SchemaProps{ 26016 Description: "IngressServiceBackend references a Kubernetes Service as a Backend.", 26017 Type: []string{"object"}, 26018 Properties: map[string]spec.Schema{ 26019 "name": { 26020 SchemaProps: spec.SchemaProps{ 26021 Description: "name is the referenced service. The service must exist in the same namespace as the Ingress object.", 26022 Default: "", 26023 Type: []string{"string"}, 26024 Format: "", 26025 }, 26026 }, 26027 "port": { 26028 SchemaProps: spec.SchemaProps{ 26029 Description: "port of the referenced service. A port name or port number is required for a IngressServiceBackend.", 26030 Default: map[string]interface{}{}, 26031 Ref: ref("k8s.io/api/networking/v1.ServiceBackendPort"), 26032 }, 26033 }, 26034 }, 26035 Required: []string{"name"}, 26036 }, 26037 }, 26038 Dependencies: []string{ 26039 "k8s.io/api/networking/v1.ServiceBackendPort"}, 26040 } 26041 } 26042 26043 func schema_k8sio_api_networking_v1_IngressSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 26044 return common.OpenAPIDefinition{ 26045 Schema: spec.Schema{ 26046 SchemaProps: spec.SchemaProps{ 26047 Description: "IngressSpec describes the Ingress the user wishes to exist.", 26048 Type: []string{"object"}, 26049 Properties: map[string]spec.Schema{ 26050 "ingressClassName": { 26051 SchemaProps: spec.SchemaProps{ 26052 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.", 26053 Type: []string{"string"}, 26054 Format: "", 26055 }, 26056 }, 26057 "defaultBackend": { 26058 SchemaProps: spec.SchemaProps{ 26059 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.", 26060 Ref: ref("k8s.io/api/networking/v1.IngressBackend"), 26061 }, 26062 }, 26063 "tls": { 26064 VendorExtensible: spec.VendorExtensible{ 26065 Extensions: spec.Extensions{ 26066 "x-kubernetes-list-type": "atomic", 26067 }, 26068 }, 26069 SchemaProps: spec.SchemaProps{ 26070 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.", 26071 Type: []string{"array"}, 26072 Items: &spec.SchemaOrArray{ 26073 Schema: &spec.Schema{ 26074 SchemaProps: spec.SchemaProps{ 26075 Default: map[string]interface{}{}, 26076 Ref: ref("k8s.io/api/networking/v1.IngressTLS"), 26077 }, 26078 }, 26079 }, 26080 }, 26081 }, 26082 "rules": { 26083 VendorExtensible: spec.VendorExtensible{ 26084 Extensions: spec.Extensions{ 26085 "x-kubernetes-list-type": "atomic", 26086 }, 26087 }, 26088 SchemaProps: spec.SchemaProps{ 26089 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.", 26090 Type: []string{"array"}, 26091 Items: &spec.SchemaOrArray{ 26092 Schema: &spec.Schema{ 26093 SchemaProps: spec.SchemaProps{ 26094 Default: map[string]interface{}{}, 26095 Ref: ref("k8s.io/api/networking/v1.IngressRule"), 26096 }, 26097 }, 26098 }, 26099 }, 26100 }, 26101 }, 26102 }, 26103 }, 26104 Dependencies: []string{ 26105 "k8s.io/api/networking/v1.IngressBackend", "k8s.io/api/networking/v1.IngressRule", "k8s.io/api/networking/v1.IngressTLS"}, 26106 } 26107 } 26108 26109 func schema_k8sio_api_networking_v1_IngressStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 26110 return common.OpenAPIDefinition{ 26111 Schema: spec.Schema{ 26112 SchemaProps: spec.SchemaProps{ 26113 Description: "IngressStatus describe the current state of the Ingress.", 26114 Type: []string{"object"}, 26115 Properties: map[string]spec.Schema{ 26116 "loadBalancer": { 26117 SchemaProps: spec.SchemaProps{ 26118 Description: "loadBalancer contains the current status of the load-balancer.", 26119 Default: map[string]interface{}{}, 26120 Ref: ref("k8s.io/api/networking/v1.IngressLoadBalancerStatus"), 26121 }, 26122 }, 26123 }, 26124 }, 26125 }, 26126 Dependencies: []string{ 26127 "k8s.io/api/networking/v1.IngressLoadBalancerStatus"}, 26128 } 26129 } 26130 26131 func schema_k8sio_api_networking_v1_IngressTLS(ref common.ReferenceCallback) common.OpenAPIDefinition { 26132 return common.OpenAPIDefinition{ 26133 Schema: spec.Schema{ 26134 SchemaProps: spec.SchemaProps{ 26135 Description: "IngressTLS describes the transport layer security associated with an ingress.", 26136 Type: []string{"object"}, 26137 Properties: map[string]spec.Schema{ 26138 "hosts": { 26139 VendorExtensible: spec.VendorExtensible{ 26140 Extensions: spec.Extensions{ 26141 "x-kubernetes-list-type": "atomic", 26142 }, 26143 }, 26144 SchemaProps: spec.SchemaProps{ 26145 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.", 26146 Type: []string{"array"}, 26147 Items: &spec.SchemaOrArray{ 26148 Schema: &spec.Schema{ 26149 SchemaProps: spec.SchemaProps{ 26150 Default: "", 26151 Type: []string{"string"}, 26152 Format: "", 26153 }, 26154 }, 26155 }, 26156 }, 26157 }, 26158 "secretName": { 26159 SchemaProps: spec.SchemaProps{ 26160 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.", 26161 Type: []string{"string"}, 26162 Format: "", 26163 }, 26164 }, 26165 }, 26166 }, 26167 }, 26168 } 26169 } 26170 26171 func schema_k8sio_api_networking_v1_NetworkPolicy(ref common.ReferenceCallback) common.OpenAPIDefinition { 26172 return common.OpenAPIDefinition{ 26173 Schema: spec.Schema{ 26174 SchemaProps: spec.SchemaProps{ 26175 Description: "NetworkPolicy describes what network traffic is allowed for a set of Pods", 26176 Type: []string{"object"}, 26177 Properties: map[string]spec.Schema{ 26178 "kind": { 26179 SchemaProps: spec.SchemaProps{ 26180 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 26181 Type: []string{"string"}, 26182 Format: "", 26183 }, 26184 }, 26185 "apiVersion": { 26186 SchemaProps: spec.SchemaProps{ 26187 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 26188 Type: []string{"string"}, 26189 Format: "", 26190 }, 26191 }, 26192 "metadata": { 26193 SchemaProps: spec.SchemaProps{ 26194 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 26195 Default: map[string]interface{}{}, 26196 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 26197 }, 26198 }, 26199 "spec": { 26200 SchemaProps: spec.SchemaProps{ 26201 Description: "spec represents the specification of the desired behavior for this NetworkPolicy.", 26202 Default: map[string]interface{}{}, 26203 Ref: ref("k8s.io/api/networking/v1.NetworkPolicySpec"), 26204 }, 26205 }, 26206 "status": { 26207 SchemaProps: spec.SchemaProps{ 26208 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", 26209 Default: map[string]interface{}{}, 26210 Ref: ref("k8s.io/api/networking/v1.NetworkPolicyStatus"), 26211 }, 26212 }, 26213 }, 26214 }, 26215 }, 26216 Dependencies: []string{ 26217 "k8s.io/api/networking/v1.NetworkPolicySpec", "k8s.io/api/networking/v1.NetworkPolicyStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 26218 } 26219 } 26220 26221 func schema_k8sio_api_networking_v1_NetworkPolicyEgressRule(ref common.ReferenceCallback) common.OpenAPIDefinition { 26222 return common.OpenAPIDefinition{ 26223 Schema: spec.Schema{ 26224 SchemaProps: spec.SchemaProps{ 26225 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", 26226 Type: []string{"object"}, 26227 Properties: map[string]spec.Schema{ 26228 "ports": { 26229 SchemaProps: spec.SchemaProps{ 26230 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.", 26231 Type: []string{"array"}, 26232 Items: &spec.SchemaOrArray{ 26233 Schema: &spec.Schema{ 26234 SchemaProps: spec.SchemaProps{ 26235 Default: map[string]interface{}{}, 26236 Ref: ref("k8s.io/api/networking/v1.NetworkPolicyPort"), 26237 }, 26238 }, 26239 }, 26240 }, 26241 }, 26242 "to": { 26243 SchemaProps: spec.SchemaProps{ 26244 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.", 26245 Type: []string{"array"}, 26246 Items: &spec.SchemaOrArray{ 26247 Schema: &spec.Schema{ 26248 SchemaProps: spec.SchemaProps{ 26249 Default: map[string]interface{}{}, 26250 Ref: ref("k8s.io/api/networking/v1.NetworkPolicyPeer"), 26251 }, 26252 }, 26253 }, 26254 }, 26255 }, 26256 }, 26257 }, 26258 }, 26259 Dependencies: []string{ 26260 "k8s.io/api/networking/v1.NetworkPolicyPeer", "k8s.io/api/networking/v1.NetworkPolicyPort"}, 26261 } 26262 } 26263 26264 func schema_k8sio_api_networking_v1_NetworkPolicyIngressRule(ref common.ReferenceCallback) common.OpenAPIDefinition { 26265 return common.OpenAPIDefinition{ 26266 Schema: spec.Schema{ 26267 SchemaProps: spec.SchemaProps{ 26268 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.", 26269 Type: []string{"object"}, 26270 Properties: map[string]spec.Schema{ 26271 "ports": { 26272 SchemaProps: spec.SchemaProps{ 26273 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.", 26274 Type: []string{"array"}, 26275 Items: &spec.SchemaOrArray{ 26276 Schema: &spec.Schema{ 26277 SchemaProps: spec.SchemaProps{ 26278 Default: map[string]interface{}{}, 26279 Ref: ref("k8s.io/api/networking/v1.NetworkPolicyPort"), 26280 }, 26281 }, 26282 }, 26283 }, 26284 }, 26285 "from": { 26286 SchemaProps: spec.SchemaProps{ 26287 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.", 26288 Type: []string{"array"}, 26289 Items: &spec.SchemaOrArray{ 26290 Schema: &spec.Schema{ 26291 SchemaProps: spec.SchemaProps{ 26292 Default: map[string]interface{}{}, 26293 Ref: ref("k8s.io/api/networking/v1.NetworkPolicyPeer"), 26294 }, 26295 }, 26296 }, 26297 }, 26298 }, 26299 }, 26300 }, 26301 }, 26302 Dependencies: []string{ 26303 "k8s.io/api/networking/v1.NetworkPolicyPeer", "k8s.io/api/networking/v1.NetworkPolicyPort"}, 26304 } 26305 } 26306 26307 func schema_k8sio_api_networking_v1_NetworkPolicyList(ref common.ReferenceCallback) common.OpenAPIDefinition { 26308 return common.OpenAPIDefinition{ 26309 Schema: spec.Schema{ 26310 SchemaProps: spec.SchemaProps{ 26311 Description: "NetworkPolicyList is a list of NetworkPolicy objects.", 26312 Type: []string{"object"}, 26313 Properties: map[string]spec.Schema{ 26314 "kind": { 26315 SchemaProps: spec.SchemaProps{ 26316 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 26317 Type: []string{"string"}, 26318 Format: "", 26319 }, 26320 }, 26321 "apiVersion": { 26322 SchemaProps: spec.SchemaProps{ 26323 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 26324 Type: []string{"string"}, 26325 Format: "", 26326 }, 26327 }, 26328 "metadata": { 26329 SchemaProps: spec.SchemaProps{ 26330 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 26331 Default: map[string]interface{}{}, 26332 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 26333 }, 26334 }, 26335 "items": { 26336 SchemaProps: spec.SchemaProps{ 26337 Description: "items is a list of schema objects.", 26338 Type: []string{"array"}, 26339 Items: &spec.SchemaOrArray{ 26340 Schema: &spec.Schema{ 26341 SchemaProps: spec.SchemaProps{ 26342 Default: map[string]interface{}{}, 26343 Ref: ref("k8s.io/api/networking/v1.NetworkPolicy"), 26344 }, 26345 }, 26346 }, 26347 }, 26348 }, 26349 }, 26350 Required: []string{"items"}, 26351 }, 26352 }, 26353 Dependencies: []string{ 26354 "k8s.io/api/networking/v1.NetworkPolicy", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 26355 } 26356 } 26357 26358 func schema_k8sio_api_networking_v1_NetworkPolicyPeer(ref common.ReferenceCallback) common.OpenAPIDefinition { 26359 return common.OpenAPIDefinition{ 26360 Schema: spec.Schema{ 26361 SchemaProps: spec.SchemaProps{ 26362 Description: "NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed", 26363 Type: []string{"object"}, 26364 Properties: map[string]spec.Schema{ 26365 "podSelector": { 26366 SchemaProps: spec.SchemaProps{ 26367 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.", 26368 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), 26369 }, 26370 }, 26371 "namespaceSelector": { 26372 SchemaProps: spec.SchemaProps{ 26373 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.", 26374 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), 26375 }, 26376 }, 26377 "ipBlock": { 26378 SchemaProps: spec.SchemaProps{ 26379 Description: "ipBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be.", 26380 Ref: ref("k8s.io/api/networking/v1.IPBlock"), 26381 }, 26382 }, 26383 }, 26384 }, 26385 }, 26386 Dependencies: []string{ 26387 "k8s.io/api/networking/v1.IPBlock", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, 26388 } 26389 } 26390 26391 func schema_k8sio_api_networking_v1_NetworkPolicyPort(ref common.ReferenceCallback) common.OpenAPIDefinition { 26392 return common.OpenAPIDefinition{ 26393 Schema: spec.Schema{ 26394 SchemaProps: spec.SchemaProps{ 26395 Description: "NetworkPolicyPort describes a port to allow traffic on", 26396 Type: []string{"object"}, 26397 Properties: map[string]spec.Schema{ 26398 "protocol": { 26399 SchemaProps: spec.SchemaProps{ 26400 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.", 26401 Type: []string{"string"}, 26402 Format: "", 26403 Enum: []interface{}{"SCTP", "TCP", "UDP"}, 26404 }, 26405 }, 26406 "port": { 26407 SchemaProps: spec.SchemaProps{ 26408 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.", 26409 Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), 26410 }, 26411 }, 26412 "endPort": { 26413 SchemaProps: spec.SchemaProps{ 26414 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.", 26415 Type: []string{"integer"}, 26416 Format: "int32", 26417 }, 26418 }, 26419 }, 26420 }, 26421 }, 26422 Dependencies: []string{ 26423 "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, 26424 } 26425 } 26426 26427 func schema_k8sio_api_networking_v1_NetworkPolicySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 26428 return common.OpenAPIDefinition{ 26429 Schema: spec.Schema{ 26430 SchemaProps: spec.SchemaProps{ 26431 Description: "NetworkPolicySpec provides the specification of a NetworkPolicy", 26432 Type: []string{"object"}, 26433 Properties: map[string]spec.Schema{ 26434 "podSelector": { 26435 SchemaProps: spec.SchemaProps{ 26436 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.", 26437 Default: map[string]interface{}{}, 26438 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), 26439 }, 26440 }, 26441 "ingress": { 26442 SchemaProps: spec.SchemaProps{ 26443 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)", 26444 Type: []string{"array"}, 26445 Items: &spec.SchemaOrArray{ 26446 Schema: &spec.Schema{ 26447 SchemaProps: spec.SchemaProps{ 26448 Default: map[string]interface{}{}, 26449 Ref: ref("k8s.io/api/networking/v1.NetworkPolicyIngressRule"), 26450 }, 26451 }, 26452 }, 26453 }, 26454 }, 26455 "egress": { 26456 SchemaProps: spec.SchemaProps{ 26457 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", 26458 Type: []string{"array"}, 26459 Items: &spec.SchemaOrArray{ 26460 Schema: &spec.Schema{ 26461 SchemaProps: spec.SchemaProps{ 26462 Default: map[string]interface{}{}, 26463 Ref: ref("k8s.io/api/networking/v1.NetworkPolicyEgressRule"), 26464 }, 26465 }, 26466 }, 26467 }, 26468 }, 26469 "policyTypes": { 26470 SchemaProps: spec.SchemaProps{ 26471 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", 26472 Type: []string{"array"}, 26473 Items: &spec.SchemaOrArray{ 26474 Schema: &spec.Schema{ 26475 SchemaProps: spec.SchemaProps{ 26476 Default: "", 26477 Type: []string{"string"}, 26478 Format: "", 26479 }, 26480 }, 26481 }, 26482 }, 26483 }, 26484 }, 26485 Required: []string{"podSelector"}, 26486 }, 26487 }, 26488 Dependencies: []string{ 26489 "k8s.io/api/networking/v1.NetworkPolicyEgressRule", "k8s.io/api/networking/v1.NetworkPolicyIngressRule", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, 26490 } 26491 } 26492 26493 func schema_k8sio_api_networking_v1_NetworkPolicyStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 26494 return common.OpenAPIDefinition{ 26495 Schema: spec.Schema{ 26496 SchemaProps: spec.SchemaProps{ 26497 Description: "NetworkPolicyStatus describes the current state of the NetworkPolicy.", 26498 Type: []string{"object"}, 26499 Properties: map[string]spec.Schema{ 26500 "conditions": { 26501 VendorExtensible: spec.VendorExtensible{ 26502 Extensions: spec.Extensions{ 26503 "x-kubernetes-list-map-keys": []interface{}{ 26504 "type", 26505 }, 26506 "x-kubernetes-list-type": "map", 26507 "x-kubernetes-patch-merge-key": "type", 26508 "x-kubernetes-patch-strategy": "merge", 26509 }, 26510 }, 26511 SchemaProps: spec.SchemaProps{ 26512 Description: "conditions holds an array of metav1.Condition that describe the state of the NetworkPolicy. Current service state", 26513 Type: []string{"array"}, 26514 Items: &spec.SchemaOrArray{ 26515 Schema: &spec.Schema{ 26516 SchemaProps: spec.SchemaProps{ 26517 Default: map[string]interface{}{}, 26518 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Condition"), 26519 }, 26520 }, 26521 }, 26522 }, 26523 }, 26524 }, 26525 }, 26526 }, 26527 Dependencies: []string{ 26528 "k8s.io/apimachinery/pkg/apis/meta/v1.Condition"}, 26529 } 26530 } 26531 26532 func schema_k8sio_api_networking_v1_ServiceBackendPort(ref common.ReferenceCallback) common.OpenAPIDefinition { 26533 return common.OpenAPIDefinition{ 26534 Schema: spec.Schema{ 26535 SchemaProps: spec.SchemaProps{ 26536 Description: "ServiceBackendPort is the service port being referenced.", 26537 Type: []string{"object"}, 26538 Properties: map[string]spec.Schema{ 26539 "name": { 26540 SchemaProps: spec.SchemaProps{ 26541 Description: "name is the name of the port on the Service. This is a mutually exclusive setting with \"Number\".", 26542 Type: []string{"string"}, 26543 Format: "", 26544 }, 26545 }, 26546 "number": { 26547 SchemaProps: spec.SchemaProps{ 26548 Description: "number is the numerical port number (e.g. 80) on the Service. This is a mutually exclusive setting with \"Name\".", 26549 Type: []string{"integer"}, 26550 Format: "int32", 26551 }, 26552 }, 26553 }, 26554 }, 26555 }, 26556 } 26557 } 26558 26559 func schema_pkg_apis_meta_v1_APIGroup(ref common.ReferenceCallback) common.OpenAPIDefinition { 26560 return common.OpenAPIDefinition{ 26561 Schema: spec.Schema{ 26562 SchemaProps: spec.SchemaProps{ 26563 Description: "APIGroup contains the name, the supported versions, and the preferred version of a group.", 26564 Type: []string{"object"}, 26565 Properties: map[string]spec.Schema{ 26566 "kind": { 26567 SchemaProps: spec.SchemaProps{ 26568 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 26569 Type: []string{"string"}, 26570 Format: "", 26571 }, 26572 }, 26573 "apiVersion": { 26574 SchemaProps: spec.SchemaProps{ 26575 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 26576 Type: []string{"string"}, 26577 Format: "", 26578 }, 26579 }, 26580 "name": { 26581 SchemaProps: spec.SchemaProps{ 26582 Description: "name is the name of the group.", 26583 Default: "", 26584 Type: []string{"string"}, 26585 Format: "", 26586 }, 26587 }, 26588 "versions": { 26589 SchemaProps: spec.SchemaProps{ 26590 Description: "versions are the versions supported in this group.", 26591 Type: []string{"array"}, 26592 Items: &spec.SchemaOrArray{ 26593 Schema: &spec.Schema{ 26594 SchemaProps: spec.SchemaProps{ 26595 Default: map[string]interface{}{}, 26596 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery"), 26597 }, 26598 }, 26599 }, 26600 }, 26601 }, 26602 "preferredVersion": { 26603 SchemaProps: spec.SchemaProps{ 26604 Description: "preferredVersion is the version preferred by the API server, which probably is the storage version.", 26605 Default: map[string]interface{}{}, 26606 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery"), 26607 }, 26608 }, 26609 "serverAddressByClientCIDRs": { 26610 SchemaProps: spec.SchemaProps{ 26611 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.", 26612 Type: []string{"array"}, 26613 Items: &spec.SchemaOrArray{ 26614 Schema: &spec.Schema{ 26615 SchemaProps: spec.SchemaProps{ 26616 Default: map[string]interface{}{}, 26617 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"), 26618 }, 26619 }, 26620 }, 26621 }, 26622 }, 26623 }, 26624 Required: []string{"name", "versions"}, 26625 }, 26626 }, 26627 Dependencies: []string{ 26628 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery", "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"}, 26629 } 26630 } 26631 26632 func schema_pkg_apis_meta_v1_APIGroupList(ref common.ReferenceCallback) common.OpenAPIDefinition { 26633 return common.OpenAPIDefinition{ 26634 Schema: spec.Schema{ 26635 SchemaProps: spec.SchemaProps{ 26636 Description: "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.", 26637 Type: []string{"object"}, 26638 Properties: map[string]spec.Schema{ 26639 "kind": { 26640 SchemaProps: spec.SchemaProps{ 26641 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 26642 Type: []string{"string"}, 26643 Format: "", 26644 }, 26645 }, 26646 "apiVersion": { 26647 SchemaProps: spec.SchemaProps{ 26648 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 26649 Type: []string{"string"}, 26650 Format: "", 26651 }, 26652 }, 26653 "groups": { 26654 SchemaProps: spec.SchemaProps{ 26655 Description: "groups is a list of APIGroup.", 26656 Type: []string{"array"}, 26657 Items: &spec.SchemaOrArray{ 26658 Schema: &spec.Schema{ 26659 SchemaProps: spec.SchemaProps{ 26660 Default: map[string]interface{}{}, 26661 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup"), 26662 }, 26663 }, 26664 }, 26665 }, 26666 }, 26667 }, 26668 Required: []string{"groups"}, 26669 }, 26670 }, 26671 Dependencies: []string{ 26672 "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup"}, 26673 } 26674 } 26675 26676 func schema_pkg_apis_meta_v1_APIResource(ref common.ReferenceCallback) common.OpenAPIDefinition { 26677 return common.OpenAPIDefinition{ 26678 Schema: spec.Schema{ 26679 SchemaProps: spec.SchemaProps{ 26680 Description: "APIResource specifies the name of a resource and whether it is namespaced.", 26681 Type: []string{"object"}, 26682 Properties: map[string]spec.Schema{ 26683 "name": { 26684 SchemaProps: spec.SchemaProps{ 26685 Description: "name is the plural name of the resource.", 26686 Default: "", 26687 Type: []string{"string"}, 26688 Format: "", 26689 }, 26690 }, 26691 "singularName": { 26692 SchemaProps: spec.SchemaProps{ 26693 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.", 26694 Default: "", 26695 Type: []string{"string"}, 26696 Format: "", 26697 }, 26698 }, 26699 "namespaced": { 26700 SchemaProps: spec.SchemaProps{ 26701 Description: "namespaced indicates if a resource is namespaced or not.", 26702 Default: false, 26703 Type: []string{"boolean"}, 26704 Format: "", 26705 }, 26706 }, 26707 "group": { 26708 SchemaProps: spec.SchemaProps{ 26709 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\".", 26710 Type: []string{"string"}, 26711 Format: "", 26712 }, 26713 }, 26714 "version": { 26715 SchemaProps: spec.SchemaProps{ 26716 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)\".", 26717 Type: []string{"string"}, 26718 Format: "", 26719 }, 26720 }, 26721 "kind": { 26722 SchemaProps: spec.SchemaProps{ 26723 Description: "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')", 26724 Default: "", 26725 Type: []string{"string"}, 26726 Format: "", 26727 }, 26728 }, 26729 "verbs": { 26730 SchemaProps: spec.SchemaProps{ 26731 Description: "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)", 26732 Type: []string{"array"}, 26733 Items: &spec.SchemaOrArray{ 26734 Schema: &spec.Schema{ 26735 SchemaProps: spec.SchemaProps{ 26736 Default: "", 26737 Type: []string{"string"}, 26738 Format: "", 26739 }, 26740 }, 26741 }, 26742 }, 26743 }, 26744 "shortNames": { 26745 SchemaProps: spec.SchemaProps{ 26746 Description: "shortNames is a list of suggested short names of the resource.", 26747 Type: []string{"array"}, 26748 Items: &spec.SchemaOrArray{ 26749 Schema: &spec.Schema{ 26750 SchemaProps: spec.SchemaProps{ 26751 Default: "", 26752 Type: []string{"string"}, 26753 Format: "", 26754 }, 26755 }, 26756 }, 26757 }, 26758 }, 26759 "categories": { 26760 SchemaProps: spec.SchemaProps{ 26761 Description: "categories is a list of the grouped resources this resource belongs to (e.g. 'all')", 26762 Type: []string{"array"}, 26763 Items: &spec.SchemaOrArray{ 26764 Schema: &spec.Schema{ 26765 SchemaProps: spec.SchemaProps{ 26766 Default: "", 26767 Type: []string{"string"}, 26768 Format: "", 26769 }, 26770 }, 26771 }, 26772 }, 26773 }, 26774 "storageVersionHash": { 26775 SchemaProps: spec.SchemaProps{ 26776 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.", 26777 Type: []string{"string"}, 26778 Format: "", 26779 }, 26780 }, 26781 }, 26782 Required: []string{"name", "singularName", "namespaced", "kind", "verbs"}, 26783 }, 26784 }, 26785 } 26786 } 26787 26788 func schema_pkg_apis_meta_v1_APIResourceList(ref common.ReferenceCallback) common.OpenAPIDefinition { 26789 return common.OpenAPIDefinition{ 26790 Schema: spec.Schema{ 26791 SchemaProps: spec.SchemaProps{ 26792 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.", 26793 Type: []string{"object"}, 26794 Properties: map[string]spec.Schema{ 26795 "kind": { 26796 SchemaProps: spec.SchemaProps{ 26797 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 26798 Type: []string{"string"}, 26799 Format: "", 26800 }, 26801 }, 26802 "apiVersion": { 26803 SchemaProps: spec.SchemaProps{ 26804 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 26805 Type: []string{"string"}, 26806 Format: "", 26807 }, 26808 }, 26809 "groupVersion": { 26810 SchemaProps: spec.SchemaProps{ 26811 Description: "groupVersion is the group and version this APIResourceList is for.", 26812 Default: "", 26813 Type: []string{"string"}, 26814 Format: "", 26815 }, 26816 }, 26817 "resources": { 26818 SchemaProps: spec.SchemaProps{ 26819 Description: "resources contains the name of the resources and if they are namespaced.", 26820 Type: []string{"array"}, 26821 Items: &spec.SchemaOrArray{ 26822 Schema: &spec.Schema{ 26823 SchemaProps: spec.SchemaProps{ 26824 Default: map[string]interface{}{}, 26825 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.APIResource"), 26826 }, 26827 }, 26828 }, 26829 }, 26830 }, 26831 }, 26832 Required: []string{"groupVersion", "resources"}, 26833 }, 26834 }, 26835 Dependencies: []string{ 26836 "k8s.io/apimachinery/pkg/apis/meta/v1.APIResource"}, 26837 } 26838 } 26839 26840 func schema_pkg_apis_meta_v1_APIVersions(ref common.ReferenceCallback) common.OpenAPIDefinition { 26841 return common.OpenAPIDefinition{ 26842 Schema: spec.Schema{ 26843 SchemaProps: spec.SchemaProps{ 26844 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.", 26845 Type: []string{"object"}, 26846 Properties: map[string]spec.Schema{ 26847 "kind": { 26848 SchemaProps: spec.SchemaProps{ 26849 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 26850 Type: []string{"string"}, 26851 Format: "", 26852 }, 26853 }, 26854 "apiVersion": { 26855 SchemaProps: spec.SchemaProps{ 26856 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 26857 Type: []string{"string"}, 26858 Format: "", 26859 }, 26860 }, 26861 "versions": { 26862 SchemaProps: spec.SchemaProps{ 26863 Description: "versions are the api versions that are available.", 26864 Type: []string{"array"}, 26865 Items: &spec.SchemaOrArray{ 26866 Schema: &spec.Schema{ 26867 SchemaProps: spec.SchemaProps{ 26868 Default: "", 26869 Type: []string{"string"}, 26870 Format: "", 26871 }, 26872 }, 26873 }, 26874 }, 26875 }, 26876 "serverAddressByClientCIDRs": { 26877 SchemaProps: spec.SchemaProps{ 26878 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.", 26879 Type: []string{"array"}, 26880 Items: &spec.SchemaOrArray{ 26881 Schema: &spec.Schema{ 26882 SchemaProps: spec.SchemaProps{ 26883 Default: map[string]interface{}{}, 26884 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"), 26885 }, 26886 }, 26887 }, 26888 }, 26889 }, 26890 }, 26891 Required: []string{"versions", "serverAddressByClientCIDRs"}, 26892 }, 26893 }, 26894 Dependencies: []string{ 26895 "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"}, 26896 } 26897 } 26898 26899 func schema_pkg_apis_meta_v1_ApplyOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 26900 return common.OpenAPIDefinition{ 26901 Schema: spec.Schema{ 26902 SchemaProps: spec.SchemaProps{ 26903 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.", 26904 Type: []string{"object"}, 26905 Properties: map[string]spec.Schema{ 26906 "kind": { 26907 SchemaProps: spec.SchemaProps{ 26908 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 26909 Type: []string{"string"}, 26910 Format: "", 26911 }, 26912 }, 26913 "apiVersion": { 26914 SchemaProps: spec.SchemaProps{ 26915 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 26916 Type: []string{"string"}, 26917 Format: "", 26918 }, 26919 }, 26920 "dryRun": { 26921 SchemaProps: spec.SchemaProps{ 26922 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", 26923 Type: []string{"array"}, 26924 Items: &spec.SchemaOrArray{ 26925 Schema: &spec.Schema{ 26926 SchemaProps: spec.SchemaProps{ 26927 Default: "", 26928 Type: []string{"string"}, 26929 Format: "", 26930 }, 26931 }, 26932 }, 26933 }, 26934 }, 26935 "force": { 26936 SchemaProps: spec.SchemaProps{ 26937 Description: "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people.", 26938 Default: false, 26939 Type: []string{"boolean"}, 26940 Format: "", 26941 }, 26942 }, 26943 "fieldManager": { 26944 SchemaProps: spec.SchemaProps{ 26945 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.", 26946 Default: "", 26947 Type: []string{"string"}, 26948 Format: "", 26949 }, 26950 }, 26951 }, 26952 Required: []string{"force", "fieldManager"}, 26953 }, 26954 }, 26955 } 26956 } 26957 26958 func schema_pkg_apis_meta_v1_Condition(ref common.ReferenceCallback) common.OpenAPIDefinition { 26959 return common.OpenAPIDefinition{ 26960 Schema: spec.Schema{ 26961 SchemaProps: spec.SchemaProps{ 26962 Description: "Condition contains details for one aspect of the current state of this API Resource.", 26963 Type: []string{"object"}, 26964 Properties: map[string]spec.Schema{ 26965 "type": { 26966 SchemaProps: spec.SchemaProps{ 26967 Description: "type of condition in CamelCase or in foo.example.com/CamelCase.", 26968 Default: "", 26969 Type: []string{"string"}, 26970 Format: "", 26971 }, 26972 }, 26973 "status": { 26974 SchemaProps: spec.SchemaProps{ 26975 Description: "status of the condition, one of True, False, Unknown.", 26976 Default: "", 26977 Type: []string{"string"}, 26978 Format: "", 26979 }, 26980 }, 26981 "observedGeneration": { 26982 SchemaProps: spec.SchemaProps{ 26983 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.", 26984 Type: []string{"integer"}, 26985 Format: "int64", 26986 }, 26987 }, 26988 "lastTransitionTime": { 26989 SchemaProps: spec.SchemaProps{ 26990 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.", 26991 Default: map[string]interface{}{}, 26992 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 26993 }, 26994 }, 26995 "reason": { 26996 SchemaProps: spec.SchemaProps{ 26997 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.", 26998 Default: "", 26999 Type: []string{"string"}, 27000 Format: "", 27001 }, 27002 }, 27003 "message": { 27004 SchemaProps: spec.SchemaProps{ 27005 Description: "message is a human readable message indicating details about the transition. This may be an empty string.", 27006 Default: "", 27007 Type: []string{"string"}, 27008 Format: "", 27009 }, 27010 }, 27011 }, 27012 Required: []string{"type", "status", "lastTransitionTime", "reason", "message"}, 27013 }, 27014 }, 27015 Dependencies: []string{ 27016 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 27017 } 27018 } 27019 27020 func schema_pkg_apis_meta_v1_CreateOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 27021 return common.OpenAPIDefinition{ 27022 Schema: spec.Schema{ 27023 SchemaProps: spec.SchemaProps{ 27024 Description: "CreateOptions may be provided when creating an API object.", 27025 Type: []string{"object"}, 27026 Properties: map[string]spec.Schema{ 27027 "kind": { 27028 SchemaProps: spec.SchemaProps{ 27029 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 27030 Type: []string{"string"}, 27031 Format: "", 27032 }, 27033 }, 27034 "apiVersion": { 27035 SchemaProps: spec.SchemaProps{ 27036 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 27037 Type: []string{"string"}, 27038 Format: "", 27039 }, 27040 }, 27041 "dryRun": { 27042 SchemaProps: spec.SchemaProps{ 27043 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", 27044 Type: []string{"array"}, 27045 Items: &spec.SchemaOrArray{ 27046 Schema: &spec.Schema{ 27047 SchemaProps: spec.SchemaProps{ 27048 Default: "", 27049 Type: []string{"string"}, 27050 Format: "", 27051 }, 27052 }, 27053 }, 27054 }, 27055 }, 27056 "fieldManager": { 27057 SchemaProps: spec.SchemaProps{ 27058 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.", 27059 Type: []string{"string"}, 27060 Format: "", 27061 }, 27062 }, 27063 "fieldValidation": { 27064 SchemaProps: spec.SchemaProps{ 27065 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.", 27066 Type: []string{"string"}, 27067 Format: "", 27068 }, 27069 }, 27070 }, 27071 }, 27072 }, 27073 } 27074 } 27075 27076 func schema_pkg_apis_meta_v1_DeleteOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 27077 return common.OpenAPIDefinition{ 27078 Schema: spec.Schema{ 27079 SchemaProps: spec.SchemaProps{ 27080 Description: "DeleteOptions may be provided when deleting an API object.", 27081 Type: []string{"object"}, 27082 Properties: map[string]spec.Schema{ 27083 "kind": { 27084 SchemaProps: spec.SchemaProps{ 27085 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 27086 Type: []string{"string"}, 27087 Format: "", 27088 }, 27089 }, 27090 "apiVersion": { 27091 SchemaProps: spec.SchemaProps{ 27092 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 27093 Type: []string{"string"}, 27094 Format: "", 27095 }, 27096 }, 27097 "gracePeriodSeconds": { 27098 SchemaProps: spec.SchemaProps{ 27099 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.", 27100 Type: []string{"integer"}, 27101 Format: "int64", 27102 }, 27103 }, 27104 "preconditions": { 27105 SchemaProps: spec.SchemaProps{ 27106 Description: "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned.", 27107 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions"), 27108 }, 27109 }, 27110 "orphanDependents": { 27111 SchemaProps: spec.SchemaProps{ 27112 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.", 27113 Type: []string{"boolean"}, 27114 Format: "", 27115 }, 27116 }, 27117 "propagationPolicy": { 27118 SchemaProps: spec.SchemaProps{ 27119 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.", 27120 Type: []string{"string"}, 27121 Format: "", 27122 }, 27123 }, 27124 "dryRun": { 27125 SchemaProps: spec.SchemaProps{ 27126 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", 27127 Type: []string{"array"}, 27128 Items: &spec.SchemaOrArray{ 27129 Schema: &spec.Schema{ 27130 SchemaProps: spec.SchemaProps{ 27131 Default: "", 27132 Type: []string{"string"}, 27133 Format: "", 27134 }, 27135 }, 27136 }, 27137 }, 27138 }, 27139 }, 27140 }, 27141 }, 27142 Dependencies: []string{ 27143 "k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions"}, 27144 } 27145 } 27146 27147 func schema_pkg_apis_meta_v1_Duration(ref common.ReferenceCallback) common.OpenAPIDefinition { 27148 return common.OpenAPIDefinition{ 27149 Schema: spec.Schema{ 27150 SchemaProps: spec.SchemaProps{ 27151 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.", 27152 Type: v1.Duration{}.OpenAPISchemaType(), 27153 Format: v1.Duration{}.OpenAPISchemaFormat(), 27154 }, 27155 }, 27156 } 27157 } 27158 27159 func schema_pkg_apis_meta_v1_FieldsV1(ref common.ReferenceCallback) common.OpenAPIDefinition { 27160 return common.OpenAPIDefinition{ 27161 Schema: spec.Schema{ 27162 SchemaProps: spec.SchemaProps{ 27163 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", 27164 Type: []string{"object"}, 27165 }, 27166 }, 27167 } 27168 } 27169 27170 func schema_pkg_apis_meta_v1_GetOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 27171 return common.OpenAPIDefinition{ 27172 Schema: spec.Schema{ 27173 SchemaProps: spec.SchemaProps{ 27174 Description: "GetOptions is the standard query options to the standard REST get call.", 27175 Type: []string{"object"}, 27176 Properties: map[string]spec.Schema{ 27177 "kind": { 27178 SchemaProps: spec.SchemaProps{ 27179 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 27180 Type: []string{"string"}, 27181 Format: "", 27182 }, 27183 }, 27184 "apiVersion": { 27185 SchemaProps: spec.SchemaProps{ 27186 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 27187 Type: []string{"string"}, 27188 Format: "", 27189 }, 27190 }, 27191 "resourceVersion": { 27192 SchemaProps: spec.SchemaProps{ 27193 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", 27194 Type: []string{"string"}, 27195 Format: "", 27196 }, 27197 }, 27198 }, 27199 }, 27200 }, 27201 } 27202 } 27203 27204 func schema_pkg_apis_meta_v1_GroupKind(ref common.ReferenceCallback) common.OpenAPIDefinition { 27205 return common.OpenAPIDefinition{ 27206 Schema: spec.Schema{ 27207 SchemaProps: spec.SchemaProps{ 27208 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", 27209 Type: []string{"object"}, 27210 Properties: map[string]spec.Schema{ 27211 "group": { 27212 SchemaProps: spec.SchemaProps{ 27213 Default: "", 27214 Type: []string{"string"}, 27215 Format: "", 27216 }, 27217 }, 27218 "kind": { 27219 SchemaProps: spec.SchemaProps{ 27220 Default: "", 27221 Type: []string{"string"}, 27222 Format: "", 27223 }, 27224 }, 27225 }, 27226 Required: []string{"group", "kind"}, 27227 }, 27228 }, 27229 } 27230 } 27231 27232 func schema_pkg_apis_meta_v1_GroupResource(ref common.ReferenceCallback) common.OpenAPIDefinition { 27233 return common.OpenAPIDefinition{ 27234 Schema: spec.Schema{ 27235 SchemaProps: spec.SchemaProps{ 27236 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", 27237 Type: []string{"object"}, 27238 Properties: map[string]spec.Schema{ 27239 "group": { 27240 SchemaProps: spec.SchemaProps{ 27241 Default: "", 27242 Type: []string{"string"}, 27243 Format: "", 27244 }, 27245 }, 27246 "resource": { 27247 SchemaProps: spec.SchemaProps{ 27248 Default: "", 27249 Type: []string{"string"}, 27250 Format: "", 27251 }, 27252 }, 27253 }, 27254 Required: []string{"group", "resource"}, 27255 }, 27256 }, 27257 } 27258 } 27259 27260 func schema_pkg_apis_meta_v1_GroupVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { 27261 return common.OpenAPIDefinition{ 27262 Schema: spec.Schema{ 27263 SchemaProps: spec.SchemaProps{ 27264 Description: "GroupVersion contains the \"group\" and the \"version\", which uniquely identifies the API.", 27265 Type: []string{"object"}, 27266 Properties: map[string]spec.Schema{ 27267 "group": { 27268 SchemaProps: spec.SchemaProps{ 27269 Default: "", 27270 Type: []string{"string"}, 27271 Format: "", 27272 }, 27273 }, 27274 "version": { 27275 SchemaProps: spec.SchemaProps{ 27276 Default: "", 27277 Type: []string{"string"}, 27278 Format: "", 27279 }, 27280 }, 27281 }, 27282 Required: []string{"group", "version"}, 27283 }, 27284 }, 27285 } 27286 } 27287 27288 func schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref common.ReferenceCallback) common.OpenAPIDefinition { 27289 return common.OpenAPIDefinition{ 27290 Schema: spec.Schema{ 27291 SchemaProps: spec.SchemaProps{ 27292 Description: "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.", 27293 Type: []string{"object"}, 27294 Properties: map[string]spec.Schema{ 27295 "groupVersion": { 27296 SchemaProps: spec.SchemaProps{ 27297 Description: "groupVersion specifies the API group and version in the form \"group/version\"", 27298 Default: "", 27299 Type: []string{"string"}, 27300 Format: "", 27301 }, 27302 }, 27303 "version": { 27304 SchemaProps: spec.SchemaProps{ 27305 Description: "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.", 27306 Default: "", 27307 Type: []string{"string"}, 27308 Format: "", 27309 }, 27310 }, 27311 }, 27312 Required: []string{"groupVersion", "version"}, 27313 }, 27314 }, 27315 } 27316 } 27317 27318 func schema_pkg_apis_meta_v1_GroupVersionKind(ref common.ReferenceCallback) common.OpenAPIDefinition { 27319 return common.OpenAPIDefinition{ 27320 Schema: spec.Schema{ 27321 SchemaProps: spec.SchemaProps{ 27322 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", 27323 Type: []string{"object"}, 27324 Properties: map[string]spec.Schema{ 27325 "group": { 27326 SchemaProps: spec.SchemaProps{ 27327 Default: "", 27328 Type: []string{"string"}, 27329 Format: "", 27330 }, 27331 }, 27332 "version": { 27333 SchemaProps: spec.SchemaProps{ 27334 Default: "", 27335 Type: []string{"string"}, 27336 Format: "", 27337 }, 27338 }, 27339 "kind": { 27340 SchemaProps: spec.SchemaProps{ 27341 Default: "", 27342 Type: []string{"string"}, 27343 Format: "", 27344 }, 27345 }, 27346 }, 27347 Required: []string{"group", "version", "kind"}, 27348 }, 27349 }, 27350 } 27351 } 27352 27353 func schema_pkg_apis_meta_v1_GroupVersionResource(ref common.ReferenceCallback) common.OpenAPIDefinition { 27354 return common.OpenAPIDefinition{ 27355 Schema: spec.Schema{ 27356 SchemaProps: spec.SchemaProps{ 27357 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", 27358 Type: []string{"object"}, 27359 Properties: map[string]spec.Schema{ 27360 "group": { 27361 SchemaProps: spec.SchemaProps{ 27362 Default: "", 27363 Type: []string{"string"}, 27364 Format: "", 27365 }, 27366 }, 27367 "version": { 27368 SchemaProps: spec.SchemaProps{ 27369 Default: "", 27370 Type: []string{"string"}, 27371 Format: "", 27372 }, 27373 }, 27374 "resource": { 27375 SchemaProps: spec.SchemaProps{ 27376 Default: "", 27377 Type: []string{"string"}, 27378 Format: "", 27379 }, 27380 }, 27381 }, 27382 Required: []string{"group", "version", "resource"}, 27383 }, 27384 }, 27385 } 27386 } 27387 27388 func schema_pkg_apis_meta_v1_InternalEvent(ref common.ReferenceCallback) common.OpenAPIDefinition { 27389 return common.OpenAPIDefinition{ 27390 Schema: spec.Schema{ 27391 SchemaProps: spec.SchemaProps{ 27392 Description: "InternalEvent makes watch.Event versioned", 27393 Type: []string{"object"}, 27394 Properties: map[string]spec.Schema{ 27395 "Type": { 27396 SchemaProps: spec.SchemaProps{ 27397 Default: "", 27398 Type: []string{"string"}, 27399 Format: "", 27400 }, 27401 }, 27402 "Object": { 27403 SchemaProps: spec.SchemaProps{ 27404 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.", 27405 Ref: ref("k8s.io/apimachinery/pkg/runtime.Object"), 27406 }, 27407 }, 27408 }, 27409 Required: []string{"Type", "Object"}, 27410 }, 27411 }, 27412 Dependencies: []string{ 27413 "k8s.io/apimachinery/pkg/runtime.Object"}, 27414 } 27415 } 27416 27417 func schema_pkg_apis_meta_v1_LabelSelector(ref common.ReferenceCallback) common.OpenAPIDefinition { 27418 return common.OpenAPIDefinition{ 27419 Schema: spec.Schema{ 27420 SchemaProps: spec.SchemaProps{ 27421 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.", 27422 Type: []string{"object"}, 27423 Properties: map[string]spec.Schema{ 27424 "matchLabels": { 27425 SchemaProps: spec.SchemaProps{ 27426 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.", 27427 Type: []string{"object"}, 27428 AdditionalProperties: &spec.SchemaOrBool{ 27429 Allows: true, 27430 Schema: &spec.Schema{ 27431 SchemaProps: spec.SchemaProps{ 27432 Default: "", 27433 Type: []string{"string"}, 27434 Format: "", 27435 }, 27436 }, 27437 }, 27438 }, 27439 }, 27440 "matchExpressions": { 27441 SchemaProps: spec.SchemaProps{ 27442 Description: "matchExpressions is a list of label selector requirements. The requirements are ANDed.", 27443 Type: []string{"array"}, 27444 Items: &spec.SchemaOrArray{ 27445 Schema: &spec.Schema{ 27446 SchemaProps: spec.SchemaProps{ 27447 Default: map[string]interface{}{}, 27448 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement"), 27449 }, 27450 }, 27451 }, 27452 }, 27453 }, 27454 }, 27455 }, 27456 VendorExtensible: spec.VendorExtensible{ 27457 Extensions: spec.Extensions{ 27458 "x-kubernetes-map-type": "atomic", 27459 }, 27460 }, 27461 }, 27462 Dependencies: []string{ 27463 "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement"}, 27464 } 27465 } 27466 27467 func schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref common.ReferenceCallback) common.OpenAPIDefinition { 27468 return common.OpenAPIDefinition{ 27469 Schema: spec.Schema{ 27470 SchemaProps: spec.SchemaProps{ 27471 Description: "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", 27472 Type: []string{"object"}, 27473 Properties: map[string]spec.Schema{ 27474 "key": { 27475 VendorExtensible: spec.VendorExtensible{ 27476 Extensions: spec.Extensions{ 27477 "x-kubernetes-patch-merge-key": "key", 27478 "x-kubernetes-patch-strategy": "merge", 27479 }, 27480 }, 27481 SchemaProps: spec.SchemaProps{ 27482 Description: "key is the label key that the selector applies to.", 27483 Default: "", 27484 Type: []string{"string"}, 27485 Format: "", 27486 }, 27487 }, 27488 "operator": { 27489 SchemaProps: spec.SchemaProps{ 27490 Description: "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.", 27491 Default: "", 27492 Type: []string{"string"}, 27493 Format: "", 27494 }, 27495 }, 27496 "values": { 27497 SchemaProps: spec.SchemaProps{ 27498 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.", 27499 Type: []string{"array"}, 27500 Items: &spec.SchemaOrArray{ 27501 Schema: &spec.Schema{ 27502 SchemaProps: spec.SchemaProps{ 27503 Default: "", 27504 Type: []string{"string"}, 27505 Format: "", 27506 }, 27507 }, 27508 }, 27509 }, 27510 }, 27511 }, 27512 Required: []string{"key", "operator"}, 27513 }, 27514 }, 27515 } 27516 } 27517 27518 func schema_pkg_apis_meta_v1_List(ref common.ReferenceCallback) common.OpenAPIDefinition { 27519 return common.OpenAPIDefinition{ 27520 Schema: spec.Schema{ 27521 SchemaProps: spec.SchemaProps{ 27522 Description: "List holds a list of objects, which may not be known by the server.", 27523 Type: []string{"object"}, 27524 Properties: map[string]spec.Schema{ 27525 "kind": { 27526 SchemaProps: spec.SchemaProps{ 27527 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 27528 Type: []string{"string"}, 27529 Format: "", 27530 }, 27531 }, 27532 "apiVersion": { 27533 SchemaProps: spec.SchemaProps{ 27534 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 27535 Type: []string{"string"}, 27536 Format: "", 27537 }, 27538 }, 27539 "metadata": { 27540 SchemaProps: spec.SchemaProps{ 27541 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 27542 Default: map[string]interface{}{}, 27543 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 27544 }, 27545 }, 27546 "items": { 27547 SchemaProps: spec.SchemaProps{ 27548 Description: "List of objects", 27549 Type: []string{"array"}, 27550 Items: &spec.SchemaOrArray{ 27551 Schema: &spec.Schema{ 27552 SchemaProps: spec.SchemaProps{ 27553 Default: map[string]interface{}{}, 27554 Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), 27555 }, 27556 }, 27557 }, 27558 }, 27559 }, 27560 }, 27561 Required: []string{"items"}, 27562 }, 27563 }, 27564 Dependencies: []string{ 27565 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/runtime.RawExtension"}, 27566 } 27567 } 27568 27569 func schema_pkg_apis_meta_v1_ListMeta(ref common.ReferenceCallback) common.OpenAPIDefinition { 27570 return common.OpenAPIDefinition{ 27571 Schema: spec.Schema{ 27572 SchemaProps: spec.SchemaProps{ 27573 Description: "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.", 27574 Type: []string{"object"}, 27575 Properties: map[string]spec.Schema{ 27576 "selfLink": { 27577 SchemaProps: spec.SchemaProps{ 27578 Description: "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", 27579 Type: []string{"string"}, 27580 Format: "", 27581 }, 27582 }, 27583 "resourceVersion": { 27584 SchemaProps: spec.SchemaProps{ 27585 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", 27586 Type: []string{"string"}, 27587 Format: "", 27588 }, 27589 }, 27590 "continue": { 27591 SchemaProps: spec.SchemaProps{ 27592 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.", 27593 Type: []string{"string"}, 27594 Format: "", 27595 }, 27596 }, 27597 "remainingItemCount": { 27598 SchemaProps: spec.SchemaProps{ 27599 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.", 27600 Type: []string{"integer"}, 27601 Format: "int64", 27602 }, 27603 }, 27604 }, 27605 }, 27606 }, 27607 } 27608 } 27609 27610 func schema_pkg_apis_meta_v1_ListOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 27611 return common.OpenAPIDefinition{ 27612 Schema: spec.Schema{ 27613 SchemaProps: spec.SchemaProps{ 27614 Description: "ListOptions is the query options to a standard REST list call.", 27615 Type: []string{"object"}, 27616 Properties: map[string]spec.Schema{ 27617 "kind": { 27618 SchemaProps: spec.SchemaProps{ 27619 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 27620 Type: []string{"string"}, 27621 Format: "", 27622 }, 27623 }, 27624 "apiVersion": { 27625 SchemaProps: spec.SchemaProps{ 27626 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 27627 Type: []string{"string"}, 27628 Format: "", 27629 }, 27630 }, 27631 "labelSelector": { 27632 SchemaProps: spec.SchemaProps{ 27633 Description: "A selector to restrict the list of returned objects by their labels. Defaults to everything.", 27634 Type: []string{"string"}, 27635 Format: "", 27636 }, 27637 }, 27638 "fieldSelector": { 27639 SchemaProps: spec.SchemaProps{ 27640 Description: "A selector to restrict the list of returned objects by their fields. Defaults to everything.", 27641 Type: []string{"string"}, 27642 Format: "", 27643 }, 27644 }, 27645 "watch": { 27646 SchemaProps: spec.SchemaProps{ 27647 Description: "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", 27648 Type: []string{"boolean"}, 27649 Format: "", 27650 }, 27651 }, 27652 "allowWatchBookmarks": { 27653 SchemaProps: spec.SchemaProps{ 27654 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.", 27655 Type: []string{"boolean"}, 27656 Format: "", 27657 }, 27658 }, 27659 "resourceVersion": { 27660 SchemaProps: spec.SchemaProps{ 27661 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", 27662 Type: []string{"string"}, 27663 Format: "", 27664 }, 27665 }, 27666 "resourceVersionMatch": { 27667 SchemaProps: spec.SchemaProps{ 27668 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", 27669 Type: []string{"string"}, 27670 Format: "", 27671 }, 27672 }, 27673 "timeoutSeconds": { 27674 SchemaProps: spec.SchemaProps{ 27675 Description: "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", 27676 Type: []string{"integer"}, 27677 Format: "int64", 27678 }, 27679 }, 27680 "limit": { 27681 SchemaProps: spec.SchemaProps{ 27682 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.", 27683 Type: []string{"integer"}, 27684 Format: "int64", 27685 }, 27686 }, 27687 "continue": { 27688 SchemaProps: spec.SchemaProps{ 27689 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.", 27690 Type: []string{"string"}, 27691 Format: "", 27692 }, 27693 }, 27694 "sendInitialEvents": { 27695 SchemaProps: spec.SchemaProps{ 27696 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.", 27697 Type: []string{"boolean"}, 27698 Format: "", 27699 }, 27700 }, 27701 }, 27702 }, 27703 }, 27704 } 27705 } 27706 27707 func schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref common.ReferenceCallback) common.OpenAPIDefinition { 27708 return common.OpenAPIDefinition{ 27709 Schema: spec.Schema{ 27710 SchemaProps: spec.SchemaProps{ 27711 Description: "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.", 27712 Type: []string{"object"}, 27713 Properties: map[string]spec.Schema{ 27714 "manager": { 27715 SchemaProps: spec.SchemaProps{ 27716 Description: "Manager is an identifier of the workflow managing these fields.", 27717 Type: []string{"string"}, 27718 Format: "", 27719 }, 27720 }, 27721 "operation": { 27722 SchemaProps: spec.SchemaProps{ 27723 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'.", 27724 Type: []string{"string"}, 27725 Format: "", 27726 }, 27727 }, 27728 "apiVersion": { 27729 SchemaProps: spec.SchemaProps{ 27730 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.", 27731 Type: []string{"string"}, 27732 Format: "", 27733 }, 27734 }, 27735 "time": { 27736 SchemaProps: spec.SchemaProps{ 27737 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.", 27738 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 27739 }, 27740 }, 27741 "fieldsType": { 27742 SchemaProps: spec.SchemaProps{ 27743 Description: "FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\"", 27744 Type: []string{"string"}, 27745 Format: "", 27746 }, 27747 }, 27748 "fieldsV1": { 27749 SchemaProps: spec.SchemaProps{ 27750 Description: "FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type.", 27751 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1"), 27752 }, 27753 }, 27754 "subresource": { 27755 SchemaProps: spec.SchemaProps{ 27756 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.", 27757 Type: []string{"string"}, 27758 Format: "", 27759 }, 27760 }, 27761 }, 27762 }, 27763 }, 27764 Dependencies: []string{ 27765 "k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 27766 } 27767 } 27768 27769 func schema_pkg_apis_meta_v1_MicroTime(ref common.ReferenceCallback) common.OpenAPIDefinition { 27770 return common.OpenAPIDefinition{ 27771 Schema: spec.Schema{ 27772 SchemaProps: spec.SchemaProps{ 27773 Description: "MicroTime is version of Time with microsecond level precision.", 27774 Type: v1.MicroTime{}.OpenAPISchemaType(), 27775 Format: v1.MicroTime{}.OpenAPISchemaFormat(), 27776 }, 27777 }, 27778 } 27779 } 27780 27781 func schema_pkg_apis_meta_v1_ObjectMeta(ref common.ReferenceCallback) common.OpenAPIDefinition { 27782 return common.OpenAPIDefinition{ 27783 Schema: spec.Schema{ 27784 SchemaProps: spec.SchemaProps{ 27785 Description: "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", 27786 Type: []string{"object"}, 27787 Properties: map[string]spec.Schema{ 27788 "name": { 27789 SchemaProps: spec.SchemaProps{ 27790 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", 27791 Type: []string{"string"}, 27792 Format: "", 27793 }, 27794 }, 27795 "generateName": { 27796 SchemaProps: spec.SchemaProps{ 27797 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", 27798 Type: []string{"string"}, 27799 Format: "", 27800 }, 27801 }, 27802 "namespace": { 27803 SchemaProps: spec.SchemaProps{ 27804 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", 27805 Type: []string{"string"}, 27806 Format: "", 27807 }, 27808 }, 27809 "selfLink": { 27810 SchemaProps: spec.SchemaProps{ 27811 Description: "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", 27812 Type: []string{"string"}, 27813 Format: "", 27814 }, 27815 }, 27816 "uid": { 27817 SchemaProps: spec.SchemaProps{ 27818 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", 27819 Type: []string{"string"}, 27820 Format: "", 27821 }, 27822 }, 27823 "resourceVersion": { 27824 SchemaProps: spec.SchemaProps{ 27825 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", 27826 Type: []string{"string"}, 27827 Format: "", 27828 }, 27829 }, 27830 "generation": { 27831 SchemaProps: spec.SchemaProps{ 27832 Description: "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", 27833 Type: []string{"integer"}, 27834 Format: "int64", 27835 }, 27836 }, 27837 "creationTimestamp": { 27838 SchemaProps: spec.SchemaProps{ 27839 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", 27840 Default: map[string]interface{}{}, 27841 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 27842 }, 27843 }, 27844 "deletionTimestamp": { 27845 SchemaProps: spec.SchemaProps{ 27846 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", 27847 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 27848 }, 27849 }, 27850 "deletionGracePeriodSeconds": { 27851 SchemaProps: spec.SchemaProps{ 27852 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.", 27853 Type: []string{"integer"}, 27854 Format: "int64", 27855 }, 27856 }, 27857 "labels": { 27858 SchemaProps: spec.SchemaProps{ 27859 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", 27860 Type: []string{"object"}, 27861 AdditionalProperties: &spec.SchemaOrBool{ 27862 Allows: true, 27863 Schema: &spec.Schema{ 27864 SchemaProps: spec.SchemaProps{ 27865 Default: "", 27866 Type: []string{"string"}, 27867 Format: "", 27868 }, 27869 }, 27870 }, 27871 }, 27872 }, 27873 "annotations": { 27874 SchemaProps: spec.SchemaProps{ 27875 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", 27876 Type: []string{"object"}, 27877 AdditionalProperties: &spec.SchemaOrBool{ 27878 Allows: true, 27879 Schema: &spec.Schema{ 27880 SchemaProps: spec.SchemaProps{ 27881 Default: "", 27882 Type: []string{"string"}, 27883 Format: "", 27884 }, 27885 }, 27886 }, 27887 }, 27888 }, 27889 "ownerReferences": { 27890 VendorExtensible: spec.VendorExtensible{ 27891 Extensions: spec.Extensions{ 27892 "x-kubernetes-patch-merge-key": "uid", 27893 "x-kubernetes-patch-strategy": "merge", 27894 }, 27895 }, 27896 SchemaProps: spec.SchemaProps{ 27897 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.", 27898 Type: []string{"array"}, 27899 Items: &spec.SchemaOrArray{ 27900 Schema: &spec.Schema{ 27901 SchemaProps: spec.SchemaProps{ 27902 Default: map[string]interface{}{}, 27903 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference"), 27904 }, 27905 }, 27906 }, 27907 }, 27908 }, 27909 "finalizers": { 27910 VendorExtensible: spec.VendorExtensible{ 27911 Extensions: spec.Extensions{ 27912 "x-kubernetes-patch-strategy": "merge", 27913 }, 27914 }, 27915 SchemaProps: spec.SchemaProps{ 27916 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.", 27917 Type: []string{"array"}, 27918 Items: &spec.SchemaOrArray{ 27919 Schema: &spec.Schema{ 27920 SchemaProps: spec.SchemaProps{ 27921 Default: "", 27922 Type: []string{"string"}, 27923 Format: "", 27924 }, 27925 }, 27926 }, 27927 }, 27928 }, 27929 "managedFields": { 27930 SchemaProps: spec.SchemaProps{ 27931 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.", 27932 Type: []string{"array"}, 27933 Items: &spec.SchemaOrArray{ 27934 Schema: &spec.Schema{ 27935 SchemaProps: spec.SchemaProps{ 27936 Default: map[string]interface{}{}, 27937 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry"), 27938 }, 27939 }, 27940 }, 27941 }, 27942 }, 27943 }, 27944 }, 27945 }, 27946 Dependencies: []string{ 27947 "k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry", "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 27948 } 27949 } 27950 27951 func schema_pkg_apis_meta_v1_OwnerReference(ref common.ReferenceCallback) common.OpenAPIDefinition { 27952 return common.OpenAPIDefinition{ 27953 Schema: spec.Schema{ 27954 SchemaProps: spec.SchemaProps{ 27955 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.", 27956 Type: []string{"object"}, 27957 Properties: map[string]spec.Schema{ 27958 "apiVersion": { 27959 SchemaProps: spec.SchemaProps{ 27960 Description: "API version of the referent.", 27961 Default: "", 27962 Type: []string{"string"}, 27963 Format: "", 27964 }, 27965 }, 27966 "kind": { 27967 SchemaProps: spec.SchemaProps{ 27968 Description: "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 27969 Default: "", 27970 Type: []string{"string"}, 27971 Format: "", 27972 }, 27973 }, 27974 "name": { 27975 SchemaProps: spec.SchemaProps{ 27976 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names", 27977 Default: "", 27978 Type: []string{"string"}, 27979 Format: "", 27980 }, 27981 }, 27982 "uid": { 27983 SchemaProps: spec.SchemaProps{ 27984 Description: "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids", 27985 Default: "", 27986 Type: []string{"string"}, 27987 Format: "", 27988 }, 27989 }, 27990 "controller": { 27991 SchemaProps: spec.SchemaProps{ 27992 Description: "If true, this reference points to the managing controller.", 27993 Type: []string{"boolean"}, 27994 Format: "", 27995 }, 27996 }, 27997 "blockOwnerDeletion": { 27998 SchemaProps: spec.SchemaProps{ 27999 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.", 28000 Type: []string{"boolean"}, 28001 Format: "", 28002 }, 28003 }, 28004 }, 28005 Required: []string{"apiVersion", "kind", "name", "uid"}, 28006 }, 28007 VendorExtensible: spec.VendorExtensible{ 28008 Extensions: spec.Extensions{ 28009 "x-kubernetes-map-type": "atomic", 28010 }, 28011 }, 28012 }, 28013 } 28014 } 28015 28016 func schema_pkg_apis_meta_v1_PartialObjectMetadata(ref common.ReferenceCallback) common.OpenAPIDefinition { 28017 return common.OpenAPIDefinition{ 28018 Schema: spec.Schema{ 28019 SchemaProps: spec.SchemaProps{ 28020 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.", 28021 Type: []string{"object"}, 28022 Properties: map[string]spec.Schema{ 28023 "kind": { 28024 SchemaProps: spec.SchemaProps{ 28025 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 28026 Type: []string{"string"}, 28027 Format: "", 28028 }, 28029 }, 28030 "apiVersion": { 28031 SchemaProps: spec.SchemaProps{ 28032 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 28033 Type: []string{"string"}, 28034 Format: "", 28035 }, 28036 }, 28037 "metadata": { 28038 SchemaProps: spec.SchemaProps{ 28039 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 28040 Default: map[string]interface{}{}, 28041 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 28042 }, 28043 }, 28044 }, 28045 }, 28046 }, 28047 Dependencies: []string{ 28048 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 28049 } 28050 } 28051 28052 func schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref common.ReferenceCallback) common.OpenAPIDefinition { 28053 return common.OpenAPIDefinition{ 28054 Schema: spec.Schema{ 28055 SchemaProps: spec.SchemaProps{ 28056 Description: "PartialObjectMetadataList contains a list of objects containing only their metadata", 28057 Type: []string{"object"}, 28058 Properties: map[string]spec.Schema{ 28059 "kind": { 28060 SchemaProps: spec.SchemaProps{ 28061 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 28062 Type: []string{"string"}, 28063 Format: "", 28064 }, 28065 }, 28066 "apiVersion": { 28067 SchemaProps: spec.SchemaProps{ 28068 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 28069 Type: []string{"string"}, 28070 Format: "", 28071 }, 28072 }, 28073 "metadata": { 28074 SchemaProps: spec.SchemaProps{ 28075 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 28076 Default: map[string]interface{}{}, 28077 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 28078 }, 28079 }, 28080 "items": { 28081 SchemaProps: spec.SchemaProps{ 28082 Description: "items contains each of the included items.", 28083 Type: []string{"array"}, 28084 Items: &spec.SchemaOrArray{ 28085 Schema: &spec.Schema{ 28086 SchemaProps: spec.SchemaProps{ 28087 Default: map[string]interface{}{}, 28088 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata"), 28089 }, 28090 }, 28091 }, 28092 }, 28093 }, 28094 }, 28095 Required: []string{"items"}, 28096 }, 28097 }, 28098 Dependencies: []string{ 28099 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata"}, 28100 } 28101 } 28102 28103 func schema_pkg_apis_meta_v1_Patch(ref common.ReferenceCallback) common.OpenAPIDefinition { 28104 return common.OpenAPIDefinition{ 28105 Schema: spec.Schema{ 28106 SchemaProps: spec.SchemaProps{ 28107 Description: "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", 28108 Type: []string{"object"}, 28109 }, 28110 }, 28111 } 28112 } 28113 28114 func schema_pkg_apis_meta_v1_PatchOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 28115 return common.OpenAPIDefinition{ 28116 Schema: spec.Schema{ 28117 SchemaProps: spec.SchemaProps{ 28118 Description: "PatchOptions may be provided when patching an API object. PatchOptions is meant to be a superset of UpdateOptions.", 28119 Type: []string{"object"}, 28120 Properties: map[string]spec.Schema{ 28121 "kind": { 28122 SchemaProps: spec.SchemaProps{ 28123 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 28124 Type: []string{"string"}, 28125 Format: "", 28126 }, 28127 }, 28128 "apiVersion": { 28129 SchemaProps: spec.SchemaProps{ 28130 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 28131 Type: []string{"string"}, 28132 Format: "", 28133 }, 28134 }, 28135 "dryRun": { 28136 SchemaProps: spec.SchemaProps{ 28137 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", 28138 Type: []string{"array"}, 28139 Items: &spec.SchemaOrArray{ 28140 Schema: &spec.Schema{ 28141 SchemaProps: spec.SchemaProps{ 28142 Default: "", 28143 Type: []string{"string"}, 28144 Format: "", 28145 }, 28146 }, 28147 }, 28148 }, 28149 }, 28150 "force": { 28151 SchemaProps: spec.SchemaProps{ 28152 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.", 28153 Type: []string{"boolean"}, 28154 Format: "", 28155 }, 28156 }, 28157 "fieldManager": { 28158 SchemaProps: spec.SchemaProps{ 28159 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).", 28160 Type: []string{"string"}, 28161 Format: "", 28162 }, 28163 }, 28164 "fieldValidation": { 28165 SchemaProps: spec.SchemaProps{ 28166 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.", 28167 Type: []string{"string"}, 28168 Format: "", 28169 }, 28170 }, 28171 }, 28172 }, 28173 }, 28174 } 28175 } 28176 28177 func schema_pkg_apis_meta_v1_Preconditions(ref common.ReferenceCallback) common.OpenAPIDefinition { 28178 return common.OpenAPIDefinition{ 28179 Schema: spec.Schema{ 28180 SchemaProps: spec.SchemaProps{ 28181 Description: "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.", 28182 Type: []string{"object"}, 28183 Properties: map[string]spec.Schema{ 28184 "uid": { 28185 SchemaProps: spec.SchemaProps{ 28186 Description: "Specifies the target UID.", 28187 Type: []string{"string"}, 28188 Format: "", 28189 }, 28190 }, 28191 "resourceVersion": { 28192 SchemaProps: spec.SchemaProps{ 28193 Description: "Specifies the target ResourceVersion", 28194 Type: []string{"string"}, 28195 Format: "", 28196 }, 28197 }, 28198 }, 28199 }, 28200 }, 28201 } 28202 } 28203 28204 func schema_pkg_apis_meta_v1_RootPaths(ref common.ReferenceCallback) common.OpenAPIDefinition { 28205 return common.OpenAPIDefinition{ 28206 Schema: spec.Schema{ 28207 SchemaProps: spec.SchemaProps{ 28208 Description: "RootPaths lists the paths available at root. For example: \"/healthz\", \"/apis\".", 28209 Type: []string{"object"}, 28210 Properties: map[string]spec.Schema{ 28211 "paths": { 28212 SchemaProps: spec.SchemaProps{ 28213 Description: "paths are the paths available at root.", 28214 Type: []string{"array"}, 28215 Items: &spec.SchemaOrArray{ 28216 Schema: &spec.Schema{ 28217 SchemaProps: spec.SchemaProps{ 28218 Default: "", 28219 Type: []string{"string"}, 28220 Format: "", 28221 }, 28222 }, 28223 }, 28224 }, 28225 }, 28226 }, 28227 Required: []string{"paths"}, 28228 }, 28229 }, 28230 } 28231 } 28232 28233 func schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref common.ReferenceCallback) common.OpenAPIDefinition { 28234 return common.OpenAPIDefinition{ 28235 Schema: spec.Schema{ 28236 SchemaProps: spec.SchemaProps{ 28237 Description: "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.", 28238 Type: []string{"object"}, 28239 Properties: map[string]spec.Schema{ 28240 "clientCIDR": { 28241 SchemaProps: spec.SchemaProps{ 28242 Description: "The CIDR with which clients can match their IP to figure out the server address that they should use.", 28243 Default: "", 28244 Type: []string{"string"}, 28245 Format: "", 28246 }, 28247 }, 28248 "serverAddress": { 28249 SchemaProps: spec.SchemaProps{ 28250 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.", 28251 Default: "", 28252 Type: []string{"string"}, 28253 Format: "", 28254 }, 28255 }, 28256 }, 28257 Required: []string{"clientCIDR", "serverAddress"}, 28258 }, 28259 }, 28260 } 28261 } 28262 28263 func schema_pkg_apis_meta_v1_Status(ref common.ReferenceCallback) common.OpenAPIDefinition { 28264 return common.OpenAPIDefinition{ 28265 Schema: spec.Schema{ 28266 SchemaProps: spec.SchemaProps{ 28267 Description: "Status is a return value for calls that don't return other objects.", 28268 Type: []string{"object"}, 28269 Properties: map[string]spec.Schema{ 28270 "kind": { 28271 SchemaProps: spec.SchemaProps{ 28272 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 28273 Type: []string{"string"}, 28274 Format: "", 28275 }, 28276 }, 28277 "apiVersion": { 28278 SchemaProps: spec.SchemaProps{ 28279 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 28280 Type: []string{"string"}, 28281 Format: "", 28282 }, 28283 }, 28284 "metadata": { 28285 SchemaProps: spec.SchemaProps{ 28286 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 28287 Default: map[string]interface{}{}, 28288 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 28289 }, 28290 }, 28291 "status": { 28292 SchemaProps: spec.SchemaProps{ 28293 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", 28294 Type: []string{"string"}, 28295 Format: "", 28296 }, 28297 }, 28298 "message": { 28299 SchemaProps: spec.SchemaProps{ 28300 Description: "A human-readable description of the status of this operation.", 28301 Type: []string{"string"}, 28302 Format: "", 28303 }, 28304 }, 28305 "reason": { 28306 SchemaProps: spec.SchemaProps{ 28307 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.", 28308 Type: []string{"string"}, 28309 Format: "", 28310 }, 28311 }, 28312 "details": { 28313 SchemaProps: spec.SchemaProps{ 28314 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.", 28315 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails"), 28316 }, 28317 }, 28318 "code": { 28319 SchemaProps: spec.SchemaProps{ 28320 Description: "Suggested HTTP return code for this status, 0 if not set.", 28321 Type: []string{"integer"}, 28322 Format: "int32", 28323 }, 28324 }, 28325 }, 28326 }, 28327 }, 28328 Dependencies: []string{ 28329 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails"}, 28330 } 28331 } 28332 28333 func schema_pkg_apis_meta_v1_StatusCause(ref common.ReferenceCallback) common.OpenAPIDefinition { 28334 return common.OpenAPIDefinition{ 28335 Schema: spec.Schema{ 28336 SchemaProps: spec.SchemaProps{ 28337 Description: "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.", 28338 Type: []string{"object"}, 28339 Properties: map[string]spec.Schema{ 28340 "reason": { 28341 SchemaProps: spec.SchemaProps{ 28342 Description: "A machine-readable description of the cause of the error. If this value is empty there is no information available.", 28343 Type: []string{"string"}, 28344 Format: "", 28345 }, 28346 }, 28347 "message": { 28348 SchemaProps: spec.SchemaProps{ 28349 Description: "A human-readable description of the cause of the error. This field may be presented as-is to a reader.", 28350 Type: []string{"string"}, 28351 Format: "", 28352 }, 28353 }, 28354 "field": { 28355 SchemaProps: spec.SchemaProps{ 28356 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\"", 28357 Type: []string{"string"}, 28358 Format: "", 28359 }, 28360 }, 28361 }, 28362 }, 28363 }, 28364 } 28365 } 28366 28367 func schema_pkg_apis_meta_v1_StatusDetails(ref common.ReferenceCallback) common.OpenAPIDefinition { 28368 return common.OpenAPIDefinition{ 28369 Schema: spec.Schema{ 28370 SchemaProps: spec.SchemaProps{ 28371 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.", 28372 Type: []string{"object"}, 28373 Properties: map[string]spec.Schema{ 28374 "name": { 28375 SchemaProps: spec.SchemaProps{ 28376 Description: "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).", 28377 Type: []string{"string"}, 28378 Format: "", 28379 }, 28380 }, 28381 "group": { 28382 SchemaProps: spec.SchemaProps{ 28383 Description: "The group attribute of the resource associated with the status StatusReason.", 28384 Type: []string{"string"}, 28385 Format: "", 28386 }, 28387 }, 28388 "kind": { 28389 SchemaProps: spec.SchemaProps{ 28390 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", 28391 Type: []string{"string"}, 28392 Format: "", 28393 }, 28394 }, 28395 "uid": { 28396 SchemaProps: spec.SchemaProps{ 28397 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", 28398 Type: []string{"string"}, 28399 Format: "", 28400 }, 28401 }, 28402 "causes": { 28403 SchemaProps: spec.SchemaProps{ 28404 Description: "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.", 28405 Type: []string{"array"}, 28406 Items: &spec.SchemaOrArray{ 28407 Schema: &spec.Schema{ 28408 SchemaProps: spec.SchemaProps{ 28409 Default: map[string]interface{}{}, 28410 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause"), 28411 }, 28412 }, 28413 }, 28414 }, 28415 }, 28416 "retryAfterSeconds": { 28417 SchemaProps: spec.SchemaProps{ 28418 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.", 28419 Type: []string{"integer"}, 28420 Format: "int32", 28421 }, 28422 }, 28423 }, 28424 }, 28425 }, 28426 Dependencies: []string{ 28427 "k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause"}, 28428 } 28429 } 28430 28431 func schema_pkg_apis_meta_v1_Table(ref common.ReferenceCallback) common.OpenAPIDefinition { 28432 return common.OpenAPIDefinition{ 28433 Schema: spec.Schema{ 28434 SchemaProps: spec.SchemaProps{ 28435 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.", 28436 Type: []string{"object"}, 28437 Properties: map[string]spec.Schema{ 28438 "kind": { 28439 SchemaProps: spec.SchemaProps{ 28440 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 28441 Type: []string{"string"}, 28442 Format: "", 28443 }, 28444 }, 28445 "apiVersion": { 28446 SchemaProps: spec.SchemaProps{ 28447 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 28448 Type: []string{"string"}, 28449 Format: "", 28450 }, 28451 }, 28452 "metadata": { 28453 SchemaProps: spec.SchemaProps{ 28454 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 28455 Default: map[string]interface{}{}, 28456 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 28457 }, 28458 }, 28459 "columnDefinitions": { 28460 SchemaProps: spec.SchemaProps{ 28461 Description: "columnDefinitions describes each column in the returned items array. The number of cells per row will always match the number of column definitions.", 28462 Type: []string{"array"}, 28463 Items: &spec.SchemaOrArray{ 28464 Schema: &spec.Schema{ 28465 SchemaProps: spec.SchemaProps{ 28466 Default: map[string]interface{}{}, 28467 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition"), 28468 }, 28469 }, 28470 }, 28471 }, 28472 }, 28473 "rows": { 28474 SchemaProps: spec.SchemaProps{ 28475 Description: "rows is the list of items in the table.", 28476 Type: []string{"array"}, 28477 Items: &spec.SchemaOrArray{ 28478 Schema: &spec.Schema{ 28479 SchemaProps: spec.SchemaProps{ 28480 Default: map[string]interface{}{}, 28481 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.TableRow"), 28482 }, 28483 }, 28484 }, 28485 }, 28486 }, 28487 }, 28488 Required: []string{"columnDefinitions", "rows"}, 28489 }, 28490 }, 28491 Dependencies: []string{ 28492 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition", "k8s.io/apimachinery/pkg/apis/meta/v1.TableRow"}, 28493 } 28494 } 28495 28496 func schema_pkg_apis_meta_v1_TableColumnDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition { 28497 return common.OpenAPIDefinition{ 28498 Schema: spec.Schema{ 28499 SchemaProps: spec.SchemaProps{ 28500 Description: "TableColumnDefinition contains information about a column returned in the Table.", 28501 Type: []string{"object"}, 28502 Properties: map[string]spec.Schema{ 28503 "name": { 28504 SchemaProps: spec.SchemaProps{ 28505 Description: "name is a human readable name for the column.", 28506 Default: "", 28507 Type: []string{"string"}, 28508 Format: "", 28509 }, 28510 }, 28511 "type": { 28512 SchemaProps: spec.SchemaProps{ 28513 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.", 28514 Default: "", 28515 Type: []string{"string"}, 28516 Format: "", 28517 }, 28518 }, 28519 "format": { 28520 SchemaProps: spec.SchemaProps{ 28521 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.", 28522 Default: "", 28523 Type: []string{"string"}, 28524 Format: "", 28525 }, 28526 }, 28527 "description": { 28528 SchemaProps: spec.SchemaProps{ 28529 Description: "description is a human readable description of this column.", 28530 Default: "", 28531 Type: []string{"string"}, 28532 Format: "", 28533 }, 28534 }, 28535 "priority": { 28536 SchemaProps: spec.SchemaProps{ 28537 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.", 28538 Default: 0, 28539 Type: []string{"integer"}, 28540 Format: "int32", 28541 }, 28542 }, 28543 }, 28544 Required: []string{"name", "type", "format", "description", "priority"}, 28545 }, 28546 }, 28547 } 28548 } 28549 28550 func schema_pkg_apis_meta_v1_TableOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 28551 return common.OpenAPIDefinition{ 28552 Schema: spec.Schema{ 28553 SchemaProps: spec.SchemaProps{ 28554 Description: "TableOptions are used when a Table is requested by the caller.", 28555 Type: []string{"object"}, 28556 Properties: map[string]spec.Schema{ 28557 "kind": { 28558 SchemaProps: spec.SchemaProps{ 28559 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 28560 Type: []string{"string"}, 28561 Format: "", 28562 }, 28563 }, 28564 "apiVersion": { 28565 SchemaProps: spec.SchemaProps{ 28566 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 28567 Type: []string{"string"}, 28568 Format: "", 28569 }, 28570 }, 28571 "includeObject": { 28572 SchemaProps: spec.SchemaProps{ 28573 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.", 28574 Type: []string{"string"}, 28575 Format: "", 28576 }, 28577 }, 28578 }, 28579 }, 28580 }, 28581 } 28582 } 28583 28584 func schema_pkg_apis_meta_v1_TableRow(ref common.ReferenceCallback) common.OpenAPIDefinition { 28585 return common.OpenAPIDefinition{ 28586 Schema: spec.Schema{ 28587 SchemaProps: spec.SchemaProps{ 28588 Description: "TableRow is an individual row in a table.", 28589 Type: []string{"object"}, 28590 Properties: map[string]spec.Schema{ 28591 "cells": { 28592 SchemaProps: spec.SchemaProps{ 28593 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.", 28594 Type: []string{"array"}, 28595 Items: &spec.SchemaOrArray{ 28596 Schema: &spec.Schema{ 28597 SchemaProps: spec.SchemaProps{ 28598 Type: []string{"object"}, 28599 Format: "", 28600 }, 28601 }, 28602 }, 28603 }, 28604 }, 28605 "conditions": { 28606 SchemaProps: spec.SchemaProps{ 28607 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.", 28608 Type: []string{"array"}, 28609 Items: &spec.SchemaOrArray{ 28610 Schema: &spec.Schema{ 28611 SchemaProps: spec.SchemaProps{ 28612 Default: map[string]interface{}{}, 28613 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition"), 28614 }, 28615 }, 28616 }, 28617 }, 28618 }, 28619 "object": { 28620 SchemaProps: spec.SchemaProps{ 28621 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.", 28622 Default: map[string]interface{}{}, 28623 Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), 28624 }, 28625 }, 28626 }, 28627 Required: []string{"cells"}, 28628 }, 28629 }, 28630 Dependencies: []string{ 28631 "k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition", "k8s.io/apimachinery/pkg/runtime.RawExtension"}, 28632 } 28633 } 28634 28635 func schema_pkg_apis_meta_v1_TableRowCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 28636 return common.OpenAPIDefinition{ 28637 Schema: spec.Schema{ 28638 SchemaProps: spec.SchemaProps{ 28639 Description: "TableRowCondition allows a row to be marked with additional information.", 28640 Type: []string{"object"}, 28641 Properties: map[string]spec.Schema{ 28642 "type": { 28643 SchemaProps: spec.SchemaProps{ 28644 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.", 28645 Default: "", 28646 Type: []string{"string"}, 28647 Format: "", 28648 }, 28649 }, 28650 "status": { 28651 SchemaProps: spec.SchemaProps{ 28652 Description: "Status of the condition, one of True, False, Unknown.", 28653 Default: "", 28654 Type: []string{"string"}, 28655 Format: "", 28656 }, 28657 }, 28658 "reason": { 28659 SchemaProps: spec.SchemaProps{ 28660 Description: "(brief) machine readable reason for the condition's last transition.", 28661 Type: []string{"string"}, 28662 Format: "", 28663 }, 28664 }, 28665 "message": { 28666 SchemaProps: spec.SchemaProps{ 28667 Description: "Human readable message indicating details about last transition.", 28668 Type: []string{"string"}, 28669 Format: "", 28670 }, 28671 }, 28672 }, 28673 Required: []string{"type", "status"}, 28674 }, 28675 }, 28676 } 28677 } 28678 28679 func schema_pkg_apis_meta_v1_Time(ref common.ReferenceCallback) common.OpenAPIDefinition { 28680 return common.OpenAPIDefinition{ 28681 Schema: spec.Schema{ 28682 SchemaProps: spec.SchemaProps{ 28683 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.", 28684 Type: v1.Time{}.OpenAPISchemaType(), 28685 Format: v1.Time{}.OpenAPISchemaFormat(), 28686 }, 28687 }, 28688 } 28689 } 28690 28691 func schema_pkg_apis_meta_v1_Timestamp(ref common.ReferenceCallback) common.OpenAPIDefinition { 28692 return common.OpenAPIDefinition{ 28693 Schema: spec.Schema{ 28694 SchemaProps: spec.SchemaProps{ 28695 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.", 28696 Type: []string{"object"}, 28697 Properties: map[string]spec.Schema{ 28698 "seconds": { 28699 SchemaProps: spec.SchemaProps{ 28700 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.", 28701 Default: 0, 28702 Type: []string{"integer"}, 28703 Format: "int64", 28704 }, 28705 }, 28706 "nanos": { 28707 SchemaProps: spec.SchemaProps{ 28708 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.", 28709 Default: 0, 28710 Type: []string{"integer"}, 28711 Format: "int32", 28712 }, 28713 }, 28714 }, 28715 Required: []string{"seconds", "nanos"}, 28716 }, 28717 }, 28718 } 28719 } 28720 28721 func schema_pkg_apis_meta_v1_TypeMeta(ref common.ReferenceCallback) common.OpenAPIDefinition { 28722 return common.OpenAPIDefinition{ 28723 Schema: spec.Schema{ 28724 SchemaProps: spec.SchemaProps{ 28725 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.", 28726 Type: []string{"object"}, 28727 Properties: map[string]spec.Schema{ 28728 "kind": { 28729 SchemaProps: spec.SchemaProps{ 28730 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 28731 Type: []string{"string"}, 28732 Format: "", 28733 }, 28734 }, 28735 "apiVersion": { 28736 SchemaProps: spec.SchemaProps{ 28737 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 28738 Type: []string{"string"}, 28739 Format: "", 28740 }, 28741 }, 28742 }, 28743 }, 28744 }, 28745 } 28746 } 28747 28748 func schema_pkg_apis_meta_v1_UpdateOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 28749 return common.OpenAPIDefinition{ 28750 Schema: spec.Schema{ 28751 SchemaProps: spec.SchemaProps{ 28752 Description: "UpdateOptions may be provided when updating an API object. All fields in UpdateOptions should also be present in PatchOptions.", 28753 Type: []string{"object"}, 28754 Properties: map[string]spec.Schema{ 28755 "kind": { 28756 SchemaProps: spec.SchemaProps{ 28757 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 28758 Type: []string{"string"}, 28759 Format: "", 28760 }, 28761 }, 28762 "apiVersion": { 28763 SchemaProps: spec.SchemaProps{ 28764 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 28765 Type: []string{"string"}, 28766 Format: "", 28767 }, 28768 }, 28769 "dryRun": { 28770 SchemaProps: spec.SchemaProps{ 28771 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", 28772 Type: []string{"array"}, 28773 Items: &spec.SchemaOrArray{ 28774 Schema: &spec.Schema{ 28775 SchemaProps: spec.SchemaProps{ 28776 Default: "", 28777 Type: []string{"string"}, 28778 Format: "", 28779 }, 28780 }, 28781 }, 28782 }, 28783 }, 28784 "fieldManager": { 28785 SchemaProps: spec.SchemaProps{ 28786 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.", 28787 Type: []string{"string"}, 28788 Format: "", 28789 }, 28790 }, 28791 "fieldValidation": { 28792 SchemaProps: spec.SchemaProps{ 28793 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.", 28794 Type: []string{"string"}, 28795 Format: "", 28796 }, 28797 }, 28798 }, 28799 }, 28800 }, 28801 } 28802 } 28803 28804 func schema_pkg_apis_meta_v1_WatchEvent(ref common.ReferenceCallback) common.OpenAPIDefinition { 28805 return common.OpenAPIDefinition{ 28806 Schema: spec.Schema{ 28807 SchemaProps: spec.SchemaProps{ 28808 Description: "Event represents a single event to a watched resource.", 28809 Type: []string{"object"}, 28810 Properties: map[string]spec.Schema{ 28811 "type": { 28812 SchemaProps: spec.SchemaProps{ 28813 Default: "", 28814 Type: []string{"string"}, 28815 Format: "", 28816 }, 28817 }, 28818 "object": { 28819 SchemaProps: spec.SchemaProps{ 28820 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.", 28821 Default: map[string]interface{}{}, 28822 Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), 28823 }, 28824 }, 28825 }, 28826 Required: []string{"type", "object"}, 28827 }, 28828 }, 28829 Dependencies: []string{ 28830 "k8s.io/apimachinery/pkg/runtime.RawExtension"}, 28831 } 28832 } 28833 28834 func schema_k8sio_apimachinery_pkg_runtime_RawExtension(ref common.ReferenceCallback) common.OpenAPIDefinition { 28835 return common.OpenAPIDefinition{ 28836 Schema: spec.Schema{ 28837 SchemaProps: spec.SchemaProps{ 28838 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.)", 28839 Type: []string{"object"}, 28840 }, 28841 }, 28842 } 28843 } 28844 28845 func schema_k8sio_apimachinery_pkg_runtime_TypeMeta(ref common.ReferenceCallback) common.OpenAPIDefinition { 28846 return common.OpenAPIDefinition{ 28847 Schema: spec.Schema{ 28848 SchemaProps: spec.SchemaProps{ 28849 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.", 28850 Type: []string{"object"}, 28851 Properties: map[string]spec.Schema{ 28852 "apiVersion": { 28853 SchemaProps: spec.SchemaProps{ 28854 Type: []string{"string"}, 28855 Format: "", 28856 }, 28857 }, 28858 "kind": { 28859 SchemaProps: spec.SchemaProps{ 28860 Type: []string{"string"}, 28861 Format: "", 28862 }, 28863 }, 28864 }, 28865 }, 28866 }, 28867 } 28868 } 28869 28870 func schema_k8sio_apimachinery_pkg_runtime_Unknown(ref common.ReferenceCallback) common.OpenAPIDefinition { 28871 return common.OpenAPIDefinition{ 28872 Schema: spec.Schema{ 28873 SchemaProps: spec.SchemaProps{ 28874 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.", 28875 Type: []string{"object"}, 28876 Properties: map[string]spec.Schema{ 28877 "apiVersion": { 28878 SchemaProps: spec.SchemaProps{ 28879 Type: []string{"string"}, 28880 Format: "", 28881 }, 28882 }, 28883 "kind": { 28884 SchemaProps: spec.SchemaProps{ 28885 Type: []string{"string"}, 28886 Format: "", 28887 }, 28888 }, 28889 "ContentEncoding": { 28890 SchemaProps: spec.SchemaProps{ 28891 Description: "ContentEncoding is encoding used to encode 'Raw' data. Unspecified means no encoding.", 28892 Default: "", 28893 Type: []string{"string"}, 28894 Format: "", 28895 }, 28896 }, 28897 "ContentType": { 28898 SchemaProps: spec.SchemaProps{ 28899 Description: "ContentType is serialization method used to serialize 'Raw'. Unspecified means ContentTypeJSON.", 28900 Default: "", 28901 Type: []string{"string"}, 28902 Format: "", 28903 }, 28904 }, 28905 }, 28906 Required: []string{"ContentEncoding", "ContentType"}, 28907 }, 28908 }, 28909 } 28910 } 28911 28912 func schema_apimachinery_pkg_util_intstr_IntOrString(ref common.ReferenceCallback) common.OpenAPIDefinition { 28913 return common.EmbedOpenAPIDefinitionIntoV2Extension(common.OpenAPIDefinition{ 28914 Schema: spec.Schema{ 28915 SchemaProps: spec.SchemaProps{ 28916 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.", 28917 OneOf: common.GenerateOpenAPIV3OneOfSchema(intstr.IntOrString{}.OpenAPIV3OneOfTypes()), 28918 Format: intstr.IntOrString{}.OpenAPISchemaFormat(), 28919 }, 28920 }, 28921 }, common.OpenAPIDefinition{ 28922 Schema: spec.Schema{ 28923 SchemaProps: spec.SchemaProps{ 28924 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.", 28925 Type: intstr.IntOrString{}.OpenAPISchemaType(), 28926 Format: intstr.IntOrString{}.OpenAPISchemaFormat(), 28927 }, 28928 }, 28929 }) 28930 } 28931 28932 func schema_k8sio_apimachinery_pkg_version_Info(ref common.ReferenceCallback) common.OpenAPIDefinition { 28933 return common.OpenAPIDefinition{ 28934 Schema: spec.Schema{ 28935 SchemaProps: spec.SchemaProps{ 28936 Description: "Info contains versioning information. how we'll want to distribute that information.", 28937 Type: []string{"object"}, 28938 Properties: map[string]spec.Schema{ 28939 "major": { 28940 SchemaProps: spec.SchemaProps{ 28941 Default: "", 28942 Type: []string{"string"}, 28943 Format: "", 28944 }, 28945 }, 28946 "minor": { 28947 SchemaProps: spec.SchemaProps{ 28948 Default: "", 28949 Type: []string{"string"}, 28950 Format: "", 28951 }, 28952 }, 28953 "gitVersion": { 28954 SchemaProps: spec.SchemaProps{ 28955 Default: "", 28956 Type: []string{"string"}, 28957 Format: "", 28958 }, 28959 }, 28960 "gitCommit": { 28961 SchemaProps: spec.SchemaProps{ 28962 Default: "", 28963 Type: []string{"string"}, 28964 Format: "", 28965 }, 28966 }, 28967 "gitTreeState": { 28968 SchemaProps: spec.SchemaProps{ 28969 Default: "", 28970 Type: []string{"string"}, 28971 Format: "", 28972 }, 28973 }, 28974 "buildDate": { 28975 SchemaProps: spec.SchemaProps{ 28976 Default: "", 28977 Type: []string{"string"}, 28978 Format: "", 28979 }, 28980 }, 28981 "goVersion": { 28982 SchemaProps: spec.SchemaProps{ 28983 Default: "", 28984 Type: []string{"string"}, 28985 Format: "", 28986 }, 28987 }, 28988 "compiler": { 28989 SchemaProps: spec.SchemaProps{ 28990 Default: "", 28991 Type: []string{"string"}, 28992 Format: "", 28993 }, 28994 }, 28995 "platform": { 28996 SchemaProps: spec.SchemaProps{ 28997 Default: "", 28998 Type: []string{"string"}, 28999 Format: "", 29000 }, 29001 }, 29002 }, 29003 Required: []string{"major", "minor", "gitVersion", "gitCommit", "gitTreeState", "buildDate", "goVersion", "compiler", "platform"}, 29004 }, 29005 }, 29006 } 29007 }