Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions pkg/lib/controller-runtime/client/ssa.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,12 @@ type ServerSideApplier struct {
// The underlying value of the given resource pointer is updated to reflect the latest cluster state each time the closure is successfully invoked.
// Ex. Change the spec of an existing InstallPlan
//
// plan := &InstallPlan{}
// plan.SetNamespace("ns")
// plan.SetName("install-123def")
//
// plan := &InstallPlan{}
// plan.SetNamespace("ns")
// plan.SetName("install-123def")
// Eventually(c.Apply(plan, func(p *v1alpha1.InstallPlan) error {
// p.Spec.Approved = true
// return nil
// p.Spec.Approved = true
// return nil
// })).Should(Succeed())
func (c *ServerSideApplier) Apply(ctx context.Context, obj Object, changeFunc interface{}) func() error {
// Ensure given object is a pointer
Expand Down