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
import (
"github.com/Azure/go-autorest/autorest/to"
"reflect"
"testing"
"github.com/Azure/go-autorest/autorest/to"
"github.com/Azure/azure-sdk-for-go/services/batch/2017-09-01.6.0/batch"
apiv1 "k8s.io/api/core/v1"
)

View File

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

View File

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

View File

@@ -24,11 +24,11 @@ type VicPodCache struct {
type CacheError string
func (c CacheError) Error() string {return string(c)}
func (c CacheError) Error() string { return string(c) }
const (
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 {

View File

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