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

Method ResetWorker

pkg/controllers/cloudshell_controller.go:929–931  ·  view source on GitHub ↗

ResetWorker cleanup the kubeConfig and kill ttyd

(_ context.Context, cloudshell *cloudshellv1alpha1.CloudShell)

Source from the content-addressed store, hash-verified

927
928// ResetWorker cleanup the kubeConfig and kill ttyd
929func (c *Controller) ResetWorker(_ context.Context, cloudshell *cloudshellv1alpha1.CloudShell) error {
930 return execCommand(cloudshell, []string{resetScriptPath}, c.config)
931}
932
933// removeCloudshell remove the cloudshell, at the same time, update addition resource.
934// i.g: ingress or vitualService. if all of cloudshells was removed, it will delete the

Callers 1

removeCloudshellMethod · 0.95

Calls 1

execCommandFunction · 0.85

Tested by

no test coverage detected