mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 18:54:06 +00:00
Fix list_type_missing in api/imagepolicy
This commit is contained in:
parent
cddfa43769
commit
7fc3ef1fec
@ -1,4 +1,3 @@
|
|||||||
API rule violation: list_type_missing,k8s.io/api/imagepolicy/v1alpha1,ImageReviewSpec,Containers
|
|
||||||
API rule violation: list_type_missing,k8s.io/api/networking/v1,IPBlock,Except
|
API rule violation: list_type_missing,k8s.io/api/networking/v1,IPBlock,Except
|
||||||
API rule violation: list_type_missing,k8s.io/api/networking/v1,IngressLoadBalancerStatus,Ingress
|
API rule violation: list_type_missing,k8s.io/api/networking/v1,IngressLoadBalancerStatus,Ingress
|
||||||
API rule violation: list_type_missing,k8s.io/api/networking/v1,NetworkPolicyEgressRule,Ports
|
API rule violation: list_type_missing,k8s.io/api/networking/v1,NetworkPolicyEgressRule,Ports
|
||||||
|
5
pkg/generated/openapi/zz_generated.openapi.go
generated
5
pkg/generated/openapi/zz_generated.openapi.go
generated
@ -37939,6 +37939,11 @@ func schema_k8sio_api_imagepolicy_v1alpha1_ImageReviewSpec(ref common.ReferenceC
|
|||||||
Type: []string{"object"},
|
Type: []string{"object"},
|
||||||
Properties: map[string]spec.Schema{
|
Properties: map[string]spec.Schema{
|
||||||
"containers": {
|
"containers": {
|
||||||
|
VendorExtensible: spec.VendorExtensible{
|
||||||
|
Extensions: spec.Extensions{
|
||||||
|
"x-kubernetes-list-type": "atomic",
|
||||||
|
},
|
||||||
|
},
|
||||||
SchemaProps: spec.SchemaProps{
|
SchemaProps: spec.SchemaProps{
|
||||||
Description: "Containers is a list of a subset of the information in each container of the Pod being created.",
|
Description: "Containers is a list of a subset of the information in each container of the Pod being created.",
|
||||||
Type: []string{"array"},
|
Type: []string{"array"},
|
||||||
|
@ -54,6 +54,7 @@ message ImageReviewContainerSpec {
|
|||||||
message ImageReviewSpec {
|
message ImageReviewSpec {
|
||||||
// Containers is a list of a subset of the information in each container of the Pod being created.
|
// Containers is a list of a subset of the information in each container of the Pod being created.
|
||||||
// +optional
|
// +optional
|
||||||
|
// +listType=atomic
|
||||||
repeated ImageReviewContainerSpec containers = 1;
|
repeated ImageReviewContainerSpec containers = 1;
|
||||||
|
|
||||||
// Annotations is a list of key-value pairs extracted from the Pod's annotations.
|
// Annotations is a list of key-value pairs extracted from the Pod's annotations.
|
||||||
|
@ -45,6 +45,7 @@ type ImageReview struct {
|
|||||||
type ImageReviewSpec struct {
|
type ImageReviewSpec struct {
|
||||||
// Containers is a list of a subset of the information in each container of the Pod being created.
|
// Containers is a list of a subset of the information in each container of the Pod being created.
|
||||||
// +optional
|
// +optional
|
||||||
|
// +listType=atomic
|
||||||
Containers []ImageReviewContainerSpec `json:"containers,omitempty" protobuf:"bytes,1,rep,name=containers"`
|
Containers []ImageReviewContainerSpec `json:"containers,omitempty" protobuf:"bytes,1,rep,name=containers"`
|
||||||
// Annotations is a list of key-value pairs extracted from the Pod's annotations.
|
// Annotations is a list of key-value pairs extracted from the Pod's annotations.
|
||||||
// It only includes keys which match the pattern `*.image-policy.k8s.io/*`.
|
// It only includes keys which match the pattern `*.image-policy.k8s.io/*`.
|
||||||
|
Loading…
Reference in New Issue
Block a user