Run "make format" (#603)

There was some code that wasn't formatted according to gofmt. This
fixes that.
This commit is contained in:
Sargun Dhillon
2019-05-06 09:26:10 -07:00
committed by Brian Goff
parent f1cb6a7bf6
commit ef62defcea
5 changed files with 31 additions and 30 deletions

View File

@@ -1,10 +1,11 @@
package azurebatch package azurebatch
import ( import (
"github.com/Azure/go-autorest/autorest/to"
"reflect" "reflect"
"testing" "testing"
"github.com/Azure/go-autorest/autorest/to"
"github.com/Azure/azure-sdk-for-go/services/batch/2017-09-01.6.0/batch" "github.com/Azure/azure-sdk-for-go/services/batch/2017-09-01.6.0/batch"
apiv1 "k8s.io/api/core/v1" apiv1 "k8s.io/api/core/v1"
) )

View File

@@ -8,9 +8,9 @@ type CapsuleSpec struct {
} }
type CapsuleTemplate struct { type CapsuleTemplate struct {
Spec CapsuleSpec `json:"spec,omitempty"` Spec CapsuleSpec `json:"spec,omitempty"`
Kind string `json:"kind,omitempty"` Kind string `json:"kind,omitempty"`
Metadata Metadata `json:"metadata,omitempty"` Metadata Metadata `json:"metadata,omitempty"`
} }
type Metadata struct { type Metadata struct {

View File

@@ -17,5 +17,5 @@ func initOpenStack(cfg InitConfig) (providers.Provider, error) {
cfg.ResourceManager, cfg.ResourceManager,
cfg.NodeName, cfg.NodeName,
cfg.OperatingSystem, cfg.OperatingSystem,
cfg.DaemonPort,) cfg.DaemonPort)
} }

View File

@@ -24,11 +24,11 @@ type VicPodCache struct {
type CacheError string type CacheError string
func (c CacheError) Error() string {return string(c)} func (c CacheError) Error() string { return string(c) }
const ( const (
PodCachePodNameError = CacheError("PodCache called with empty pod name") PodCachePodNameError = CacheError("PodCache called with empty pod name")
PodCacheNilPodError = CacheError("PodCache called with nil pod") PodCacheNilPodError = CacheError("PodCache called with nil pod")
) )
func NewVicPodCache() PodCache { func NewVicPodCache() PodCache {

View File

@@ -66,12 +66,12 @@ func initPod() {
Generation: 0, Generation: 0,
DeletionTimestamp: nil, DeletionTimestamp: nil,
DeletionGracePeriodSeconds: nil, DeletionGracePeriodSeconds: nil,
Labels: map[string]string{}, Labels: map[string]string{},
Annotations: map[string]string{}, Annotations: map[string]string{},
OwnerReferences: nil, OwnerReferences: nil,
Initializers: nil, Initializers: nil,
Finalizers: nil, Finalizers: nil,
ClusterName: "", ClusterName: "",
}, },
Spec: v1.PodSpec{ Spec: v1.PodSpec{
Volumes: []v1.Volume{ Volumes: []v1.Volume{
@@ -92,23 +92,23 @@ func initPod() {
ISCSI: nil, ISCSI: nil,
Glusterfs: nil, Glusterfs: nil,
PersistentVolumeClaim: nil, PersistentVolumeClaim: nil,
RBD: nil, RBD: nil,
FlexVolume: nil, FlexVolume: nil,
Cinder: nil, Cinder: nil,
CephFS: nil, CephFS: nil,
Flocker: nil, Flocker: nil,
DownwardAPI: nil, DownwardAPI: nil,
FC: nil, FC: nil,
AzureFile: nil, AzureFile: nil,
ConfigMap: nil, ConfigMap: nil,
VsphereVolume: nil, VsphereVolume: nil,
Quobyte: nil, Quobyte: nil,
AzureDisk: nil, AzureDisk: nil,
PhotonPersistentDisk: nil, PhotonPersistentDisk: nil,
Projected: nil, Projected: nil,
PortworxVolume: nil, PortworxVolume: nil,
ScaleIO: nil, ScaleIO: nil,
StorageOS: nil, StorageOS: nil,
}, },
}, },
}, },