mirror of
https://github.com/rancher/types.git
synced 2025-09-01 13:18:20 +00:00
Update generated code
This commit is contained in:
@@ -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
|
||||
|
@@ -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 {
|
||||
|
@@ -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
|
||||
|
@@ -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 {
|
||||
|
@@ -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
|
||||
|
@@ -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 {
|
||||
|
@@ -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
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user