Updated code with go lint result

Updated code with suggestion given by `go lint`
This commit is contained in:
Suraj Narwade
2017-07-14 11:11:17 +05:30
parent 462453208b
commit 91a6e79d6f
6 changed files with 13 additions and 7 deletions
+2 -2
View File
@@ -562,7 +562,7 @@ func (k *Kubernetes) VolumesFrom(objects *[]runtime.Object, komposeObject kobjec
return nil
}
//Ensure the kubernetes objects are in a consistent order
// SortedKeys Ensure the kubernetes objects are in a consistent order
func SortedKeys(komposeObject kobject.KomposeObject) []string {
var sortedKeys []string
for name := range komposeObject.ServiceConfigs {
@@ -572,7 +572,7 @@ func SortedKeys(komposeObject kobject.KomposeObject) []string {
return sortedKeys
}
//converts duration string to *int64 in seconds
// DurationStrToSecondsInt converts duration string to *int64 in seconds
func DurationStrToSecondsInt(s string) (*int64, error) {
if s == "" {
return nil, nil
+1 -1
View File
@@ -61,7 +61,7 @@ type Kubernetes struct {
// used when undeploying resources from kubernetes
const TIMEOUT = 300
//default size of Persistent Volume Claim
// PVCRequestSize (Persistent Volume Claim) has default size
const PVCRequestSize = "100Mi"
// CheckUnsupportedKey checks if given komposeObject contains