mirror of
https://github.com/rancher/types.git
synced 2025-08-31 12:48:45 +00:00
generated changes
This commit is contained in:
committed by
Darren Shepherd
parent
8e53d04d3c
commit
39c0f9a1fc
@@ -73,14 +73,6 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error {
|
||||
in.(*CertificateList).DeepCopyInto(out.(*CertificateList))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&CertificateList{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*ComposeCondition).DeepCopyInto(out.(*ComposeCondition))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&ComposeCondition{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*ComposeStatus).DeepCopyInto(out.(*ComposeStatus))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&ComposeStatus{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*DeploymentRollbackInput).DeepCopyInto(out.(*DeploymentRollbackInput))
|
||||
return nil
|
||||
@@ -93,18 +85,6 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error {
|
||||
in.(*DockerCredentialList).DeepCopyInto(out.(*DockerCredentialList))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&DockerCredentialList{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*NamespaceComposeConfig).DeepCopyInto(out.(*NamespaceComposeConfig))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&NamespaceComposeConfig{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*NamespaceComposeConfigList).DeepCopyInto(out.(*NamespaceComposeConfigList))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&NamespaceComposeConfigList{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*NamespaceComposeSpec).DeepCopyInto(out.(*NamespaceComposeSpec))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&NamespaceComposeSpec{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*NamespacedBasicAuth).DeepCopyInto(out.(*NamespacedBasicAuth))
|
||||
return nil
|
||||
@@ -577,43 +557,6 @@ func (in *CertificateList) DeepCopyObject() runtime.Object {
|
||||
}
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ComposeCondition) DeepCopyInto(out *ComposeCondition) {
|
||||
*out = *in
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComposeCondition.
|
||||
func (in *ComposeCondition) DeepCopy() *ComposeCondition {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ComposeCondition)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ComposeStatus) DeepCopyInto(out *ComposeStatus) {
|
||||
*out = *in
|
||||
if in.Conditions != nil {
|
||||
in, out := &in.Conditions, &out.Conditions
|
||||
*out = make([]ComposeCondition, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComposeStatus.
|
||||
func (in *ComposeStatus) DeepCopy() *ComposeStatus {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ComposeStatus)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *DeploymentRollbackInput) DeepCopyInto(out *DeploymentRollbackInput) {
|
||||
*out = *in
|
||||
@@ -699,86 +642,6 @@ func (in *DockerCredentialList) DeepCopyObject() runtime.Object {
|
||||
}
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *NamespaceComposeConfig) DeepCopyInto(out *NamespaceComposeConfig) {
|
||||
*out = *in
|
||||
out.Namespaced = in.Namespaced
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||
out.Spec = in.Spec
|
||||
in.Status.DeepCopyInto(&out.Status)
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceComposeConfig.
|
||||
func (in *NamespaceComposeConfig) DeepCopy() *NamespaceComposeConfig {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(NamespaceComposeConfig)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *NamespaceComposeConfig) DeepCopyObject() runtime.Object {
|
||||
if c := in.DeepCopy(); c != nil {
|
||||
return c
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *NamespaceComposeConfigList) DeepCopyInto(out *NamespaceComposeConfigList) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
out.ListMeta = in.ListMeta
|
||||
if in.Items != nil {
|
||||
in, out := &in.Items, &out.Items
|
||||
*out = make([]NamespaceComposeConfig, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceComposeConfigList.
|
||||
func (in *NamespaceComposeConfigList) DeepCopy() *NamespaceComposeConfigList {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(NamespaceComposeConfigList)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *NamespaceComposeConfigList) DeepCopyObject() runtime.Object {
|
||||
if c := in.DeepCopy(); c != nil {
|
||||
return c
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *NamespaceComposeSpec) DeepCopyInto(out *NamespaceComposeSpec) {
|
||||
*out = *in
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceComposeSpec.
|
||||
func (in *NamespaceComposeSpec) DeepCopy() *NamespaceComposeSpec {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(NamespaceComposeSpec)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *NamespacedBasicAuth) DeepCopyInto(out *NamespacedBasicAuth) {
|
||||
*out = *in
|
||||
|
@@ -28,7 +28,6 @@ type Interface interface {
|
||||
WorkloadsGetter
|
||||
AppsGetter
|
||||
AppRevisionsGetter
|
||||
NamespaceComposeConfigsGetter
|
||||
}
|
||||
|
||||
type Client struct {
|
||||
@@ -49,7 +48,6 @@ type Client struct {
|
||||
workloadControllers map[string]WorkloadController
|
||||
appControllers map[string]AppController
|
||||
appRevisionControllers map[string]AppRevisionController
|
||||
namespaceComposeConfigControllers map[string]NamespaceComposeConfigController
|
||||
}
|
||||
|
||||
func NewForConfig(config rest.Config) (Interface, error) {
|
||||
@@ -79,7 +77,6 @@ func NewForConfig(config rest.Config) (Interface, error) {
|
||||
workloadControllers: map[string]WorkloadController{},
|
||||
appControllers: map[string]AppController{},
|
||||
appRevisionControllers: map[string]AppRevisionController{},
|
||||
namespaceComposeConfigControllers: map[string]NamespaceComposeConfigController{},
|
||||
}, nil
|
||||
}
|
||||
|
||||
@@ -263,16 +260,3 @@ func (c *Client) AppRevisions(namespace string) AppRevisionInterface {
|
||||
objectClient: objectClient,
|
||||
}
|
||||
}
|
||||
|
||||
type NamespaceComposeConfigsGetter interface {
|
||||
NamespaceComposeConfigs(namespace string) NamespaceComposeConfigInterface
|
||||
}
|
||||
|
||||
func (c *Client) NamespaceComposeConfigs(namespace string) NamespaceComposeConfigInterface {
|
||||
objectClient := objectclient.NewObjectClient(namespace, c.restClient, &NamespaceComposeConfigResource, NamespaceComposeConfigGroupVersionKind, namespaceComposeConfigFactory{})
|
||||
return &namespaceComposeConfigClient{
|
||||
ns: namespace,
|
||||
client: c,
|
||||
objectClient: objectClient,
|
||||
}
|
||||
}
|
||||
|
@@ -1,252 +0,0 @@
|
||||
package v3
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/rancher/norman/controller"
|
||||
"github.com/rancher/norman/objectclient"
|
||||
"k8s.io/apimachinery/pkg/api/errors"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/labels"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
"k8s.io/apimachinery/pkg/watch"
|
||||
"k8s.io/client-go/tools/cache"
|
||||
)
|
||||
|
||||
var (
|
||||
NamespaceComposeConfigGroupVersionKind = schema.GroupVersionKind{
|
||||
Version: Version,
|
||||
Group: GroupName,
|
||||
Kind: "NamespaceComposeConfig",
|
||||
}
|
||||
NamespaceComposeConfigResource = metav1.APIResource{
|
||||
Name: "namespacecomposeconfigs",
|
||||
SingularName: "namespacecomposeconfig",
|
||||
Namespaced: true,
|
||||
|
||||
Kind: NamespaceComposeConfigGroupVersionKind.Kind,
|
||||
}
|
||||
)
|
||||
|
||||
type NamespaceComposeConfigList struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
metav1.ListMeta `json:"metadata,omitempty"`
|
||||
Items []NamespaceComposeConfig
|
||||
}
|
||||
|
||||
type NamespaceComposeConfigHandlerFunc func(key string, obj *NamespaceComposeConfig) error
|
||||
|
||||
type NamespaceComposeConfigLister interface {
|
||||
List(namespace string, selector labels.Selector) (ret []*NamespaceComposeConfig, err error)
|
||||
Get(namespace, name string) (*NamespaceComposeConfig, error)
|
||||
}
|
||||
|
||||
type NamespaceComposeConfigController interface {
|
||||
Informer() cache.SharedIndexInformer
|
||||
Lister() NamespaceComposeConfigLister
|
||||
AddHandler(name string, handler NamespaceComposeConfigHandlerFunc)
|
||||
AddClusterScopedHandler(name, clusterName string, handler NamespaceComposeConfigHandlerFunc)
|
||||
Enqueue(namespace, name string)
|
||||
Sync(ctx context.Context) error
|
||||
Start(ctx context.Context, threadiness int) error
|
||||
}
|
||||
|
||||
type NamespaceComposeConfigInterface interface {
|
||||
ObjectClient() *objectclient.ObjectClient
|
||||
Create(*NamespaceComposeConfig) (*NamespaceComposeConfig, error)
|
||||
GetNamespaced(namespace, name string, opts metav1.GetOptions) (*NamespaceComposeConfig, error)
|
||||
Get(name string, opts metav1.GetOptions) (*NamespaceComposeConfig, error)
|
||||
Update(*NamespaceComposeConfig) (*NamespaceComposeConfig, error)
|
||||
Delete(name string, options *metav1.DeleteOptions) error
|
||||
DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
|
||||
List(opts metav1.ListOptions) (*NamespaceComposeConfigList, error)
|
||||
Watch(opts metav1.ListOptions) (watch.Interface, error)
|
||||
DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
|
||||
Controller() NamespaceComposeConfigController
|
||||
AddHandler(name string, sync NamespaceComposeConfigHandlerFunc)
|
||||
AddLifecycle(name string, lifecycle NamespaceComposeConfigLifecycle)
|
||||
AddClusterScopedHandler(name, clusterName string, sync NamespaceComposeConfigHandlerFunc)
|
||||
AddClusterScopedLifecycle(name, clusterName string, lifecycle NamespaceComposeConfigLifecycle)
|
||||
}
|
||||
|
||||
type namespaceComposeConfigLister struct {
|
||||
controller *namespaceComposeConfigController
|
||||
}
|
||||
|
||||
func (l *namespaceComposeConfigLister) List(namespace string, selector labels.Selector) (ret []*NamespaceComposeConfig, err error) {
|
||||
err = cache.ListAllByNamespace(l.controller.Informer().GetIndexer(), namespace, selector, func(obj interface{}) {
|
||||
ret = append(ret, obj.(*NamespaceComposeConfig))
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
func (l *namespaceComposeConfigLister) Get(namespace, name string) (*NamespaceComposeConfig, error) {
|
||||
var key string
|
||||
if namespace != "" {
|
||||
key = namespace + "/" + name
|
||||
} else {
|
||||
key = name
|
||||
}
|
||||
obj, exists, err := l.controller.Informer().GetIndexer().GetByKey(key)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if !exists {
|
||||
return nil, errors.NewNotFound(schema.GroupResource{
|
||||
Group: NamespaceComposeConfigGroupVersionKind.Group,
|
||||
Resource: "namespaceComposeConfig",
|
||||
}, name)
|
||||
}
|
||||
return obj.(*NamespaceComposeConfig), nil
|
||||
}
|
||||
|
||||
type namespaceComposeConfigController struct {
|
||||
controller.GenericController
|
||||
}
|
||||
|
||||
func (c *namespaceComposeConfigController) Lister() NamespaceComposeConfigLister {
|
||||
return &namespaceComposeConfigLister{
|
||||
controller: c,
|
||||
}
|
||||
}
|
||||
|
||||
func (c *namespaceComposeConfigController) AddHandler(name string, handler NamespaceComposeConfigHandlerFunc) {
|
||||
c.GenericController.AddHandler(name, func(key string) error {
|
||||
obj, exists, err := c.Informer().GetStore().GetByKey(key)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if !exists {
|
||||
return handler(key, nil)
|
||||
}
|
||||
return handler(key, obj.(*NamespaceComposeConfig))
|
||||
})
|
||||
}
|
||||
|
||||
func (c *namespaceComposeConfigController) AddClusterScopedHandler(name, cluster string, handler NamespaceComposeConfigHandlerFunc) {
|
||||
c.GenericController.AddHandler(name, func(key string) error {
|
||||
obj, exists, err := c.Informer().GetStore().GetByKey(key)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if !exists {
|
||||
return handler(key, nil)
|
||||
}
|
||||
|
||||
if !controller.ObjectInCluster(cluster, obj) {
|
||||
return nil
|
||||
}
|
||||
|
||||
return handler(key, obj.(*NamespaceComposeConfig))
|
||||
})
|
||||
}
|
||||
|
||||
type namespaceComposeConfigFactory struct {
|
||||
}
|
||||
|
||||
func (c namespaceComposeConfigFactory) Object() runtime.Object {
|
||||
return &NamespaceComposeConfig{}
|
||||
}
|
||||
|
||||
func (c namespaceComposeConfigFactory) List() runtime.Object {
|
||||
return &NamespaceComposeConfigList{}
|
||||
}
|
||||
|
||||
func (s *namespaceComposeConfigClient) Controller() NamespaceComposeConfigController {
|
||||
s.client.Lock()
|
||||
defer s.client.Unlock()
|
||||
|
||||
c, ok := s.client.namespaceComposeConfigControllers[s.ns]
|
||||
if ok {
|
||||
return c
|
||||
}
|
||||
|
||||
genericController := controller.NewGenericController(NamespaceComposeConfigGroupVersionKind.Kind+"Controller",
|
||||
s.objectClient)
|
||||
|
||||
c = &namespaceComposeConfigController{
|
||||
GenericController: genericController,
|
||||
}
|
||||
|
||||
s.client.namespaceComposeConfigControllers[s.ns] = c
|
||||
s.client.starters = append(s.client.starters, c)
|
||||
|
||||
return c
|
||||
}
|
||||
|
||||
type namespaceComposeConfigClient struct {
|
||||
client *Client
|
||||
ns string
|
||||
objectClient *objectclient.ObjectClient
|
||||
controller NamespaceComposeConfigController
|
||||
}
|
||||
|
||||
func (s *namespaceComposeConfigClient) ObjectClient() *objectclient.ObjectClient {
|
||||
return s.objectClient
|
||||
}
|
||||
|
||||
func (s *namespaceComposeConfigClient) Create(o *NamespaceComposeConfig) (*NamespaceComposeConfig, error) {
|
||||
obj, err := s.objectClient.Create(o)
|
||||
return obj.(*NamespaceComposeConfig), err
|
||||
}
|
||||
|
||||
func (s *namespaceComposeConfigClient) Get(name string, opts metav1.GetOptions) (*NamespaceComposeConfig, error) {
|
||||
obj, err := s.objectClient.Get(name, opts)
|
||||
return obj.(*NamespaceComposeConfig), err
|
||||
}
|
||||
|
||||
func (s *namespaceComposeConfigClient) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*NamespaceComposeConfig, error) {
|
||||
obj, err := s.objectClient.GetNamespaced(namespace, name, opts)
|
||||
return obj.(*NamespaceComposeConfig), err
|
||||
}
|
||||
|
||||
func (s *namespaceComposeConfigClient) Update(o *NamespaceComposeConfig) (*NamespaceComposeConfig, error) {
|
||||
obj, err := s.objectClient.Update(o.Name, o)
|
||||
return obj.(*NamespaceComposeConfig), err
|
||||
}
|
||||
|
||||
func (s *namespaceComposeConfigClient) Delete(name string, options *metav1.DeleteOptions) error {
|
||||
return s.objectClient.Delete(name, options)
|
||||
}
|
||||
|
||||
func (s *namespaceComposeConfigClient) DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error {
|
||||
return s.objectClient.DeleteNamespaced(namespace, name, options)
|
||||
}
|
||||
|
||||
func (s *namespaceComposeConfigClient) List(opts metav1.ListOptions) (*NamespaceComposeConfigList, error) {
|
||||
obj, err := s.objectClient.List(opts)
|
||||
return obj.(*NamespaceComposeConfigList), err
|
||||
}
|
||||
|
||||
func (s *namespaceComposeConfigClient) Watch(opts metav1.ListOptions) (watch.Interface, error) {
|
||||
return s.objectClient.Watch(opts)
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched deployment.
|
||||
func (s *namespaceComposeConfigClient) Patch(o *NamespaceComposeConfig, data []byte, subresources ...string) (*NamespaceComposeConfig, error) {
|
||||
obj, err := s.objectClient.Patch(o.Name, o, data, subresources...)
|
||||
return obj.(*NamespaceComposeConfig), err
|
||||
}
|
||||
|
||||
func (s *namespaceComposeConfigClient) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error {
|
||||
return s.objectClient.DeleteCollection(deleteOpts, listOpts)
|
||||
}
|
||||
|
||||
func (s *namespaceComposeConfigClient) AddHandler(name string, sync NamespaceComposeConfigHandlerFunc) {
|
||||
s.Controller().AddHandler(name, sync)
|
||||
}
|
||||
|
||||
func (s *namespaceComposeConfigClient) AddLifecycle(name string, lifecycle NamespaceComposeConfigLifecycle) {
|
||||
sync := NewNamespaceComposeConfigLifecycleAdapter(name, false, s, lifecycle)
|
||||
s.AddHandler(name, sync)
|
||||
}
|
||||
|
||||
func (s *namespaceComposeConfigClient) AddClusterScopedHandler(name, clusterName string, sync NamespaceComposeConfigHandlerFunc) {
|
||||
s.Controller().AddClusterScopedHandler(name, clusterName, sync)
|
||||
}
|
||||
|
||||
func (s *namespaceComposeConfigClient) AddClusterScopedLifecycle(name, clusterName string, lifecycle NamespaceComposeConfigLifecycle) {
|
||||
sync := NewNamespaceComposeConfigLifecycleAdapter(name+"_"+clusterName, true, s, lifecycle)
|
||||
s.AddClusterScopedHandler(name, clusterName, sync)
|
||||
}
|
@@ -1,51 +0,0 @@
|
||||
package v3
|
||||
|
||||
import (
|
||||
"github.com/rancher/norman/lifecycle"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
)
|
||||
|
||||
type NamespaceComposeConfigLifecycle interface {
|
||||
Create(obj *NamespaceComposeConfig) (*NamespaceComposeConfig, error)
|
||||
Remove(obj *NamespaceComposeConfig) (*NamespaceComposeConfig, error)
|
||||
Updated(obj *NamespaceComposeConfig) (*NamespaceComposeConfig, error)
|
||||
}
|
||||
|
||||
type namespaceComposeConfigLifecycleAdapter struct {
|
||||
lifecycle NamespaceComposeConfigLifecycle
|
||||
}
|
||||
|
||||
func (w *namespaceComposeConfigLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
|
||||
o, err := w.lifecycle.Create(obj.(*NamespaceComposeConfig))
|
||||
if o == nil {
|
||||
return nil, err
|
||||
}
|
||||
return o, err
|
||||
}
|
||||
|
||||
func (w *namespaceComposeConfigLifecycleAdapter) Finalize(obj runtime.Object) (runtime.Object, error) {
|
||||
o, err := w.lifecycle.Remove(obj.(*NamespaceComposeConfig))
|
||||
if o == nil {
|
||||
return nil, err
|
||||
}
|
||||
return o, err
|
||||
}
|
||||
|
||||
func (w *namespaceComposeConfigLifecycleAdapter) Updated(obj runtime.Object) (runtime.Object, error) {
|
||||
o, err := w.lifecycle.Updated(obj.(*NamespaceComposeConfig))
|
||||
if o == nil {
|
||||
return nil, err
|
||||
}
|
||||
return o, err
|
||||
}
|
||||
|
||||
func NewNamespaceComposeConfigLifecycleAdapter(name string, clusterScoped bool, client NamespaceComposeConfigInterface, l NamespaceComposeConfigLifecycle) NamespaceComposeConfigHandlerFunc {
|
||||
adapter := &namespaceComposeConfigLifecycleAdapter{lifecycle: l}
|
||||
syncFn := lifecycle.NewObjectLifecycleAdapter(name, clusterScoped, adapter, client.ObjectClient())
|
||||
return func(key string, obj *NamespaceComposeConfig) error {
|
||||
if obj == nil {
|
||||
return syncFn(key, nil)
|
||||
}
|
||||
return syncFn(key, obj)
|
||||
}
|
||||
}
|
@@ -59,8 +59,6 @@ func addKnownTypes(scheme *runtime.Scheme) error {
|
||||
&AppList{},
|
||||
&AppRevision{},
|
||||
&AppRevisionList{},
|
||||
&NamespaceComposeConfig{},
|
||||
&NamespaceComposeConfigList{},
|
||||
)
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user