mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 15:58:37 +00:00
ExportOptions should be registered to all public schemas
This commit is contained in:
parent
ce187f9c6a
commit
f0fa26bcf6
@ -50,6 +50,7 @@ func addKnownTypes(scheme *runtime.Scheme) error {
|
|||||||
&ClusterInfo{},
|
&ClusterInfo{},
|
||||||
&api.ListOptions{},
|
&api.ListOptions{},
|
||||||
&api.DeleteOptions{},
|
&api.DeleteOptions{},
|
||||||
|
&api.ExportOptions{},
|
||||||
)
|
)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
@ -50,6 +50,7 @@ func addKnownTypes(scheme *runtime.Scheme) error {
|
|||||||
&ClusterInfo{},
|
&ClusterInfo{},
|
||||||
&v1.ListOptions{},
|
&v1.ListOptions{},
|
||||||
&v1.DeleteOptions{},
|
&v1.DeleteOptions{},
|
||||||
|
&v1.ExportOptions{},
|
||||||
)
|
)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
@ -40,6 +40,7 @@ func addKnownTypes(scheme *runtime.Scheme) error {
|
|||||||
&ClusterList{},
|
&ClusterList{},
|
||||||
&v1.ListOptions{},
|
&v1.ListOptions{},
|
||||||
&v1.DeleteOptions{},
|
&v1.DeleteOptions{},
|
||||||
|
&v1.ExportOptions{},
|
||||||
)
|
)
|
||||||
versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion)
|
versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion)
|
||||||
return nil
|
return nil
|
||||||
|
@ -41,6 +41,7 @@ func addKnownTypes(scheme *runtime.Scheme) error {
|
|||||||
&StatefulSetList{},
|
&StatefulSetList{},
|
||||||
&v1.ListOptions{},
|
&v1.ListOptions{},
|
||||||
&v1.DeleteOptions{},
|
&v1.DeleteOptions{},
|
||||||
|
&v1.ExportOptions{},
|
||||||
)
|
)
|
||||||
versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion)
|
versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion)
|
||||||
return nil
|
return nil
|
||||||
|
@ -39,6 +39,7 @@ func addKnownTypes(scheme *runtime.Scheme) error {
|
|||||||
scheme.AddKnownTypes(SchemeGroupVersion,
|
scheme.AddKnownTypes(SchemeGroupVersion,
|
||||||
&v1.ListOptions{},
|
&v1.ListOptions{},
|
||||||
&v1.DeleteOptions{},
|
&v1.DeleteOptions{},
|
||||||
|
&v1.ExportOptions{},
|
||||||
|
|
||||||
&SelfSubjectAccessReview{},
|
&SelfSubjectAccessReview{},
|
||||||
&SubjectAccessReview{},
|
&SubjectAccessReview{},
|
||||||
|
@ -42,6 +42,7 @@ func addKnownTypes(scheme *runtime.Scheme) error {
|
|||||||
&Scale{},
|
&Scale{},
|
||||||
&v1.ListOptions{},
|
&v1.ListOptions{},
|
||||||
&v1.DeleteOptions{},
|
&v1.DeleteOptions{},
|
||||||
|
&v1.ExportOptions{},
|
||||||
)
|
)
|
||||||
versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion)
|
versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion)
|
||||||
return nil
|
return nil
|
||||||
|
@ -41,6 +41,7 @@ func addKnownTypes(scheme *runtime.Scheme) error {
|
|||||||
&JobList{},
|
&JobList{},
|
||||||
&v1.ListOptions{},
|
&v1.ListOptions{},
|
||||||
&v1.DeleteOptions{},
|
&v1.DeleteOptions{},
|
||||||
|
&v1.ExportOptions{},
|
||||||
)
|
)
|
||||||
versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion)
|
versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion)
|
||||||
return nil
|
return nil
|
||||||
|
@ -51,6 +51,7 @@ func addKnownTypes(scheme *runtime.Scheme) error {
|
|||||||
&CertificateSigningRequestList{},
|
&CertificateSigningRequestList{},
|
||||||
&v1.ListOptions{},
|
&v1.ListOptions{},
|
||||||
&v1.DeleteOptions{},
|
&v1.DeleteOptions{},
|
||||||
|
&v1.ExportOptions{},
|
||||||
)
|
)
|
||||||
|
|
||||||
// Add the watch version that applies
|
// Add the watch version that applies
|
||||||
|
@ -56,6 +56,7 @@ func addKnownTypes(scheme *runtime.Scheme) error {
|
|||||||
&IngressList{},
|
&IngressList{},
|
||||||
&v1.ListOptions{},
|
&v1.ListOptions{},
|
||||||
&v1.DeleteOptions{},
|
&v1.DeleteOptions{},
|
||||||
|
&v1.ExportOptions{},
|
||||||
&ReplicaSet{},
|
&ReplicaSet{},
|
||||||
&ReplicaSetList{},
|
&ReplicaSetList{},
|
||||||
&PodSecurityPolicy{},
|
&PodSecurityPolicy{},
|
||||||
|
@ -42,6 +42,7 @@ func addKnownTypes(scheme *runtime.Scheme) error {
|
|||||||
&Eviction{},
|
&Eviction{},
|
||||||
&v1.ListOptions{},
|
&v1.ListOptions{},
|
||||||
&v1.DeleteOptions{},
|
&v1.DeleteOptions{},
|
||||||
|
&v1.ExportOptions{},
|
||||||
)
|
)
|
||||||
// Add the watch version that applies
|
// Add the watch version that applies
|
||||||
versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion)
|
versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion)
|
||||||
|
Loading…
Reference in New Issue
Block a user