Skip to content

Commit

Permalink
Merge pull request #18492 from depthlending/master
Browse files Browse the repository at this point in the history
chore: fix function names
  • Loading branch information
spowelljr authored Mar 29, 2024
2 parents 7821be0 + f468a98 commit c618f59
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkg/minikube/cruntime/cri.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func listCRIContainers(cr CommandRunner, root string, o ListContainersOptions) (
return fids, nil
}

// pauseContainers pauses a list of containers
// pauseCRIContainers pauses a list of containers
func pauseCRIContainers(cr CommandRunner, root string, ids []string) error {
baseArgs := []string{"runc"}
if root != "" {
Expand Down
2 changes: 1 addition & 1 deletion pkg/minikube/download/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func download(src, dst string) error {
return os.Rename(tmpDst, dst)
}

// withinUnitTset detects if we are in running within a unit-test
// withinUnitTest detects if we are in running within a unit-test
func withinUnitTest() bool {
// Nope, it's the integration test
if flag.Lookup("minikube-start-args") != nil || strings.HasPrefix(filepath.Base(os.Args[0]), "e2e-") {
Expand Down
4 changes: 2 additions & 2 deletions pkg/minikube/machine/fix.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func maybeWarnAboutEvalEnv(drver string, name string) {
}
}

// ensureGuestClockSync ensures that the guest system clock is relatively in-sync
// ensureSyncedGuestClock ensures that the guest system clock is relatively in-sync
func ensureSyncedGuestClock(h hostRunner, drv string) error {
if !driver.IsVM(drv) {
return nil
Expand Down Expand Up @@ -230,7 +230,7 @@ func guestClockDelta(h hostRunner, local time.Time) (time.Duration, error) {
return d, nil
}

// adjustSystemClock adjusts the guest system clock to be nearer to the host system clock
// adjustGuestClock adjusts the guest system clock to be nearer to the host system clock
func adjustGuestClock(h hostRunner, t time.Time) error {
out, err := h.RunSSHCommand(fmt.Sprintf("sudo date -s @%d", t.Unix()))
klog.Infof("clock set: %s (err=%v)", out, err)
Expand Down
2 changes: 1 addition & 1 deletion pkg/minikube/tunnel/kic/ssh_tunnel.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func (t *SSHTunnel) stopMarkedConnections() {
}
}

// sshConnName creates a uniq name for the tunnel, using its name/clusterIP/ports.
// sshConnUniqName creates a uniq name for the tunnel, using its name/clusterIP/ports.
// This allows a new process to be created if an existing service was changed,
// the new process will support the IP/Ports change occurred.
func sshConnUniqName(service v1.Service) string {
Expand Down

0 comments on commit c618f59

Please sign in to comment.