Skip to content

Commit a538741

Browse files
authored
Fixes godoc rendering (#2937)
Signed-off-by: Mikalai Radchuk <[email protected]>
1 parent 1a82688 commit a538741

File tree

1 file changed

+5
-6
lines changed
  • pkg/lib/controller-runtime/client

1 file changed

+5
-6
lines changed

pkg/lib/controller-runtime/client/ssa.go

+5-6
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,12 @@ type ServerSideApplier struct {
8787
// The underlying value of the given resource pointer is updated to reflect the latest cluster state each time the closure is successfully invoked.
8888
// Ex. Change the spec of an existing InstallPlan
8989
//
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")
9493
// 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
9796
// })).Should(Succeed())
9897
func (c *ServerSideApplier) Apply(ctx context.Context, obj Object, changeFunc interface{}) func() error {
9998
// Ensure given object is a pointer

0 commit comments

Comments
 (0)