mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-12 05:21:58 +00:00
Test custom resource scaling with multiple versions
This commit is contained in:
parent
7e0775e5ec
commit
3332a0c972
@ -51,6 +51,10 @@ func NewNoxuSubresourcesCRD(scope apiextensionsv1beta1.ResourceScope) *apiextens
|
|||||||
ShortNames: []string{"foo", "bar", "abc", "def"},
|
ShortNames: []string{"foo", "bar", "abc", "def"},
|
||||||
ListKind: "NoxuItemList",
|
ListKind: "NoxuItemList",
|
||||||
},
|
},
|
||||||
|
Versions: []apiextensionsv1beta1.CustomResourceDefinitionVersion{
|
||||||
|
{Name: "v1beta1", Served: true, Storage: false},
|
||||||
|
{Name: "v1", Served: true, Storage: true},
|
||||||
|
},
|
||||||
Scope: scope,
|
Scope: scope,
|
||||||
Subresources: &apiextensionsv1beta1.CustomResourceSubresources{
|
Subresources: &apiextensionsv1beta1.CustomResourceSubresources{
|
||||||
Status: &apiextensionsv1beta1.CustomResourceSubresourceStatus{},
|
Status: &apiextensionsv1beta1.CustomResourceSubresourceStatus{},
|
||||||
|
Loading…
Reference in New Issue
Block a user