mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 03:03:59 +00:00
Fix list_type_missing in sample-apiserver
This commit is contained in:
parent
e9bd9262dc
commit
b8982be268
@ -1,4 +1,3 @@
|
||||
API rule violation: list_type_missing,k8s.io/sample-apiserver/pkg/apis/wardle/v1alpha1,Fischer,DisallowedFlunders
|
||||
API rule violation: names_match,k8s.io/apimachinery/pkg/apis/meta/v1,APIResourceList,APIResources
|
||||
API rule violation: names_match,k8s.io/apimachinery/pkg/apis/meta/v1,Duration,Duration
|
||||
API rule violation: names_match,k8s.io/apimachinery/pkg/apis/meta/v1,InternalEvent,Object
|
||||
|
@ -65,6 +65,7 @@ type Fischer struct {
|
||||
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
|
||||
|
||||
// DisallowedFlunders holds a list of Flunder.Names that are disallowed.
|
||||
// +listType=atomic
|
||||
DisallowedFlunders []string `json:"disallowedFlunders,omitempty" protobuf:"bytes,2,rep,name=disallowedFlunders"`
|
||||
}
|
||||
|
||||
|
@ -2662,6 +2662,11 @@ func schema_pkg_apis_wardle_v1alpha1_Fischer(ref common.ReferenceCallback) commo
|
||||
},
|
||||
},
|
||||
"disallowedFlunders": {
|
||||
VendorExtensible: spec.VendorExtensible{
|
||||
Extensions: spec.Extensions{
|
||||
"x-kubernetes-list-type": "atomic",
|
||||
},
|
||||
},
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "DisallowedFlunders holds a list of Flunder.Names that are disallowed.",
|
||||
Type: []string{"array"},
|
||||
|
Loading…
Reference in New Issue
Block a user