(cloudshell *cloudshellv1alpha1.CloudShell)
| 509 | } |
| 510 | |
| 511 | func (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 | |
| 519 | func (c *Controller) ensureCloudShell(_ context.Context, cloudshell *cloudshellv1alpha1.CloudShell) error { |
| 520 | updated := ctrlutil.AddFinalizer(cloudshell, CloudshellControllerFinalizer) |
no test coverage detected