Skip to content

Commit

Permalink
Typo fix
Browse files Browse the repository at this point in the history
Function declaration and comments
  • Loading branch information
razo7 committed Jul 27, 2023
1 parent 3ed35e0 commit 9a68637
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/utils/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"github.com/medik8s/fence-agents-remediation/api/v1alpha1"
)

// StopKubelet runs cmd connand to stop kubelet for the node and returns an error only if it fails
// StopKubelet runs cmd command to stop kubelet for the node and returns an error only if it fails
func StopKubelet(c *kubernetes.Clientset, nodeName string, testNsName string, log logr.Logger) error {
cmd := "microdnf install util-linux -y && /usr/bin/nsenter -m/proc/1/ns/mnt /bin/systemctl stop kubelet"
_, err := runCommandInCluster(c, nodeName, testNsName, cmd, log)
Expand All @@ -35,7 +35,7 @@ func StopKubelet(c *kubernetes.Clientset, nodeName string, testNsName string, lo
return err
}

// GetBootTime gets the boot time of the given node by running a pod on it executing uptime command
// GetBootTime returns the node's boot time, otherwise it fails and returns an error
func GetBootTime(c *kubernetes.Clientset, nodeName string, ns string, log logr.Logger) (time.Time, error) {
emptyTime := time.Time{}
output, err := runCommandInCluster(c, nodeName, ns, "microdnf install procps -y >/dev/null 2>&1 && uptime -s", log)
Expand Down

0 comments on commit 9a68637

Please sign in to comment.