mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 12:18:16 +00:00 
			
		
		
		
	Fix list_type_missing in k8s.io/metrics
This commit is contained in:
		@@ -36,8 +36,6 @@ API rule violation: list_type_missing,k8s.io/kubelet/config/v1beta1,KubeletConfi
 | 
				
			|||||||
API rule violation: list_type_missing,k8s.io/kubelet/config/v1beta1,KubeletConfiguration,ReservedMemory
 | 
					API rule violation: list_type_missing,k8s.io/kubelet/config/v1beta1,KubeletConfiguration,ReservedMemory
 | 
				
			||||||
API rule violation: list_type_missing,k8s.io/kubelet/config/v1beta1,KubeletConfiguration,ShutdownGracePeriodByPodPriority
 | 
					API rule violation: list_type_missing,k8s.io/kubelet/config/v1beta1,KubeletConfiguration,ShutdownGracePeriodByPodPriority
 | 
				
			||||||
API rule violation: list_type_missing,k8s.io/kubelet/config/v1beta1,KubeletConfiguration,TLSCipherSuites
 | 
					API rule violation: list_type_missing,k8s.io/kubelet/config/v1beta1,KubeletConfiguration,TLSCipherSuites
 | 
				
			||||||
API rule violation: list_type_missing,k8s.io/metrics/pkg/apis/metrics/v1alpha1,PodMetrics,Containers
 | 
					 | 
				
			||||||
API rule violation: list_type_missing,k8s.io/metrics/pkg/apis/metrics/v1beta1,PodMetrics,Containers
 | 
					 | 
				
			||||||
API rule violation: names_match,k8s.io/api/authorization/v1beta1,SubjectAccessReviewSpec,Groups
 | 
					API rule violation: names_match,k8s.io/api/authorization/v1beta1,SubjectAccessReviewSpec,Groups
 | 
				
			||||||
API rule violation: names_match,k8s.io/api/core/v1,AzureDiskVolumeSource,DataDiskURI
 | 
					API rule violation: names_match,k8s.io/api/core/v1,AzureDiskVolumeSource,DataDiskURI
 | 
				
			||||||
API rule violation: names_match,k8s.io/api/core/v1,ContainerStatus,LastTerminationState
 | 
					API rule violation: names_match,k8s.io/api/core/v1,ContainerStatus,LastTerminationState
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										10
									
								
								pkg/generated/openapi/zz_generated.openapi.go
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										10
									
								
								pkg/generated/openapi/zz_generated.openapi.go
									
									
									
										generated
									
									
									
								
							@@ -59962,6 +59962,11 @@ func schema_pkg_apis_metrics_v1alpha1_PodMetrics(ref common.ReferenceCallback) c
 | 
				
			|||||||
						},
 | 
											},
 | 
				
			||||||
					},
 | 
										},
 | 
				
			||||||
					"containers": {
 | 
										"containers": {
 | 
				
			||||||
 | 
											VendorExtensible: spec.VendorExtensible{
 | 
				
			||||||
 | 
												Extensions: spec.Extensions{
 | 
				
			||||||
 | 
													"x-kubernetes-list-type": "atomic",
 | 
				
			||||||
 | 
												},
 | 
				
			||||||
 | 
											},
 | 
				
			||||||
						SchemaProps: spec.SchemaProps{
 | 
											SchemaProps: spec.SchemaProps{
 | 
				
			||||||
							Description: "Metrics for all containers are collected within the same time window.",
 | 
												Description: "Metrics for all containers are collected within the same time window.",
 | 
				
			||||||
							Type:        []string{"array"},
 | 
												Type:        []string{"array"},
 | 
				
			||||||
@@ -60226,6 +60231,11 @@ func schema_pkg_apis_metrics_v1beta1_PodMetrics(ref common.ReferenceCallback) co
 | 
				
			|||||||
						},
 | 
											},
 | 
				
			||||||
					},
 | 
										},
 | 
				
			||||||
					"containers": {
 | 
										"containers": {
 | 
				
			||||||
 | 
											VendorExtensible: spec.VendorExtensible{
 | 
				
			||||||
 | 
												Extensions: spec.Extensions{
 | 
				
			||||||
 | 
													"x-kubernetes-list-type": "atomic",
 | 
				
			||||||
 | 
												},
 | 
				
			||||||
 | 
											},
 | 
				
			||||||
						SchemaProps: spec.SchemaProps{
 | 
											SchemaProps: spec.SchemaProps{
 | 
				
			||||||
							Description: "Metrics for all containers are collected within the same time window.",
 | 
												Description: "Metrics for all containers are collected within the same time window.",
 | 
				
			||||||
							Type:        []string{"array"},
 | 
												Type:        []string{"array"},
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -80,6 +80,7 @@ message PodMetrics {
 | 
				
			|||||||
  optional k8s.io.apimachinery.pkg.apis.meta.v1.Duration window = 3;
 | 
					  optional k8s.io.apimachinery.pkg.apis.meta.v1.Duration window = 3;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // Metrics for all containers are collected within the same time window.
 | 
					  // Metrics for all containers are collected within the same time window.
 | 
				
			||||||
 | 
					  // +listType=atomic
 | 
				
			||||||
  repeated ContainerMetrics containers = 4;
 | 
					  repeated ContainerMetrics containers = 4;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -76,6 +76,7 @@ type PodMetrics struct {
 | 
				
			|||||||
	Window    metav1.Duration `json:"window" protobuf:"bytes,3,opt,name=window"`
 | 
						Window    metav1.Duration `json:"window" protobuf:"bytes,3,opt,name=window"`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Metrics for all containers are collected within the same time window.
 | 
						// Metrics for all containers are collected within the same time window.
 | 
				
			||||||
 | 
						// +listType=atomic
 | 
				
			||||||
	Containers []ContainerMetrics `json:"containers" protobuf:"bytes,4,rep,name=containers"`
 | 
						Containers []ContainerMetrics `json:"containers" protobuf:"bytes,4,rep,name=containers"`
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -80,6 +80,7 @@ message PodMetrics {
 | 
				
			|||||||
  optional k8s.io.apimachinery.pkg.apis.meta.v1.Duration window = 3;
 | 
					  optional k8s.io.apimachinery.pkg.apis.meta.v1.Duration window = 3;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // Metrics for all containers are collected within the same time window.
 | 
					  // Metrics for all containers are collected within the same time window.
 | 
				
			||||||
 | 
					  // +listType=atomic
 | 
				
			||||||
  repeated ContainerMetrics containers = 4;
 | 
					  repeated ContainerMetrics containers = 4;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -76,6 +76,7 @@ type PodMetrics struct {
 | 
				
			|||||||
	Window    metav1.Duration `json:"window" protobuf:"bytes,3,opt,name=window"`
 | 
						Window    metav1.Duration `json:"window" protobuf:"bytes,3,opt,name=window"`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Metrics for all containers are collected within the same time window.
 | 
						// Metrics for all containers are collected within the same time window.
 | 
				
			||||||
 | 
						// +listType=atomic
 | 
				
			||||||
	Containers []ContainerMetrics `json:"containers" protobuf:"bytes,4,rep,name=containers"`
 | 
						Containers []ContainerMetrics `json:"containers" protobuf:"bytes,4,rep,name=containers"`
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user