mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
Merge pull request #35967 from saturnism/patch-2
Automatic merge from submit-queue Append newline to the "deleted context ... " and "deleted cluster" message **What this PR does / why we need it**: Append newline to the "deleted context ... " message. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #35966 **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
This commit is contained in:
commit
15bbd11bbf
@ -67,7 +67,7 @@ func runDeleteCluster(out io.Writer, configAccess clientcmd.ConfigAccess, cmd *c
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Fprintf(out, "deleted cluster %s from %s", name, configFile)
|
fmt.Fprintf(out, "deleted cluster %s from %s\n", name, configFile)
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
@ -46,7 +46,7 @@ func TestDeleteCluster(t *testing.T) {
|
|||||||
config: conf,
|
config: conf,
|
||||||
clusterToDelete: "minikube",
|
clusterToDelete: "minikube",
|
||||||
expectedClusters: []string{"otherkube"},
|
expectedClusters: []string{"otherkube"},
|
||||||
expectedOut: "deleted cluster minikube from %s",
|
expectedOut: "deleted cluster minikube from %s\n",
|
||||||
}
|
}
|
||||||
|
|
||||||
test.run(t)
|
test.run(t)
|
||||||
|
@ -67,7 +67,7 @@ func runDeleteContext(out io.Writer, configAccess clientcmd.ConfigAccess, cmd *c
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Fprintf(out, "deleted context %s from %s", name, configFile)
|
fmt.Fprintf(out, "deleted context %s from %s\n", name, configFile)
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
@ -46,7 +46,7 @@ func TestDeleteContext(t *testing.T) {
|
|||||||
config: conf,
|
config: conf,
|
||||||
contextToDelete: "minikube",
|
contextToDelete: "minikube",
|
||||||
expectedContexts: []string{"otherkube"},
|
expectedContexts: []string{"otherkube"},
|
||||||
expectedOut: "deleted context minikube from %s",
|
expectedOut: "deleted context minikube from %s\n",
|
||||||
}
|
}
|
||||||
|
|
||||||
test.run(t)
|
test.run(t)
|
||||||
|
Loading…
Reference in New Issue
Block a user