mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
gofmt -s -w cmd/ pkg/
This commit is contained in:
parent
3c31f77159
commit
353698558d
@ -594,11 +594,11 @@ func TestMakeCommandLine(t *testing.T) {
|
|||||||
func TestMakeEnvVariables(t *testing.T) {
|
func TestMakeEnvVariables(t *testing.T) {
|
||||||
container := api.Container{
|
container := api.Container{
|
||||||
Env: []api.EnvVar{
|
Env: []api.EnvVar{
|
||||||
api.EnvVar{
|
{
|
||||||
Name: "foo",
|
Name: "foo",
|
||||||
Value: "bar",
|
Value: "bar",
|
||||||
},
|
},
|
||||||
api.EnvVar{
|
{
|
||||||
Name: "baz",
|
Name: "baz",
|
||||||
Value: "blah",
|
Value: "blah",
|
||||||
},
|
},
|
||||||
@ -619,12 +619,12 @@ func TestMakeEnvVariables(t *testing.T) {
|
|||||||
func TestMakeVolumesAndBinds(t *testing.T) {
|
func TestMakeVolumesAndBinds(t *testing.T) {
|
||||||
container := api.Container{
|
container := api.Container{
|
||||||
VolumeMounts: []api.VolumeMount{
|
VolumeMounts: []api.VolumeMount{
|
||||||
api.VolumeMount{
|
{
|
||||||
MountPath: "/mnt/path",
|
MountPath: "/mnt/path",
|
||||||
Name: "disk",
|
Name: "disk",
|
||||||
ReadOnly: false,
|
ReadOnly: false,
|
||||||
},
|
},
|
||||||
api.VolumeMount{
|
{
|
||||||
MountPath: "/mnt/path2",
|
MountPath: "/mnt/path2",
|
||||||
Name: "disk2",
|
Name: "disk2",
|
||||||
ReadOnly: true,
|
ReadOnly: true,
|
||||||
@ -653,11 +653,11 @@ func TestMakeVolumesAndBinds(t *testing.T) {
|
|||||||
func TestMakePortsAndBindings(t *testing.T) {
|
func TestMakePortsAndBindings(t *testing.T) {
|
||||||
container := api.Container{
|
container := api.Container{
|
||||||
Ports: []api.Port{
|
Ports: []api.Port{
|
||||||
api.Port{
|
{
|
||||||
ContainerPort: 80,
|
ContainerPort: 80,
|
||||||
HostPort: 8080,
|
HostPort: 8080,
|
||||||
},
|
},
|
||||||
api.Port{
|
{
|
||||||
ContainerPort: 443,
|
ContainerPort: 443,
|
||||||
HostPort: 443,
|
HostPort: 443,
|
||||||
},
|
},
|
||||||
@ -840,7 +840,7 @@ func TestWatchEtcd(t *testing.T) {
|
|||||||
reader := startReading(changeChannel)
|
reader := startReading(changeChannel)
|
||||||
|
|
||||||
manifest := []api.ContainerManifest{
|
manifest := []api.ContainerManifest{
|
||||||
api.ContainerManifest{
|
{
|
||||||
Id: "foo",
|
Id: "foo",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,7 @@ type FakeEtcdClient struct {
|
|||||||
deletedKeys []string
|
deletedKeys []string
|
||||||
Err error
|
Err error
|
||||||
t *testing.T
|
t *testing.T
|
||||||
Ix int
|
Ix int
|
||||||
}
|
}
|
||||||
|
|
||||||
func MakeFakeEtcdClient(t *testing.T) *FakeEtcdClient {
|
func MakeFakeEtcdClient(t *testing.T) *FakeEtcdClient {
|
||||||
|
Loading…
Reference in New Issue
Block a user