1
0
mirror of https://github.com/rancher/types.git synced 2025-06-28 14:36:50 +00:00

Update generated code

This commit is contained in:
Darren Shepherd 2018-11-26 10:49:25 -07:00
parent d1d270153d
commit a4de4c1716
172 changed files with 1032 additions and 516 deletions

View File

@ -343,12 +343,12 @@ func (n *daemonSetClient2) Cache() DaemonSetClientCache {
func (n *daemonSetClient2) OnCreate(ctx context.Context, name string, sync DaemonSetChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &daemonSetLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &daemonSetLifecycleDelegate{create: sync})
}
func (n *daemonSetClient2) OnChange(ctx context.Context, name string, sync DaemonSetChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &daemonSetLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &daemonSetLifecycleDelegate{update: sync})
}
func (n *daemonSetClient2) OnRemove(ctx context.Context, name string, sync DaemonSetChangeHandlerFunc) {
@ -420,10 +420,6 @@ func (n *daemonSetLifecycleDelegate) Remove(obj *v1beta2.DaemonSet) (runtime.Obj
return n.remove(obj)
}
func (n *daemonSetLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *daemonSetLifecycleDelegate) Updated(obj *v1beta2.DaemonSet) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -16,6 +16,16 @@ type daemonSetLifecycleAdapter struct {
lifecycle DaemonSetLifecycle
}
func (w *daemonSetLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *daemonSetLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *daemonSetLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*v1beta2.DaemonSet))
if o == nil {

View File

@ -343,12 +343,12 @@ func (n *deploymentClient2) Cache() DeploymentClientCache {
func (n *deploymentClient2) OnCreate(ctx context.Context, name string, sync DeploymentChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &deploymentLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &deploymentLifecycleDelegate{create: sync})
}
func (n *deploymentClient2) OnChange(ctx context.Context, name string, sync DeploymentChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &deploymentLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &deploymentLifecycleDelegate{update: sync})
}
func (n *deploymentClient2) OnRemove(ctx context.Context, name string, sync DeploymentChangeHandlerFunc) {
@ -420,10 +420,6 @@ func (n *deploymentLifecycleDelegate) Remove(obj *v1beta2.Deployment) (runtime.O
return n.remove(obj)
}
func (n *deploymentLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *deploymentLifecycleDelegate) Updated(obj *v1beta2.Deployment) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -16,6 +16,16 @@ type deploymentLifecycleAdapter struct {
lifecycle DeploymentLifecycle
}
func (w *deploymentLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *deploymentLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *deploymentLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*v1beta2.Deployment))
if o == nil {

View File

@ -343,12 +343,12 @@ func (n *replicaSetClient2) Cache() ReplicaSetClientCache {
func (n *replicaSetClient2) OnCreate(ctx context.Context, name string, sync ReplicaSetChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &replicaSetLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &replicaSetLifecycleDelegate{create: sync})
}
func (n *replicaSetClient2) OnChange(ctx context.Context, name string, sync ReplicaSetChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &replicaSetLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &replicaSetLifecycleDelegate{update: sync})
}
func (n *replicaSetClient2) OnRemove(ctx context.Context, name string, sync ReplicaSetChangeHandlerFunc) {
@ -420,10 +420,6 @@ func (n *replicaSetLifecycleDelegate) Remove(obj *v1beta2.ReplicaSet) (runtime.O
return n.remove(obj)
}
func (n *replicaSetLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *replicaSetLifecycleDelegate) Updated(obj *v1beta2.ReplicaSet) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -16,6 +16,16 @@ type replicaSetLifecycleAdapter struct {
lifecycle ReplicaSetLifecycle
}
func (w *replicaSetLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *replicaSetLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *replicaSetLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*v1beta2.ReplicaSet))
if o == nil {

View File

@ -343,12 +343,12 @@ func (n *statefulSetClient2) Cache() StatefulSetClientCache {
func (n *statefulSetClient2) OnCreate(ctx context.Context, name string, sync StatefulSetChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &statefulSetLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &statefulSetLifecycleDelegate{create: sync})
}
func (n *statefulSetClient2) OnChange(ctx context.Context, name string, sync StatefulSetChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &statefulSetLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &statefulSetLifecycleDelegate{update: sync})
}
func (n *statefulSetClient2) OnRemove(ctx context.Context, name string, sync StatefulSetChangeHandlerFunc) {
@ -420,10 +420,6 @@ func (n *statefulSetLifecycleDelegate) Remove(obj *v1beta2.StatefulSet) (runtime
return n.remove(obj)
}
func (n *statefulSetLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *statefulSetLifecycleDelegate) Updated(obj *v1beta2.StatefulSet) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -16,6 +16,16 @@ type statefulSetLifecycleAdapter struct {
lifecycle StatefulSetLifecycle
}
func (w *statefulSetLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *statefulSetLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *statefulSetLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*v1beta2.StatefulSet))
if o == nil {

View File

@ -343,12 +343,12 @@ func (n *jobClient2) Cache() JobClientCache {
func (n *jobClient2) OnCreate(ctx context.Context, name string, sync JobChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &jobLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &jobLifecycleDelegate{create: sync})
}
func (n *jobClient2) OnChange(ctx context.Context, name string, sync JobChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &jobLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &jobLifecycleDelegate{update: sync})
}
func (n *jobClient2) OnRemove(ctx context.Context, name string, sync JobChangeHandlerFunc) {
@ -420,10 +420,6 @@ func (n *jobLifecycleDelegate) Remove(obj *v1.Job) (runtime.Object, error) {
return n.remove(obj)
}
func (n *jobLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *jobLifecycleDelegate) Updated(obj *v1.Job) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -16,6 +16,16 @@ type jobLifecycleAdapter struct {
lifecycle JobLifecycle
}
func (w *jobLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *jobLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *jobLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*v1.Job))
if o == nil {

View File

@ -343,12 +343,12 @@ func (n *cronJobClient2) Cache() CronJobClientCache {
func (n *cronJobClient2) OnCreate(ctx context.Context, name string, sync CronJobChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &cronJobLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &cronJobLifecycleDelegate{create: sync})
}
func (n *cronJobClient2) OnChange(ctx context.Context, name string, sync CronJobChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &cronJobLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &cronJobLifecycleDelegate{update: sync})
}
func (n *cronJobClient2) OnRemove(ctx context.Context, name string, sync CronJobChangeHandlerFunc) {
@ -420,10 +420,6 @@ func (n *cronJobLifecycleDelegate) Remove(obj *v1beta1.CronJob) (runtime.Object,
return n.remove(obj)
}
func (n *cronJobLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *cronJobLifecycleDelegate) Updated(obj *v1beta1.CronJob) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -16,6 +16,16 @@ type cronJobLifecycleAdapter struct {
lifecycle CronJobLifecycle
}
func (w *cronJobLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *cronJobLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *cronJobLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*v1beta1.CronJob))
if o == nil {

View File

@ -342,12 +342,12 @@ func (n *componentStatusClient2) Cache() ComponentStatusClientCache {
func (n *componentStatusClient2) OnCreate(ctx context.Context, name string, sync ComponentStatusChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &componentStatusLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &componentStatusLifecycleDelegate{create: sync})
}
func (n *componentStatusClient2) OnChange(ctx context.Context, name string, sync ComponentStatusChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &componentStatusLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &componentStatusLifecycleDelegate{update: sync})
}
func (n *componentStatusClient2) OnRemove(ctx context.Context, name string, sync ComponentStatusChangeHandlerFunc) {
@ -419,10 +419,6 @@ func (n *componentStatusLifecycleDelegate) Remove(obj *v1.ComponentStatus) (runt
return n.remove(obj)
}
func (n *componentStatusLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *componentStatusLifecycleDelegate) Updated(obj *v1.ComponentStatus) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -16,6 +16,16 @@ type componentStatusLifecycleAdapter struct {
lifecycle ComponentStatusLifecycle
}
func (w *componentStatusLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *componentStatusLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *componentStatusLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*v1.ComponentStatus))
if o == nil {

View File

@ -343,12 +343,12 @@ func (n *configMapClient2) Cache() ConfigMapClientCache {
func (n *configMapClient2) OnCreate(ctx context.Context, name string, sync ConfigMapChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &configMapLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &configMapLifecycleDelegate{create: sync})
}
func (n *configMapClient2) OnChange(ctx context.Context, name string, sync ConfigMapChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &configMapLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &configMapLifecycleDelegate{update: sync})
}
func (n *configMapClient2) OnRemove(ctx context.Context, name string, sync ConfigMapChangeHandlerFunc) {
@ -420,10 +420,6 @@ func (n *configMapLifecycleDelegate) Remove(obj *v1.ConfigMap) (runtime.Object,
return n.remove(obj)
}
func (n *configMapLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *configMapLifecycleDelegate) Updated(obj *v1.ConfigMap) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -16,6 +16,16 @@ type configMapLifecycleAdapter struct {
lifecycle ConfigMapLifecycle
}
func (w *configMapLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *configMapLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *configMapLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*v1.ConfigMap))
if o == nil {

View File

@ -343,12 +343,12 @@ func (n *endpointsClient2) Cache() EndpointsClientCache {
func (n *endpointsClient2) OnCreate(ctx context.Context, name string, sync EndpointsChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &endpointsLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &endpointsLifecycleDelegate{create: sync})
}
func (n *endpointsClient2) OnChange(ctx context.Context, name string, sync EndpointsChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &endpointsLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &endpointsLifecycleDelegate{update: sync})
}
func (n *endpointsClient2) OnRemove(ctx context.Context, name string, sync EndpointsChangeHandlerFunc) {
@ -420,10 +420,6 @@ func (n *endpointsLifecycleDelegate) Remove(obj *v1.Endpoints) (runtime.Object,
return n.remove(obj)
}
func (n *endpointsLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *endpointsLifecycleDelegate) Updated(obj *v1.Endpoints) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -16,6 +16,16 @@ type endpointsLifecycleAdapter struct {
lifecycle EndpointsLifecycle
}
func (w *endpointsLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *endpointsLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *endpointsLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*v1.Endpoints))
if o == nil {

View File

@ -342,12 +342,12 @@ func (n *eventClient2) Cache() EventClientCache {
func (n *eventClient2) OnCreate(ctx context.Context, name string, sync EventChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &eventLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &eventLifecycleDelegate{create: sync})
}
func (n *eventClient2) OnChange(ctx context.Context, name string, sync EventChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &eventLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &eventLifecycleDelegate{update: sync})
}
func (n *eventClient2) OnRemove(ctx context.Context, name string, sync EventChangeHandlerFunc) {
@ -419,10 +419,6 @@ func (n *eventLifecycleDelegate) Remove(obj *v1.Event) (runtime.Object, error) {
return n.remove(obj)
}
func (n *eventLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *eventLifecycleDelegate) Updated(obj *v1.Event) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -16,6 +16,16 @@ type eventLifecycleAdapter struct {
lifecycle EventLifecycle
}
func (w *eventLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *eventLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *eventLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*v1.Event))
if o == nil {

View File

@ -342,12 +342,12 @@ func (n *namespaceClient2) Cache() NamespaceClientCache {
func (n *namespaceClient2) OnCreate(ctx context.Context, name string, sync NamespaceChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &namespaceLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &namespaceLifecycleDelegate{create: sync})
}
func (n *namespaceClient2) OnChange(ctx context.Context, name string, sync NamespaceChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &namespaceLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &namespaceLifecycleDelegate{update: sync})
}
func (n *namespaceClient2) OnRemove(ctx context.Context, name string, sync NamespaceChangeHandlerFunc) {
@ -419,10 +419,6 @@ func (n *namespaceLifecycleDelegate) Remove(obj *v1.Namespace) (runtime.Object,
return n.remove(obj)
}
func (n *namespaceLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *namespaceLifecycleDelegate) Updated(obj *v1.Namespace) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -16,6 +16,16 @@ type namespaceLifecycleAdapter struct {
lifecycle NamespaceLifecycle
}
func (w *namespaceLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *namespaceLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *namespaceLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*v1.Namespace))
if o == nil {

View File

@ -342,12 +342,12 @@ func (n *nodeClient2) Cache() NodeClientCache {
func (n *nodeClient2) OnCreate(ctx context.Context, name string, sync NodeChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &nodeLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &nodeLifecycleDelegate{create: sync})
}
func (n *nodeClient2) OnChange(ctx context.Context, name string, sync NodeChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &nodeLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &nodeLifecycleDelegate{update: sync})
}
func (n *nodeClient2) OnRemove(ctx context.Context, name string, sync NodeChangeHandlerFunc) {
@ -419,10 +419,6 @@ func (n *nodeLifecycleDelegate) Remove(obj *v1.Node) (runtime.Object, error) {
return n.remove(obj)
}
func (n *nodeLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *nodeLifecycleDelegate) Updated(obj *v1.Node) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -16,6 +16,16 @@ type nodeLifecycleAdapter struct {
lifecycle NodeLifecycle
}
func (w *nodeLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *nodeLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *nodeLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*v1.Node))
if o == nil {

View File

@ -343,12 +343,12 @@ func (n *persistentVolumeClaimClient2) Cache() PersistentVolumeClaimClientCache
func (n *persistentVolumeClaimClient2) OnCreate(ctx context.Context, name string, sync PersistentVolumeClaimChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &persistentVolumeClaimLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &persistentVolumeClaimLifecycleDelegate{create: sync})
}
func (n *persistentVolumeClaimClient2) OnChange(ctx context.Context, name string, sync PersistentVolumeClaimChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &persistentVolumeClaimLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &persistentVolumeClaimLifecycleDelegate{update: sync})
}
func (n *persistentVolumeClaimClient2) OnRemove(ctx context.Context, name string, sync PersistentVolumeClaimChangeHandlerFunc) {
@ -420,10 +420,6 @@ func (n *persistentVolumeClaimLifecycleDelegate) Remove(obj *v1.PersistentVolume
return n.remove(obj)
}
func (n *persistentVolumeClaimLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *persistentVolumeClaimLifecycleDelegate) Updated(obj *v1.PersistentVolumeClaim) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -16,6 +16,16 @@ type persistentVolumeClaimLifecycleAdapter struct {
lifecycle PersistentVolumeClaimLifecycle
}
func (w *persistentVolumeClaimLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *persistentVolumeClaimLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *persistentVolumeClaimLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*v1.PersistentVolumeClaim))
if o == nil {

View File

@ -343,12 +343,12 @@ func (n *podClient2) Cache() PodClientCache {
func (n *podClient2) OnCreate(ctx context.Context, name string, sync PodChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &podLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &podLifecycleDelegate{create: sync})
}
func (n *podClient2) OnChange(ctx context.Context, name string, sync PodChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &podLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &podLifecycleDelegate{update: sync})
}
func (n *podClient2) OnRemove(ctx context.Context, name string, sync PodChangeHandlerFunc) {
@ -420,10 +420,6 @@ func (n *podLifecycleDelegate) Remove(obj *v1.Pod) (runtime.Object, error) {
return n.remove(obj)
}
func (n *podLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *podLifecycleDelegate) Updated(obj *v1.Pod) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -16,6 +16,16 @@ type podLifecycleAdapter struct {
lifecycle PodLifecycle
}
func (w *podLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *podLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *podLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*v1.Pod))
if o == nil {

View File

@ -343,12 +343,12 @@ func (n *replicationControllerClient2) Cache() ReplicationControllerClientCache
func (n *replicationControllerClient2) OnCreate(ctx context.Context, name string, sync ReplicationControllerChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &replicationControllerLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &replicationControllerLifecycleDelegate{create: sync})
}
func (n *replicationControllerClient2) OnChange(ctx context.Context, name string, sync ReplicationControllerChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &replicationControllerLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &replicationControllerLifecycleDelegate{update: sync})
}
func (n *replicationControllerClient2) OnRemove(ctx context.Context, name string, sync ReplicationControllerChangeHandlerFunc) {
@ -420,10 +420,6 @@ func (n *replicationControllerLifecycleDelegate) Remove(obj *v1.ReplicationContr
return n.remove(obj)
}
func (n *replicationControllerLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *replicationControllerLifecycleDelegate) Updated(obj *v1.ReplicationController) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -16,6 +16,16 @@ type replicationControllerLifecycleAdapter struct {
lifecycle ReplicationControllerLifecycle
}
func (w *replicationControllerLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *replicationControllerLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *replicationControllerLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*v1.ReplicationController))
if o == nil {

View File

@ -343,12 +343,12 @@ func (n *resourceQuotaClient2) Cache() ResourceQuotaClientCache {
func (n *resourceQuotaClient2) OnCreate(ctx context.Context, name string, sync ResourceQuotaChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &resourceQuotaLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &resourceQuotaLifecycleDelegate{create: sync})
}
func (n *resourceQuotaClient2) OnChange(ctx context.Context, name string, sync ResourceQuotaChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &resourceQuotaLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &resourceQuotaLifecycleDelegate{update: sync})
}
func (n *resourceQuotaClient2) OnRemove(ctx context.Context, name string, sync ResourceQuotaChangeHandlerFunc) {
@ -420,10 +420,6 @@ func (n *resourceQuotaLifecycleDelegate) Remove(obj *v1.ResourceQuota) (runtime.
return n.remove(obj)
}
func (n *resourceQuotaLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *resourceQuotaLifecycleDelegate) Updated(obj *v1.ResourceQuota) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -16,6 +16,16 @@ type resourceQuotaLifecycleAdapter struct {
lifecycle ResourceQuotaLifecycle
}
func (w *resourceQuotaLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *resourceQuotaLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *resourceQuotaLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*v1.ResourceQuota))
if o == nil {

View File

@ -343,12 +343,12 @@ func (n *secretClient2) Cache() SecretClientCache {
func (n *secretClient2) OnCreate(ctx context.Context, name string, sync SecretChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &secretLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &secretLifecycleDelegate{create: sync})
}
func (n *secretClient2) OnChange(ctx context.Context, name string, sync SecretChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &secretLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &secretLifecycleDelegate{update: sync})
}
func (n *secretClient2) OnRemove(ctx context.Context, name string, sync SecretChangeHandlerFunc) {
@ -420,10 +420,6 @@ func (n *secretLifecycleDelegate) Remove(obj *v1.Secret) (runtime.Object, error)
return n.remove(obj)
}
func (n *secretLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *secretLifecycleDelegate) Updated(obj *v1.Secret) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -16,6 +16,16 @@ type secretLifecycleAdapter struct {
lifecycle SecretLifecycle
}
func (w *secretLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *secretLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *secretLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*v1.Secret))
if o == nil {

View File

@ -343,12 +343,12 @@ func (n *serviceAccountClient2) Cache() ServiceAccountClientCache {
func (n *serviceAccountClient2) OnCreate(ctx context.Context, name string, sync ServiceAccountChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &serviceAccountLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &serviceAccountLifecycleDelegate{create: sync})
}
func (n *serviceAccountClient2) OnChange(ctx context.Context, name string, sync ServiceAccountChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &serviceAccountLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &serviceAccountLifecycleDelegate{update: sync})
}
func (n *serviceAccountClient2) OnRemove(ctx context.Context, name string, sync ServiceAccountChangeHandlerFunc) {
@ -420,10 +420,6 @@ func (n *serviceAccountLifecycleDelegate) Remove(obj *v1.ServiceAccount) (runtim
return n.remove(obj)
}
func (n *serviceAccountLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *serviceAccountLifecycleDelegate) Updated(obj *v1.ServiceAccount) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -16,6 +16,16 @@ type serviceAccountLifecycleAdapter struct {
lifecycle ServiceAccountLifecycle
}
func (w *serviceAccountLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *serviceAccountLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *serviceAccountLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*v1.ServiceAccount))
if o == nil {

View File

@ -343,12 +343,12 @@ func (n *serviceClient2) Cache() ServiceClientCache {
func (n *serviceClient2) OnCreate(ctx context.Context, name string, sync ServiceChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &serviceLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &serviceLifecycleDelegate{create: sync})
}
func (n *serviceClient2) OnChange(ctx context.Context, name string, sync ServiceChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &serviceLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &serviceLifecycleDelegate{update: sync})
}
func (n *serviceClient2) OnRemove(ctx context.Context, name string, sync ServiceChangeHandlerFunc) {
@ -420,10 +420,6 @@ func (n *serviceLifecycleDelegate) Remove(obj *v1.Service) (runtime.Object, erro
return n.remove(obj)
}
func (n *serviceLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *serviceLifecycleDelegate) Updated(obj *v1.Service) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -16,6 +16,16 @@ type serviceLifecycleAdapter struct {
lifecycle ServiceLifecycle
}
func (w *serviceLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *serviceLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *serviceLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*v1.Service))
if o == nil {

View File

@ -343,12 +343,12 @@ func (n *ingressClient2) Cache() IngressClientCache {
func (n *ingressClient2) OnCreate(ctx context.Context, name string, sync IngressChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &ingressLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &ingressLifecycleDelegate{create: sync})
}
func (n *ingressClient2) OnChange(ctx context.Context, name string, sync IngressChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &ingressLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &ingressLifecycleDelegate{update: sync})
}
func (n *ingressClient2) OnRemove(ctx context.Context, name string, sync IngressChangeHandlerFunc) {
@ -420,10 +420,6 @@ func (n *ingressLifecycleDelegate) Remove(obj *v1beta1.Ingress) (runtime.Object,
return n.remove(obj)
}
func (n *ingressLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *ingressLifecycleDelegate) Updated(obj *v1beta1.Ingress) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -16,6 +16,16 @@ type ingressLifecycleAdapter struct {
lifecycle IngressLifecycle
}
func (w *ingressLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *ingressLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *ingressLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*v1beta1.Ingress))
if o == nil {

View File

@ -342,12 +342,12 @@ func (n *podSecurityPolicyClient2) Cache() PodSecurityPolicyClientCache {
func (n *podSecurityPolicyClient2) OnCreate(ctx context.Context, name string, sync PodSecurityPolicyChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &podSecurityPolicyLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &podSecurityPolicyLifecycleDelegate{create: sync})
}
func (n *podSecurityPolicyClient2) OnChange(ctx context.Context, name string, sync PodSecurityPolicyChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &podSecurityPolicyLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &podSecurityPolicyLifecycleDelegate{update: sync})
}
func (n *podSecurityPolicyClient2) OnRemove(ctx context.Context, name string, sync PodSecurityPolicyChangeHandlerFunc) {
@ -419,10 +419,6 @@ func (n *podSecurityPolicyLifecycleDelegate) Remove(obj *v1beta1.PodSecurityPoli
return n.remove(obj)
}
func (n *podSecurityPolicyLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *podSecurityPolicyLifecycleDelegate) Updated(obj *v1beta1.PodSecurityPolicy) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -16,6 +16,16 @@ type podSecurityPolicyLifecycleAdapter struct {
lifecycle PodSecurityPolicyLifecycle
}
func (w *podSecurityPolicyLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *podSecurityPolicyLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *podSecurityPolicyLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*v1beta1.PodSecurityPolicy))
if o == nil {

View File

@ -341,12 +341,12 @@ func (n *authConfigClient2) Cache() AuthConfigClientCache {
func (n *authConfigClient2) OnCreate(ctx context.Context, name string, sync AuthConfigChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &authConfigLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &authConfigLifecycleDelegate{create: sync})
}
func (n *authConfigClient2) OnChange(ctx context.Context, name string, sync AuthConfigChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &authConfigLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &authConfigLifecycleDelegate{update: sync})
}
func (n *authConfigClient2) OnRemove(ctx context.Context, name string, sync AuthConfigChangeHandlerFunc) {
@ -418,10 +418,6 @@ func (n *authConfigLifecycleDelegate) Remove(obj *AuthConfig) (runtime.Object, e
return n.remove(obj)
}
func (n *authConfigLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *authConfigLifecycleDelegate) Updated(obj *AuthConfig) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -15,6 +15,16 @@ type authConfigLifecycleAdapter struct {
lifecycle AuthConfigLifecycle
}
func (w *authConfigLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *authConfigLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *authConfigLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*AuthConfig))
if o == nil {

View File

@ -341,12 +341,12 @@ func (n *catalogClient2) Cache() CatalogClientCache {
func (n *catalogClient2) OnCreate(ctx context.Context, name string, sync CatalogChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &catalogLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &catalogLifecycleDelegate{create: sync})
}
func (n *catalogClient2) OnChange(ctx context.Context, name string, sync CatalogChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &catalogLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &catalogLifecycleDelegate{update: sync})
}
func (n *catalogClient2) OnRemove(ctx context.Context, name string, sync CatalogChangeHandlerFunc) {
@ -418,10 +418,6 @@ func (n *catalogLifecycleDelegate) Remove(obj *Catalog) (runtime.Object, error)
return n.remove(obj)
}
func (n *catalogLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *catalogLifecycleDelegate) Updated(obj *Catalog) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -15,6 +15,16 @@ type catalogLifecycleAdapter struct {
lifecycle CatalogLifecycle
}
func (w *catalogLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *catalogLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *catalogLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*Catalog))
if o == nil {

View File

@ -342,12 +342,12 @@ func (n *clusterAlertClient2) Cache() ClusterAlertClientCache {
func (n *clusterAlertClient2) OnCreate(ctx context.Context, name string, sync ClusterAlertChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &clusterAlertLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &clusterAlertLifecycleDelegate{create: sync})
}
func (n *clusterAlertClient2) OnChange(ctx context.Context, name string, sync ClusterAlertChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &clusterAlertLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &clusterAlertLifecycleDelegate{update: sync})
}
func (n *clusterAlertClient2) OnRemove(ctx context.Context, name string, sync ClusterAlertChangeHandlerFunc) {
@ -419,10 +419,6 @@ func (n *clusterAlertLifecycleDelegate) Remove(obj *ClusterAlert) (runtime.Objec
return n.remove(obj)
}
func (n *clusterAlertLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *clusterAlertLifecycleDelegate) Updated(obj *ClusterAlert) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -15,6 +15,16 @@ type clusterAlertLifecycleAdapter struct {
lifecycle ClusterAlertLifecycle
}
func (w *clusterAlertLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *clusterAlertLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *clusterAlertLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*ClusterAlert))
if o == nil {

View File

@ -342,12 +342,12 @@ func (n *clusterCatalogClient2) Cache() ClusterCatalogClientCache {
func (n *clusterCatalogClient2) OnCreate(ctx context.Context, name string, sync ClusterCatalogChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &clusterCatalogLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &clusterCatalogLifecycleDelegate{create: sync})
}
func (n *clusterCatalogClient2) OnChange(ctx context.Context, name string, sync ClusterCatalogChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &clusterCatalogLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &clusterCatalogLifecycleDelegate{update: sync})
}
func (n *clusterCatalogClient2) OnRemove(ctx context.Context, name string, sync ClusterCatalogChangeHandlerFunc) {
@ -419,10 +419,6 @@ func (n *clusterCatalogLifecycleDelegate) Remove(obj *ClusterCatalog) (runtime.O
return n.remove(obj)
}
func (n *clusterCatalogLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *clusterCatalogLifecycleDelegate) Updated(obj *ClusterCatalog) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -15,6 +15,16 @@ type clusterCatalogLifecycleAdapter struct {
lifecycle ClusterCatalogLifecycle
}
func (w *clusterCatalogLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *clusterCatalogLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *clusterCatalogLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*ClusterCatalog))
if o == nil {

View File

@ -341,12 +341,12 @@ func (n *clusterClient2) Cache() ClusterClientCache {
func (n *clusterClient2) OnCreate(ctx context.Context, name string, sync ClusterChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &clusterLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &clusterLifecycleDelegate{create: sync})
}
func (n *clusterClient2) OnChange(ctx context.Context, name string, sync ClusterChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &clusterLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &clusterLifecycleDelegate{update: sync})
}
func (n *clusterClient2) OnRemove(ctx context.Context, name string, sync ClusterChangeHandlerFunc) {
@ -418,10 +418,6 @@ func (n *clusterLifecycleDelegate) Remove(obj *Cluster) (runtime.Object, error)
return n.remove(obj)
}
func (n *clusterLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *clusterLifecycleDelegate) Updated(obj *Cluster) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -15,6 +15,16 @@ type clusterLifecycleAdapter struct {
lifecycle ClusterLifecycle
}
func (w *clusterLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *clusterLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *clusterLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*Cluster))
if o == nil {

View File

@ -342,12 +342,12 @@ func (n *clusterLoggingClient2) Cache() ClusterLoggingClientCache {
func (n *clusterLoggingClient2) OnCreate(ctx context.Context, name string, sync ClusterLoggingChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &clusterLoggingLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &clusterLoggingLifecycleDelegate{create: sync})
}
func (n *clusterLoggingClient2) OnChange(ctx context.Context, name string, sync ClusterLoggingChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &clusterLoggingLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &clusterLoggingLifecycleDelegate{update: sync})
}
func (n *clusterLoggingClient2) OnRemove(ctx context.Context, name string, sync ClusterLoggingChangeHandlerFunc) {
@ -419,10 +419,6 @@ func (n *clusterLoggingLifecycleDelegate) Remove(obj *ClusterLogging) (runtime.O
return n.remove(obj)
}
func (n *clusterLoggingLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *clusterLoggingLifecycleDelegate) Updated(obj *ClusterLogging) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -15,6 +15,16 @@ type clusterLoggingLifecycleAdapter struct {
lifecycle ClusterLoggingLifecycle
}
func (w *clusterLoggingLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *clusterLoggingLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *clusterLoggingLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*ClusterLogging))
if o == nil {

View File

@ -342,12 +342,12 @@ func (n *clusterRegistrationTokenClient2) Cache() ClusterRegistrationTokenClient
func (n *clusterRegistrationTokenClient2) OnCreate(ctx context.Context, name string, sync ClusterRegistrationTokenChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &clusterRegistrationTokenLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &clusterRegistrationTokenLifecycleDelegate{create: sync})
}
func (n *clusterRegistrationTokenClient2) OnChange(ctx context.Context, name string, sync ClusterRegistrationTokenChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &clusterRegistrationTokenLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &clusterRegistrationTokenLifecycleDelegate{update: sync})
}
func (n *clusterRegistrationTokenClient2) OnRemove(ctx context.Context, name string, sync ClusterRegistrationTokenChangeHandlerFunc) {
@ -419,10 +419,6 @@ func (n *clusterRegistrationTokenLifecycleDelegate) Remove(obj *ClusterRegistrat
return n.remove(obj)
}
func (n *clusterRegistrationTokenLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *clusterRegistrationTokenLifecycleDelegate) Updated(obj *ClusterRegistrationToken) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -15,6 +15,16 @@ type clusterRegistrationTokenLifecycleAdapter struct {
lifecycle ClusterRegistrationTokenLifecycle
}
func (w *clusterRegistrationTokenLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *clusterRegistrationTokenLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *clusterRegistrationTokenLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*ClusterRegistrationToken))
if o == nil {

View File

@ -342,12 +342,12 @@ func (n *clusterRoleTemplateBindingClient2) Cache() ClusterRoleTemplateBindingCl
func (n *clusterRoleTemplateBindingClient2) OnCreate(ctx context.Context, name string, sync ClusterRoleTemplateBindingChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &clusterRoleTemplateBindingLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &clusterRoleTemplateBindingLifecycleDelegate{create: sync})
}
func (n *clusterRoleTemplateBindingClient2) OnChange(ctx context.Context, name string, sync ClusterRoleTemplateBindingChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &clusterRoleTemplateBindingLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &clusterRoleTemplateBindingLifecycleDelegate{update: sync})
}
func (n *clusterRoleTemplateBindingClient2) OnRemove(ctx context.Context, name string, sync ClusterRoleTemplateBindingChangeHandlerFunc) {
@ -419,10 +419,6 @@ func (n *clusterRoleTemplateBindingLifecycleDelegate) Remove(obj *ClusterRoleTem
return n.remove(obj)
}
func (n *clusterRoleTemplateBindingLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *clusterRoleTemplateBindingLifecycleDelegate) Updated(obj *ClusterRoleTemplateBinding) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -15,6 +15,16 @@ type clusterRoleTemplateBindingLifecycleAdapter struct {
lifecycle ClusterRoleTemplateBindingLifecycle
}
func (w *clusterRoleTemplateBindingLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *clusterRoleTemplateBindingLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *clusterRoleTemplateBindingLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*ClusterRoleTemplateBinding))
if o == nil {

View File

@ -341,12 +341,12 @@ func (n *composeConfigClient2) Cache() ComposeConfigClientCache {
func (n *composeConfigClient2) OnCreate(ctx context.Context, name string, sync ComposeConfigChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &composeConfigLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &composeConfigLifecycleDelegate{create: sync})
}
func (n *composeConfigClient2) OnChange(ctx context.Context, name string, sync ComposeConfigChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &composeConfigLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &composeConfigLifecycleDelegate{update: sync})
}
func (n *composeConfigClient2) OnRemove(ctx context.Context, name string, sync ComposeConfigChangeHandlerFunc) {
@ -418,10 +418,6 @@ func (n *composeConfigLifecycleDelegate) Remove(obj *ComposeConfig) (runtime.Obj
return n.remove(obj)
}
func (n *composeConfigLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *composeConfigLifecycleDelegate) Updated(obj *ComposeConfig) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -15,6 +15,16 @@ type composeConfigLifecycleAdapter struct {
lifecycle ComposeConfigLifecycle
}
func (w *composeConfigLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *composeConfigLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *composeConfigLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*ComposeConfig))
if o == nil {

View File

@ -341,12 +341,12 @@ func (n *dynamicSchemaClient2) Cache() DynamicSchemaClientCache {
func (n *dynamicSchemaClient2) OnCreate(ctx context.Context, name string, sync DynamicSchemaChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &dynamicSchemaLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &dynamicSchemaLifecycleDelegate{create: sync})
}
func (n *dynamicSchemaClient2) OnChange(ctx context.Context, name string, sync DynamicSchemaChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &dynamicSchemaLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &dynamicSchemaLifecycleDelegate{update: sync})
}
func (n *dynamicSchemaClient2) OnRemove(ctx context.Context, name string, sync DynamicSchemaChangeHandlerFunc) {
@ -418,10 +418,6 @@ func (n *dynamicSchemaLifecycleDelegate) Remove(obj *DynamicSchema) (runtime.Obj
return n.remove(obj)
}
func (n *dynamicSchemaLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *dynamicSchemaLifecycleDelegate) Updated(obj *DynamicSchema) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -15,6 +15,16 @@ type dynamicSchemaLifecycleAdapter struct {
lifecycle DynamicSchemaLifecycle
}
func (w *dynamicSchemaLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *dynamicSchemaLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *dynamicSchemaLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*DynamicSchema))
if o == nil {

View File

@ -341,12 +341,12 @@ func (n *globalRoleBindingClient2) Cache() GlobalRoleBindingClientCache {
func (n *globalRoleBindingClient2) OnCreate(ctx context.Context, name string, sync GlobalRoleBindingChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &globalRoleBindingLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &globalRoleBindingLifecycleDelegate{create: sync})
}
func (n *globalRoleBindingClient2) OnChange(ctx context.Context, name string, sync GlobalRoleBindingChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &globalRoleBindingLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &globalRoleBindingLifecycleDelegate{update: sync})
}
func (n *globalRoleBindingClient2) OnRemove(ctx context.Context, name string, sync GlobalRoleBindingChangeHandlerFunc) {
@ -418,10 +418,6 @@ func (n *globalRoleBindingLifecycleDelegate) Remove(obj *GlobalRoleBinding) (run
return n.remove(obj)
}
func (n *globalRoleBindingLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *globalRoleBindingLifecycleDelegate) Updated(obj *GlobalRoleBinding) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -15,6 +15,16 @@ type globalRoleBindingLifecycleAdapter struct {
lifecycle GlobalRoleBindingLifecycle
}
func (w *globalRoleBindingLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *globalRoleBindingLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *globalRoleBindingLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*GlobalRoleBinding))
if o == nil {

View File

@ -341,12 +341,12 @@ func (n *globalRoleClient2) Cache() GlobalRoleClientCache {
func (n *globalRoleClient2) OnCreate(ctx context.Context, name string, sync GlobalRoleChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &globalRoleLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &globalRoleLifecycleDelegate{create: sync})
}
func (n *globalRoleClient2) OnChange(ctx context.Context, name string, sync GlobalRoleChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &globalRoleLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &globalRoleLifecycleDelegate{update: sync})
}
func (n *globalRoleClient2) OnRemove(ctx context.Context, name string, sync GlobalRoleChangeHandlerFunc) {
@ -418,10 +418,6 @@ func (n *globalRoleLifecycleDelegate) Remove(obj *GlobalRole) (runtime.Object, e
return n.remove(obj)
}
func (n *globalRoleLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *globalRoleLifecycleDelegate) Updated(obj *GlobalRole) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -15,6 +15,16 @@ type globalRoleLifecycleAdapter struct {
lifecycle GlobalRoleLifecycle
}
func (w *globalRoleLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *globalRoleLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *globalRoleLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*GlobalRole))
if o == nil {

View File

@ -341,12 +341,12 @@ func (n *groupClient2) Cache() GroupClientCache {
func (n *groupClient2) OnCreate(ctx context.Context, name string, sync GroupChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &groupLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &groupLifecycleDelegate{create: sync})
}
func (n *groupClient2) OnChange(ctx context.Context, name string, sync GroupChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &groupLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &groupLifecycleDelegate{update: sync})
}
func (n *groupClient2) OnRemove(ctx context.Context, name string, sync GroupChangeHandlerFunc) {
@ -418,10 +418,6 @@ func (n *groupLifecycleDelegate) Remove(obj *Group) (runtime.Object, error) {
return n.remove(obj)
}
func (n *groupLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *groupLifecycleDelegate) Updated(obj *Group) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -15,6 +15,16 @@ type groupLifecycleAdapter struct {
lifecycle GroupLifecycle
}
func (w *groupLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *groupLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *groupLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*Group))
if o == nil {

View File

@ -341,12 +341,12 @@ func (n *groupMemberClient2) Cache() GroupMemberClientCache {
func (n *groupMemberClient2) OnCreate(ctx context.Context, name string, sync GroupMemberChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &groupMemberLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &groupMemberLifecycleDelegate{create: sync})
}
func (n *groupMemberClient2) OnChange(ctx context.Context, name string, sync GroupMemberChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &groupMemberLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &groupMemberLifecycleDelegate{update: sync})
}
func (n *groupMemberClient2) OnRemove(ctx context.Context, name string, sync GroupMemberChangeHandlerFunc) {
@ -418,10 +418,6 @@ func (n *groupMemberLifecycleDelegate) Remove(obj *GroupMember) (runtime.Object,
return n.remove(obj)
}
func (n *groupMemberLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *groupMemberLifecycleDelegate) Updated(obj *GroupMember) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -15,6 +15,16 @@ type groupMemberLifecycleAdapter struct {
lifecycle GroupMemberLifecycle
}
func (w *groupMemberLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *groupMemberLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *groupMemberLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*GroupMember))
if o == nil {

View File

@ -341,12 +341,12 @@ func (n *ldapConfigClient2) Cache() LdapConfigClientCache {
func (n *ldapConfigClient2) OnCreate(ctx context.Context, name string, sync LdapConfigChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &ldapConfigLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &ldapConfigLifecycleDelegate{create: sync})
}
func (n *ldapConfigClient2) OnChange(ctx context.Context, name string, sync LdapConfigChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &ldapConfigLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &ldapConfigLifecycleDelegate{update: sync})
}
func (n *ldapConfigClient2) OnRemove(ctx context.Context, name string, sync LdapConfigChangeHandlerFunc) {
@ -418,10 +418,6 @@ func (n *ldapConfigLifecycleDelegate) Remove(obj *LdapConfig) (runtime.Object, e
return n.remove(obj)
}
func (n *ldapConfigLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *ldapConfigLifecycleDelegate) Updated(obj *LdapConfig) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -15,6 +15,16 @@ type ldapConfigLifecycleAdapter struct {
lifecycle LdapConfigLifecycle
}
func (w *ldapConfigLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *ldapConfigLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *ldapConfigLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*LdapConfig))
if o == nil {

View File

@ -341,12 +341,12 @@ func (n *listenConfigClient2) Cache() ListenConfigClientCache {
func (n *listenConfigClient2) OnCreate(ctx context.Context, name string, sync ListenConfigChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &listenConfigLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &listenConfigLifecycleDelegate{create: sync})
}
func (n *listenConfigClient2) OnChange(ctx context.Context, name string, sync ListenConfigChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &listenConfigLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &listenConfigLifecycleDelegate{update: sync})
}
func (n *listenConfigClient2) OnRemove(ctx context.Context, name string, sync ListenConfigChangeHandlerFunc) {
@ -418,10 +418,6 @@ func (n *listenConfigLifecycleDelegate) Remove(obj *ListenConfig) (runtime.Objec
return n.remove(obj)
}
func (n *listenConfigLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *listenConfigLifecycleDelegate) Updated(obj *ListenConfig) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -15,6 +15,16 @@ type listenConfigLifecycleAdapter struct {
lifecycle ListenConfigLifecycle
}
func (w *listenConfigLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *listenConfigLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *listenConfigLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*ListenConfig))
if o == nil {

View File

@ -342,12 +342,12 @@ func (n *nodeClient2) Cache() NodeClientCache {
func (n *nodeClient2) OnCreate(ctx context.Context, name string, sync NodeChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &nodeLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &nodeLifecycleDelegate{create: sync})
}
func (n *nodeClient2) OnChange(ctx context.Context, name string, sync NodeChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &nodeLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &nodeLifecycleDelegate{update: sync})
}
func (n *nodeClient2) OnRemove(ctx context.Context, name string, sync NodeChangeHandlerFunc) {
@ -419,10 +419,6 @@ func (n *nodeLifecycleDelegate) Remove(obj *Node) (runtime.Object, error) {
return n.remove(obj)
}
func (n *nodeLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *nodeLifecycleDelegate) Updated(obj *Node) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -341,12 +341,12 @@ func (n *nodeDriverClient2) Cache() NodeDriverClientCache {
func (n *nodeDriverClient2) OnCreate(ctx context.Context, name string, sync NodeDriverChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &nodeDriverLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &nodeDriverLifecycleDelegate{create: sync})
}
func (n *nodeDriverClient2) OnChange(ctx context.Context, name string, sync NodeDriverChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &nodeDriverLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &nodeDriverLifecycleDelegate{update: sync})
}
func (n *nodeDriverClient2) OnRemove(ctx context.Context, name string, sync NodeDriverChangeHandlerFunc) {
@ -418,10 +418,6 @@ func (n *nodeDriverLifecycleDelegate) Remove(obj *NodeDriver) (runtime.Object, e
return n.remove(obj)
}
func (n *nodeDriverLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *nodeDriverLifecycleDelegate) Updated(obj *NodeDriver) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -15,6 +15,16 @@ type nodeDriverLifecycleAdapter struct {
lifecycle NodeDriverLifecycle
}
func (w *nodeDriverLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *nodeDriverLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *nodeDriverLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*NodeDriver))
if o == nil {

View File

@ -15,6 +15,16 @@ type nodeLifecycleAdapter struct {
lifecycle NodeLifecycle
}
func (w *nodeLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *nodeLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *nodeLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*Node))
if o == nil {

View File

@ -342,12 +342,12 @@ func (n *nodePoolClient2) Cache() NodePoolClientCache {
func (n *nodePoolClient2) OnCreate(ctx context.Context, name string, sync NodePoolChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &nodePoolLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &nodePoolLifecycleDelegate{create: sync})
}
func (n *nodePoolClient2) OnChange(ctx context.Context, name string, sync NodePoolChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &nodePoolLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &nodePoolLifecycleDelegate{update: sync})
}
func (n *nodePoolClient2) OnRemove(ctx context.Context, name string, sync NodePoolChangeHandlerFunc) {
@ -419,10 +419,6 @@ func (n *nodePoolLifecycleDelegate) Remove(obj *NodePool) (runtime.Object, error
return n.remove(obj)
}
func (n *nodePoolLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *nodePoolLifecycleDelegate) Updated(obj *NodePool) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -15,6 +15,16 @@ type nodePoolLifecycleAdapter struct {
lifecycle NodePoolLifecycle
}
func (w *nodePoolLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *nodePoolLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *nodePoolLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*NodePool))
if o == nil {

View File

@ -342,12 +342,12 @@ func (n *nodeTemplateClient2) Cache() NodeTemplateClientCache {
func (n *nodeTemplateClient2) OnCreate(ctx context.Context, name string, sync NodeTemplateChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &nodeTemplateLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &nodeTemplateLifecycleDelegate{create: sync})
}
func (n *nodeTemplateClient2) OnChange(ctx context.Context, name string, sync NodeTemplateChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &nodeTemplateLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &nodeTemplateLifecycleDelegate{update: sync})
}
func (n *nodeTemplateClient2) OnRemove(ctx context.Context, name string, sync NodeTemplateChangeHandlerFunc) {
@ -419,10 +419,6 @@ func (n *nodeTemplateLifecycleDelegate) Remove(obj *NodeTemplate) (runtime.Objec
return n.remove(obj)
}
func (n *nodeTemplateLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *nodeTemplateLifecycleDelegate) Updated(obj *NodeTemplate) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -15,6 +15,16 @@ type nodeTemplateLifecycleAdapter struct {
lifecycle NodeTemplateLifecycle
}
func (w *nodeTemplateLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *nodeTemplateLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *nodeTemplateLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*NodeTemplate))
if o == nil {

View File

@ -342,12 +342,12 @@ func (n *notifierClient2) Cache() NotifierClientCache {
func (n *notifierClient2) OnCreate(ctx context.Context, name string, sync NotifierChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &notifierLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &notifierLifecycleDelegate{create: sync})
}
func (n *notifierClient2) OnChange(ctx context.Context, name string, sync NotifierChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &notifierLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &notifierLifecycleDelegate{update: sync})
}
func (n *notifierClient2) OnRemove(ctx context.Context, name string, sync NotifierChangeHandlerFunc) {
@ -419,10 +419,6 @@ func (n *notifierLifecycleDelegate) Remove(obj *Notifier) (runtime.Object, error
return n.remove(obj)
}
func (n *notifierLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *notifierLifecycleDelegate) Updated(obj *Notifier) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -15,6 +15,16 @@ type notifierLifecycleAdapter struct {
lifecycle NotifierLifecycle
}
func (w *notifierLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *notifierLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *notifierLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*Notifier))
if o == nil {

View File

@ -341,12 +341,12 @@ func (n *podSecurityPolicyTemplateClient2) Cache() PodSecurityPolicyTemplateClie
func (n *podSecurityPolicyTemplateClient2) OnCreate(ctx context.Context, name string, sync PodSecurityPolicyTemplateChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &podSecurityPolicyTemplateLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &podSecurityPolicyTemplateLifecycleDelegate{create: sync})
}
func (n *podSecurityPolicyTemplateClient2) OnChange(ctx context.Context, name string, sync PodSecurityPolicyTemplateChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &podSecurityPolicyTemplateLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &podSecurityPolicyTemplateLifecycleDelegate{update: sync})
}
func (n *podSecurityPolicyTemplateClient2) OnRemove(ctx context.Context, name string, sync PodSecurityPolicyTemplateChangeHandlerFunc) {
@ -418,10 +418,6 @@ func (n *podSecurityPolicyTemplateLifecycleDelegate) Remove(obj *PodSecurityPoli
return n.remove(obj)
}
func (n *podSecurityPolicyTemplateLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *podSecurityPolicyTemplateLifecycleDelegate) Updated(obj *PodSecurityPolicyTemplate) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -15,6 +15,16 @@ type podSecurityPolicyTemplateLifecycleAdapter struct {
lifecycle PodSecurityPolicyTemplateLifecycle
}
func (w *podSecurityPolicyTemplateLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *podSecurityPolicyTemplateLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *podSecurityPolicyTemplateLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*PodSecurityPolicyTemplate))
if o == nil {

View File

@ -342,12 +342,12 @@ func (n *podSecurityPolicyTemplateProjectBindingClient2) Cache() PodSecurityPoli
func (n *podSecurityPolicyTemplateProjectBindingClient2) OnCreate(ctx context.Context, name string, sync PodSecurityPolicyTemplateProjectBindingChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &podSecurityPolicyTemplateProjectBindingLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &podSecurityPolicyTemplateProjectBindingLifecycleDelegate{create: sync})
}
func (n *podSecurityPolicyTemplateProjectBindingClient2) OnChange(ctx context.Context, name string, sync PodSecurityPolicyTemplateProjectBindingChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &podSecurityPolicyTemplateProjectBindingLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &podSecurityPolicyTemplateProjectBindingLifecycleDelegate{update: sync})
}
func (n *podSecurityPolicyTemplateProjectBindingClient2) OnRemove(ctx context.Context, name string, sync PodSecurityPolicyTemplateProjectBindingChangeHandlerFunc) {
@ -419,10 +419,6 @@ func (n *podSecurityPolicyTemplateProjectBindingLifecycleDelegate) Remove(obj *P
return n.remove(obj)
}
func (n *podSecurityPolicyTemplateProjectBindingLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *podSecurityPolicyTemplateProjectBindingLifecycleDelegate) Updated(obj *PodSecurityPolicyTemplateProjectBinding) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -15,6 +15,16 @@ type podSecurityPolicyTemplateProjectBindingLifecycleAdapter struct {
lifecycle PodSecurityPolicyTemplateProjectBindingLifecycle
}
func (w *podSecurityPolicyTemplateProjectBindingLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *podSecurityPolicyTemplateProjectBindingLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *podSecurityPolicyTemplateProjectBindingLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*PodSecurityPolicyTemplateProjectBinding))
if o == nil {

View File

@ -342,12 +342,12 @@ func (n *preferenceClient2) Cache() PreferenceClientCache {
func (n *preferenceClient2) OnCreate(ctx context.Context, name string, sync PreferenceChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &preferenceLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &preferenceLifecycleDelegate{create: sync})
}
func (n *preferenceClient2) OnChange(ctx context.Context, name string, sync PreferenceChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &preferenceLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &preferenceLifecycleDelegate{update: sync})
}
func (n *preferenceClient2) OnRemove(ctx context.Context, name string, sync PreferenceChangeHandlerFunc) {
@ -419,10 +419,6 @@ func (n *preferenceLifecycleDelegate) Remove(obj *Preference) (runtime.Object, e
return n.remove(obj)
}
func (n *preferenceLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *preferenceLifecycleDelegate) Updated(obj *Preference) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -15,6 +15,16 @@ type preferenceLifecycleAdapter struct {
lifecycle PreferenceLifecycle
}
func (w *preferenceLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *preferenceLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *preferenceLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*Preference))
if o == nil {

View File

@ -341,12 +341,12 @@ func (n *principalClient2) Cache() PrincipalClientCache {
func (n *principalClient2) OnCreate(ctx context.Context, name string, sync PrincipalChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &principalLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &principalLifecycleDelegate{create: sync})
}
func (n *principalClient2) OnChange(ctx context.Context, name string, sync PrincipalChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &principalLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &principalLifecycleDelegate{update: sync})
}
func (n *principalClient2) OnRemove(ctx context.Context, name string, sync PrincipalChangeHandlerFunc) {
@ -418,10 +418,6 @@ func (n *principalLifecycleDelegate) Remove(obj *Principal) (runtime.Object, err
return n.remove(obj)
}
func (n *principalLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *principalLifecycleDelegate) Updated(obj *Principal) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -15,6 +15,16 @@ type principalLifecycleAdapter struct {
lifecycle PrincipalLifecycle
}
func (w *principalLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *principalLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *principalLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*Principal))
if o == nil {

View File

@ -342,12 +342,12 @@ func (n *projectAlertClient2) Cache() ProjectAlertClientCache {
func (n *projectAlertClient2) OnCreate(ctx context.Context, name string, sync ProjectAlertChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &projectAlertLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &projectAlertLifecycleDelegate{create: sync})
}
func (n *projectAlertClient2) OnChange(ctx context.Context, name string, sync ProjectAlertChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &projectAlertLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &projectAlertLifecycleDelegate{update: sync})
}
func (n *projectAlertClient2) OnRemove(ctx context.Context, name string, sync ProjectAlertChangeHandlerFunc) {
@ -419,10 +419,6 @@ func (n *projectAlertLifecycleDelegate) Remove(obj *ProjectAlert) (runtime.Objec
return n.remove(obj)
}
func (n *projectAlertLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *projectAlertLifecycleDelegate) Updated(obj *ProjectAlert) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -15,6 +15,16 @@ type projectAlertLifecycleAdapter struct {
lifecycle ProjectAlertLifecycle
}
func (w *projectAlertLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *projectAlertLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *projectAlertLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*ProjectAlert))
if o == nil {

View File

@ -342,12 +342,12 @@ func (n *projectCatalogClient2) Cache() ProjectCatalogClientCache {
func (n *projectCatalogClient2) OnCreate(ctx context.Context, name string, sync ProjectCatalogChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &projectCatalogLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &projectCatalogLifecycleDelegate{create: sync})
}
func (n *projectCatalogClient2) OnChange(ctx context.Context, name string, sync ProjectCatalogChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &projectCatalogLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &projectCatalogLifecycleDelegate{update: sync})
}
func (n *projectCatalogClient2) OnRemove(ctx context.Context, name string, sync ProjectCatalogChangeHandlerFunc) {
@ -419,10 +419,6 @@ func (n *projectCatalogLifecycleDelegate) Remove(obj *ProjectCatalog) (runtime.O
return n.remove(obj)
}
func (n *projectCatalogLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *projectCatalogLifecycleDelegate) Updated(obj *ProjectCatalog) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -15,6 +15,16 @@ type projectCatalogLifecycleAdapter struct {
lifecycle ProjectCatalogLifecycle
}
func (w *projectCatalogLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *projectCatalogLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *projectCatalogLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*ProjectCatalog))
if o == nil {

View File

@ -342,12 +342,12 @@ func (n *projectClient2) Cache() ProjectClientCache {
func (n *projectClient2) OnCreate(ctx context.Context, name string, sync ProjectChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &projectLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &projectLifecycleDelegate{create: sync})
}
func (n *projectClient2) OnChange(ctx context.Context, name string, sync ProjectChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &projectLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &projectLifecycleDelegate{update: sync})
}
func (n *projectClient2) OnRemove(ctx context.Context, name string, sync ProjectChangeHandlerFunc) {
@ -419,10 +419,6 @@ func (n *projectLifecycleDelegate) Remove(obj *Project) (runtime.Object, error)
return n.remove(obj)
}
func (n *projectLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *projectLifecycleDelegate) Updated(obj *Project) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -15,6 +15,16 @@ type projectLifecycleAdapter struct {
lifecycle ProjectLifecycle
}
func (w *projectLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *projectLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *projectLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*Project))
if o == nil {

View File

@ -342,12 +342,12 @@ func (n *projectLoggingClient2) Cache() ProjectLoggingClientCache {
func (n *projectLoggingClient2) OnCreate(ctx context.Context, name string, sync ProjectLoggingChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &projectLoggingLifecycleDelegate{create: sync})
n.iface.AddLifecycle(ctx, name+"-create", &projectLoggingLifecycleDelegate{create: sync})
}
func (n *projectLoggingClient2) OnChange(ctx context.Context, name string, sync ProjectLoggingChangeHandlerFunc) {
n.loadController()
n.iface.AddLifecycle(ctx, name, &projectLoggingLifecycleDelegate{update: sync})
n.iface.AddLifecycle(ctx, name+"-change", &projectLoggingLifecycleDelegate{update: sync})
}
func (n *projectLoggingClient2) OnRemove(ctx context.Context, name string, sync ProjectLoggingChangeHandlerFunc) {
@ -419,10 +419,6 @@ func (n *projectLoggingLifecycleDelegate) Remove(obj *ProjectLogging) (runtime.O
return n.remove(obj)
}
func (n *projectLoggingLifecycleDelegate) HasUpdated() bool {
return n.remove != nil
}
func (n *projectLoggingLifecycleDelegate) Updated(obj *ProjectLogging) (runtime.Object, error) {
if n.update == nil {
return obj, nil

View File

@ -15,6 +15,16 @@ type projectLoggingLifecycleAdapter struct {
lifecycle ProjectLoggingLifecycle
}
func (w *projectLoggingLifecycleAdapter) HasCreate() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasCreate()
}
func (w *projectLoggingLifecycleAdapter) HasFinalize() bool {
o, ok := w.lifecycle.(lifecycle.ObjectLifecycleCondition)
return !ok || o.HasFinalize()
}
func (w *projectLoggingLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) {
o, err := w.lifecycle.Create(obj.(*ProjectLogging))
if o == nil {

Some files were not shown because too many files have changed in this diff Show More