Register GetOptions in all api groups
This commit is contained in:
parent
3432fea8b2
commit
61d9fd6afc
@ -238,6 +238,7 @@ func TestList(t *testing.T) {
|
|||||||
|
|
||||||
var nonRoundTrippableTypes = sets.NewString(
|
var nonRoundTrippableTypes = sets.NewString(
|
||||||
"ExportOptions",
|
"ExportOptions",
|
||||||
|
"GetOptions",
|
||||||
// WatchEvent does not include kind and version and can only be deserialized
|
// WatchEvent does not include kind and version and can only be deserialized
|
||||||
// implicitly (if the caller expects the specific object). The watch call defines
|
// implicitly (if the caller expects the specific object). The watch call defines
|
||||||
// the schema by content type, rather than via kind/version included in each
|
// the schema by content type, rather than via kind/version included in each
|
||||||
|
@ -77,6 +77,7 @@ func addKnownTypes(scheme *runtime.Scheme) error {
|
|||||||
&PersistentVolumeClaimList{},
|
&PersistentVolumeClaimList{},
|
||||||
&DeleteOptions{},
|
&DeleteOptions{},
|
||||||
&metav1.ExportOptions{},
|
&metav1.ExportOptions{},
|
||||||
|
&metav1.GetOptions{},
|
||||||
&ListOptions{},
|
&ListOptions{},
|
||||||
&PodAttachOptions{},
|
&PodAttachOptions{},
|
||||||
&PodLogOptions{},
|
&PodLogOptions{},
|
||||||
|
@ -48,6 +48,7 @@ func addKnownTypes(scheme *runtime.Scheme) error {
|
|||||||
&v1.ListOptions{},
|
&v1.ListOptions{},
|
||||||
&v1.DeleteOptions{},
|
&v1.DeleteOptions{},
|
||||||
&metav1.ExportOptions{},
|
&metav1.ExportOptions{},
|
||||||
|
&metav1.GetOptions{},
|
||||||
)
|
)
|
||||||
versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion)
|
versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion)
|
||||||
return nil
|
return nil
|
||||||
|
@ -49,6 +49,7 @@ func addKnownTypes(scheme *runtime.Scheme) error {
|
|||||||
&api.ListOptions{},
|
&api.ListOptions{},
|
||||||
&api.DeleteOptions{},
|
&api.DeleteOptions{},
|
||||||
&metav1.ExportOptions{},
|
&metav1.ExportOptions{},
|
||||||
|
&metav1.GetOptions{},
|
||||||
|
|
||||||
&TokenReview{},
|
&TokenReview{},
|
||||||
)
|
)
|
||||||
|
@ -45,6 +45,7 @@ func addKnownTypes(scheme *runtime.Scheme) error {
|
|||||||
&v1.ListOptions{},
|
&v1.ListOptions{},
|
||||||
&v1.DeleteOptions{},
|
&v1.DeleteOptions{},
|
||||||
&metav1.ExportOptions{},
|
&metav1.ExportOptions{},
|
||||||
|
&metav1.GetOptions{},
|
||||||
|
|
||||||
&TokenReview{},
|
&TokenReview{},
|
||||||
)
|
)
|
||||||
|
@ -46,6 +46,7 @@ func addKnownTypes(scheme *runtime.Scheme) error {
|
|||||||
&v1.ListOptions{},
|
&v1.ListOptions{},
|
||||||
&v1.DeleteOptions{},
|
&v1.DeleteOptions{},
|
||||||
&metav1.ExportOptions{},
|
&metav1.ExportOptions{},
|
||||||
|
&metav1.GetOptions{},
|
||||||
|
|
||||||
&SelfSubjectAccessReview{},
|
&SelfSubjectAccessReview{},
|
||||||
&SubjectAccessReview{},
|
&SubjectAccessReview{},
|
||||||
|
@ -49,6 +49,7 @@ func addKnownTypes(scheme *runtime.Scheme) error {
|
|||||||
&v1.ListOptions{},
|
&v1.ListOptions{},
|
||||||
&v1.DeleteOptions{},
|
&v1.DeleteOptions{},
|
||||||
&metav1.ExportOptions{},
|
&metav1.ExportOptions{},
|
||||||
|
&metav1.GetOptions{},
|
||||||
)
|
)
|
||||||
versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion)
|
versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion)
|
||||||
return nil
|
return nil
|
||||||
|
@ -48,6 +48,7 @@ func addKnownTypes(scheme *runtime.Scheme) error {
|
|||||||
&v1.ListOptions{},
|
&v1.ListOptions{},
|
||||||
&v1.DeleteOptions{},
|
&v1.DeleteOptions{},
|
||||||
&metav1.ExportOptions{},
|
&metav1.ExportOptions{},
|
||||||
|
&metav1.GetOptions{},
|
||||||
)
|
)
|
||||||
versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion)
|
versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion)
|
||||||
return nil
|
return nil
|
||||||
|
@ -53,6 +53,7 @@ func addKnownTypes(scheme *runtime.Scheme) error {
|
|||||||
&v1.ListOptions{},
|
&v1.ListOptions{},
|
||||||
&v1.DeleteOptions{},
|
&v1.DeleteOptions{},
|
||||||
&metav1.ExportOptions{},
|
&metav1.ExportOptions{},
|
||||||
|
&metav1.GetOptions{},
|
||||||
)
|
)
|
||||||
|
|
||||||
// Add the watch version that applies
|
// Add the watch version that applies
|
||||||
|
@ -73,6 +73,7 @@ func addKnownTypes(scheme *runtime.Scheme) error {
|
|||||||
&ReplicaSet{},
|
&ReplicaSet{},
|
||||||
&ReplicaSetList{},
|
&ReplicaSetList{},
|
||||||
&metav1.ExportOptions{},
|
&metav1.ExportOptions{},
|
||||||
|
&metav1.GetOptions{},
|
||||||
&PodSecurityPolicy{},
|
&PodSecurityPolicy{},
|
||||||
&PodSecurityPolicyList{},
|
&PodSecurityPolicyList{},
|
||||||
&NetworkPolicy{},
|
&NetworkPolicy{},
|
||||||
|
@ -63,6 +63,7 @@ func addKnownTypes(scheme *runtime.Scheme) error {
|
|||||||
&v1.ListOptions{},
|
&v1.ListOptions{},
|
||||||
&v1.DeleteOptions{},
|
&v1.DeleteOptions{},
|
||||||
&metav1.ExportOptions{},
|
&metav1.ExportOptions{},
|
||||||
|
&metav1.GetOptions{},
|
||||||
&ReplicaSet{},
|
&ReplicaSet{},
|
||||||
&ReplicaSetList{},
|
&ReplicaSetList{},
|
||||||
&PodSecurityPolicy{},
|
&PodSecurityPolicy{},
|
||||||
|
@ -49,6 +49,7 @@ func addKnownTypes(scheme *runtime.Scheme) error {
|
|||||||
&api.ListOptions{},
|
&api.ListOptions{},
|
||||||
&api.DeleteOptions{},
|
&api.DeleteOptions{},
|
||||||
&metav1.ExportOptions{},
|
&metav1.ExportOptions{},
|
||||||
|
&metav1.GetOptions{},
|
||||||
|
|
||||||
&ImageReview{},
|
&ImageReview{},
|
||||||
)
|
)
|
||||||
|
@ -45,6 +45,7 @@ func addKnownTypes(scheme *runtime.Scheme) error {
|
|||||||
&v1.ListOptions{},
|
&v1.ListOptions{},
|
||||||
&v1.DeleteOptions{},
|
&v1.DeleteOptions{},
|
||||||
&metav1.ExportOptions{},
|
&metav1.ExportOptions{},
|
||||||
|
&metav1.GetOptions{},
|
||||||
|
|
||||||
&ImageReview{},
|
&ImageReview{},
|
||||||
)
|
)
|
||||||
|
@ -49,6 +49,7 @@ func addKnownTypes(scheme *runtime.Scheme) error {
|
|||||||
&v1.ListOptions{},
|
&v1.ListOptions{},
|
||||||
&v1.DeleteOptions{},
|
&v1.DeleteOptions{},
|
||||||
&metav1.ExportOptions{},
|
&metav1.ExportOptions{},
|
||||||
|
&metav1.GetOptions{},
|
||||||
)
|
)
|
||||||
// Add the watch version that applies
|
// Add the watch version that applies
|
||||||
versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion)
|
versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion)
|
||||||
|
@ -49,6 +49,7 @@ func addKnownTypes(scheme *runtime.Scheme) error {
|
|||||||
&v1.ListOptions{},
|
&v1.ListOptions{},
|
||||||
&v1.DeleteOptions{},
|
&v1.DeleteOptions{},
|
||||||
&metav1.ExportOptions{},
|
&metav1.ExportOptions{},
|
||||||
|
&metav1.GetOptions{},
|
||||||
)
|
)
|
||||||
// Add the watch version that applies
|
// Add the watch version that applies
|
||||||
versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion)
|
versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion)
|
||||||
|
@ -60,6 +60,7 @@ func addKnownTypes(scheme *runtime.Scheme) error {
|
|||||||
&api.ListOptions{},
|
&api.ListOptions{},
|
||||||
&api.DeleteOptions{},
|
&api.DeleteOptions{},
|
||||||
&metav1.ExportOptions{},
|
&metav1.ExportOptions{},
|
||||||
|
&metav1.GetOptions{},
|
||||||
)
|
)
|
||||||
versioned.AddToGroupVersion(scheme, SchemeGroupVersion)
|
versioned.AddToGroupVersion(scheme, SchemeGroupVersion)
|
||||||
return nil
|
return nil
|
||||||
|
@ -55,6 +55,7 @@ func addKnownTypes(scheme *runtime.Scheme) error {
|
|||||||
&v1.ListOptions{},
|
&v1.ListOptions{},
|
||||||
&v1.DeleteOptions{},
|
&v1.DeleteOptions{},
|
||||||
&metav1.ExportOptions{},
|
&metav1.ExportOptions{},
|
||||||
|
&metav1.GetOptions{},
|
||||||
)
|
)
|
||||||
versioned.AddToGroupVersion(scheme, SchemeGroupVersion)
|
versioned.AddToGroupVersion(scheme, SchemeGroupVersion)
|
||||||
return nil
|
return nil
|
||||||
|
@ -49,6 +49,7 @@ func addKnownTypes(scheme *runtime.Scheme) error {
|
|||||||
&api.ListOptions{},
|
&api.ListOptions{},
|
||||||
&api.DeleteOptions{},
|
&api.DeleteOptions{},
|
||||||
&metav1.ExportOptions{},
|
&metav1.ExportOptions{},
|
||||||
|
&metav1.GetOptions{},
|
||||||
|
|
||||||
&StorageClass{},
|
&StorageClass{},
|
||||||
&StorageClassList{},
|
&StorageClassList{},
|
||||||
|
@ -46,6 +46,7 @@ func addKnownTypes(scheme *runtime.Scheme) error {
|
|||||||
&v1.ListOptions{},
|
&v1.ListOptions{},
|
||||||
&v1.DeleteOptions{},
|
&v1.DeleteOptions{},
|
||||||
&metav1.ExportOptions{},
|
&metav1.ExportOptions{},
|
||||||
|
&metav1.GetOptions{},
|
||||||
|
|
||||||
&StorageClass{},
|
&StorageClass{},
|
||||||
&StorageClassList{},
|
&StorageClassList{},
|
||||||
|
Loading…
Reference in New Issue
Block a user