Skip to content

Commit da36a9c

Browse files
committed
Fix function names
1 parent 1947eb0 commit da36a9c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/skaffold/cluster/minikube.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,13 @@ func minikubeBinary() (string, error) {
111111
return filename, nil
112112
}
113113

114-
func matchNodeLabel(profileName string) (bool, error) {
114+
func matchNodeLabel(kubeContext string) (bool, error) {
115115
client, err := k8s.Client()
116116
if err != nil {
117117
return false, fmt.Errorf("getting Kubernetes client: %w", err)
118118
}
119119
opts := v1.ListOptions{
120-
LabelSelector: fmt.Sprintf("minikube.k8s.io/name=%s", profileName),
120+
LabelSelector: fmt.Sprintf("minikube.k8s.io/name=%s", kubeContext),
121121
Limit: 100,
122122
}
123123
l, err := client.CoreV1().Nodes().List(opts)
@@ -149,7 +149,7 @@ func matchProfileAndServerURL(kubeContext string) (bool, error) {
149149
return ok, nil
150150
}
151151

152-
func matchServerURLFor(profileName string, serverURL *url.URL) (bool, error) {
152+
func matchServerURLFor(kubeContext string, serverURL *url.URL) (bool, error) {
153153
cmd, err := minikubeExec("profile", "list", "-o", "json")
154154
if err != nil {
155155
return false, fmt.Errorf("executing minikube command: %w", err)
@@ -166,7 +166,7 @@ func matchServerURLFor(profileName string, serverURL *url.URL) (bool, error) {
166166
}
167167

168168
for _, v := range data.Valid {
169-
if v.Config.Name != profileName {
169+
if v.Config.Name != kubeContext {
170170
continue
171171
}
172172

0 commit comments

Comments
 (0)