diff --git a/providers/azurebatch/batch_status_test.go b/providers/azurebatch/batch_status_test.go index 205c81cac..283c0848a 100644 --- a/providers/azurebatch/batch_status_test.go +++ b/providers/azurebatch/batch_status_test.go @@ -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" ) diff --git a/providers/openstack/types.go b/providers/openstack/types.go index 85d90c7ad..95c1f2274 100644 --- a/providers/openstack/types.go +++ b/providers/openstack/types.go @@ -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 { diff --git a/providers/register/provider_openstack.go b/providers/register/provider_openstack.go index f548621bb..d401cb880 100644 --- a/providers/register/provider_openstack.go +++ b/providers/register/provider_openstack.go @@ -17,5 +17,5 @@ func initOpenStack(cfg InitConfig) (providers.Provider, error) { cfg.ResourceManager, cfg.NodeName, cfg.OperatingSystem, - cfg.DaemonPort,) + cfg.DaemonPort) } diff --git a/providers/vic/cache/pod_cache.go b/providers/vic/cache/pod_cache.go index 41e1a29ec..1b95e7d47 100644 --- a/providers/vic/cache/pod_cache.go +++ b/providers/vic/cache/pod_cache.go @@ -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 { diff --git a/providers/vic/operations/common_test.go b/providers/vic/operations/common_test.go index 19ad1c9e9..fb746a671 100644 --- a/providers/vic/operations/common_test.go +++ b/providers/vic/operations/common_test.go @@ -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, }, }, },