mirror of
https://github.com/rancher/types.git
synced 2025-09-08 16:39:00 +00:00
Generated fakes
This commit is contained in:
committed by
Craig Jellick
parent
ebf163ab30
commit
db1c229e45
1357
apis/batch/v1/fakes/zz_generated_job_mock_test.go
Normal file
1357
apis/batch/v1/fakes/zz_generated_job_mock_test.go
Normal file
File diff suppressed because it is too large
Load Diff
@@ -41,7 +41,7 @@ func NewJob(namespace, name string, obj v1.Job) *v1.Job {
|
||||
type JobList struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
metav1.ListMeta `json:"metadata,omitempty"`
|
||||
Items []v1.Job
|
||||
Items []v1.Job `json:"items"`
|
||||
}
|
||||
|
||||
type JobHandlerFunc func(key string, obj *v1.Job) (runtime.Object, error)
|
||||
|
@@ -1,6 +1,7 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
)
|
||||
@@ -35,5 +36,6 @@ func addKnownTypes(scheme *runtime.Scheme) error {
|
||||
|
||||
&JobList{},
|
||||
)
|
||||
metav1.AddToGroupVersion(scheme, SchemeGroupVersion)
|
||||
return nil
|
||||
}
|
||||
|
1357
apis/batch/v1beta1/fakes/zz_generated_cron_job_mock_test.go
Normal file
1357
apis/batch/v1beta1/fakes/zz_generated_cron_job_mock_test.go
Normal file
File diff suppressed because it is too large
Load Diff
@@ -41,7 +41,7 @@ func NewCronJob(namespace, name string, obj v1beta1.CronJob) *v1beta1.CronJob {
|
||||
type CronJobList struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
metav1.ListMeta `json:"metadata,omitempty"`
|
||||
Items []v1beta1.CronJob
|
||||
Items []v1beta1.CronJob `json:"items"`
|
||||
}
|
||||
|
||||
type CronJobHandlerFunc func(key string, obj *v1beta1.CronJob) (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"
|
||||
)
|
||||
@@ -35,5 +36,6 @@ func addKnownTypes(scheme *runtime.Scheme) error {
|
||||
|
||||
&CronJobList{},
|
||||
)
|
||||
metav1.AddToGroupVersion(scheme, SchemeGroupVersion)
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user