mirror of
https://github.com/rancher/types.git
synced 2025-09-12 21:13:18 +00:00
Generated fakes
This commit is contained in:
committed by
Craig Jellick
parent
ebf163ab30
commit
db1c229e45
1357
apis/extensions/v1beta1/fakes/zz_generated_ingress_mock_test.go
Normal file
1357
apis/extensions/v1beta1/fakes/zz_generated_ingress_mock_test.go
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -41,7 +41,7 @@ func NewIngress(namespace, name string, obj v1beta1.Ingress) *v1beta1.Ingress {
|
||||
type IngressList struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
metav1.ListMeta `json:"metadata,omitempty"`
|
||||
Items []v1beta1.Ingress
|
||||
Items []v1beta1.Ingress `json:"items"`
|
||||
}
|
||||
|
||||
type IngressHandlerFunc func(key string, obj *v1beta1.Ingress) (runtime.Object, error)
|
||||
|
@@ -40,7 +40,7 @@ func NewPodSecurityPolicy(namespace, name string, obj v1beta1.PodSecurityPolicy)
|
||||
type PodSecurityPolicyList struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
metav1.ListMeta `json:"metadata,omitempty"`
|
||||
Items []v1beta1.PodSecurityPolicy
|
||||
Items []v1beta1.PodSecurityPolicy `json:"items"`
|
||||
}
|
||||
|
||||
type PodSecurityPolicyHandlerFunc func(key string, obj *v1beta1.PodSecurityPolicy) (runtime.Object, error)
|
||||
|
@@ -1,6 +1,7 @@
|
||||
package v1beta1
|
||||
|
||||
import (
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
)
|
||||
@@ -36,5 +37,6 @@ func addKnownTypes(scheme *runtime.Scheme) error {
|
||||
&PodSecurityPolicyList{},
|
||||
&IngressList{},
|
||||
)
|
||||
metav1.AddToGroupVersion(scheme, SchemeGroupVersion)
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user