1
0
mirror of https://github.com/rancher/types.git synced 2025-07-31 20:55:00 +00:00

Batch v1/v1betav1 to workload context

This commit is contained in:
Alena Prokharchyk 2018-02-13 14:15:18 -08:00 committed by Darren Shepherd
parent a08c9646a0
commit d44a6f9c13

View File

@ -10,6 +10,8 @@ import (
"github.com/rancher/norman/store/proxy"
"github.com/rancher/norman/types"
appsv1beta2 "github.com/rancher/types/apis/apps/v1beta2"
batchv1 "github.com/rancher/types/apis/batch/v1"
batchv1beta1 "github.com/rancher/types/apis/batch/v1beta1"
clusterSchema "github.com/rancher/types/apis/cluster.cattle.io/v3/schema"
corev1 "github.com/rancher/types/apis/core/v1"
extv1beta1 "github.com/rancher/types/apis/extensions/v1beta1"
@ -73,11 +75,13 @@ type UserContext struct {
APIExtClient clientset.Interface
K8sClient kubernetes.Interface
Apps appsv1beta2.Interface
Project projectv3.Interface
Core corev1.Interface
RBAC rbacv1.Interface
Extensions extv1beta1.Interface
Apps appsv1beta2.Interface
Project projectv3.Interface
Core corev1.Interface
RBAC rbacv1.Interface
Extensions extv1beta1.Interface
BatchV1 batchv1.Interface
BatchV1Beta1 batchv1beta1.Interface
}
func (w *UserContext) controllers() []controller.Starter {
@ -87,6 +91,8 @@ func (w *UserContext) controllers() []controller.Starter {
w.Core,
w.RBAC,
w.Extensions,
w.BatchV1,
w.BatchV1Beta1,
}
}
@ -98,11 +104,13 @@ func (w *UserContext) UserOnlyContext() *UserOnlyContext {
UnversionedClient: w.UnversionedClient,
K8sClient: w.K8sClient,
Apps: w.Apps,
Project: w.Project,
Core: w.Core,
RBAC: w.RBAC,
Extensions: w.Extensions,
Apps: w.Apps,
Project: w.Project,
Core: w.Core,
RBAC: w.RBAC,
Extensions: w.Extensions,
BatchV1: w.BatchV1,
BatchV1Beta1: w.BatchV1Beta1,
}
}
@ -113,11 +121,13 @@ type UserOnlyContext struct {
UnversionedClient rest.Interface
K8sClient kubernetes.Interface
Apps appsv1beta2.Interface
Project projectv3.Interface
Core corev1.Interface
RBAC rbacv1.Interface
Extensions extv1beta1.Interface
Apps appsv1beta2.Interface
Project projectv3.Interface
Core corev1.Interface
RBAC rbacv1.Interface
Extensions extv1beta1.Interface
BatchV1 batchv1.Interface
BatchV1Beta1 batchv1beta1.Interface
}
func (w *UserOnlyContext) controllers() []controller.Starter {
@ -127,6 +137,8 @@ func (w *UserOnlyContext) controllers() []controller.Starter {
w.Core,
w.RBAC,
w.Extensions,
w.BatchV1,
w.BatchV1Beta1,
}
}