MCPcopy Create free account
hub / github.com/cloudtty/cloudtty / removeFinalizer

Method removeFinalizer

pkg/controllers/cloudshell_controller.go:511–517  ·  view source on GitHub ↗
(cloudshell *cloudshellv1alpha1.CloudShell)

Source from the content-addressed store, hash-verified

509}
510
511func (c *Controller) removeFinalizer(cloudshell *cloudshellv1alpha1.CloudShell) error {
512 if ctrlutil.RemoveFinalizer(cloudshell, CloudshellControllerFinalizer) {
513 return c.Client.Update(context.TODO(), cloudshell)
514 }
515
516 return nil
517}
518
519func (c *Controller) ensureCloudShell(_ context.Context, cloudshell *cloudshellv1alpha1.CloudShell) error {
520 updated := ctrlutil.AddFinalizer(cloudshell, CloudshellControllerFinalizer)

Callers 1

removeCloudshellMethod · 0.95

Calls 1

UpdateMethod · 0.65

Tested by

no test coverage detected