Run "make format" (#603)
There was some code that wasn't formatted according to gofmt. This fixes that.
This commit is contained in:
committed by
Brian Goff
parent
f1cb6a7bf6
commit
ef62defcea
@@ -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"
|
||||
)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -17,5 +17,5 @@ func initOpenStack(cfg InitConfig) (providers.Provider, error) {
|
||||
cfg.ResourceManager,
|
||||
cfg.NodeName,
|
||||
cfg.OperatingSystem,
|
||||
cfg.DaemonPort,)
|
||||
cfg.DaemonPort)
|
||||
}
|
||||
|
||||
4
providers/vic/cache/pod_cache.go
vendored
4
providers/vic/cache/pod_cache.go
vendored
@@ -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 {
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user