forked from LaconicNetwork/kompose
add support for golangci-lint (#1373)
This commit is contained in:
@@ -211,7 +211,6 @@ func (s *ServiceConfig) GetConfigMapKeyFromMeta(name string) (string, error) {
|
||||
}
|
||||
|
||||
return filepath.Base(config.File), nil
|
||||
|
||||
}
|
||||
|
||||
// GetKubernetesUpdateStrategy from compose update_config
|
||||
@@ -225,7 +224,6 @@ func (s *ServiceConfig) GetKubernetesUpdateStrategy() *v1.RollingUpdateDeploymen
|
||||
if config.Parallelism != nil {
|
||||
v := intstr.FromInt(cast.ToInt(*config.Parallelism))
|
||||
r.MaxUnavailable = &v
|
||||
|
||||
}
|
||||
|
||||
v := intstr.FromInt(0)
|
||||
@@ -243,7 +241,6 @@ func (s *ServiceConfig) GetKubernetesUpdateStrategy() *v1.RollingUpdateDeploymen
|
||||
return &r
|
||||
}
|
||||
return nil
|
||||
|
||||
}
|
||||
|
||||
// GetOSUpdateStrategy ...
|
||||
|
||||
Reference in New Issue
Block a user