File tree 1 file changed +5
-6
lines changed
pkg/lib/controller-runtime/client
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -87,13 +87,12 @@ type ServerSideApplier struct {
87
87
// The underlying value of the given resource pointer is updated to reflect the latest cluster state each time the closure is successfully invoked.
88
88
// Ex. Change the spec of an existing InstallPlan
89
89
//
90
- // plan := &InstallPlan{}
91
- // plan.SetNamespace("ns")
92
- // plan.SetName("install-123def")
93
- //
90
+ // plan := &InstallPlan{}
91
+ // plan.SetNamespace("ns")
92
+ // plan.SetName("install-123def")
94
93
// Eventually(c.Apply(plan, func(p *v1alpha1.InstallPlan) error {
95
- // p.Spec.Approved = true
96
- // return nil
94
+ // p.Spec.Approved = true
95
+ // return nil
97
96
// })).Should(Succeed())
98
97
func (c * ServerSideApplier ) Apply (ctx context.Context , obj Object , changeFunc interface {}) func () error {
99
98
// Ensure given object is a pointer
You can’t perform that action at this time.
0 commit comments