fixing lint travis error
@@ -55,7 +55,8 @@ func podTemplate(clusterDetails *latest.ClusterDetails, artifact *latest.KanikoA
env := []v1.EnvVar{{
Name: "GOOGLE_APPLICATION_CREDENTIALS",
Value: "/secret/kaniko-secret",
- },}
+ }}
+
env = setProxy(clusterDetails, env)
pod := &v1.Pod{
@@ -140,7 +141,7 @@ func podTemplate(clusterDetails *latest.ClusterDetails, artifact *latest.KanikoA
func setProxy(clusterDetails *latest.ClusterDetails, env []v1.EnvVar) []v1.EnvVar {
- if(clusterDetails.HTTPProxy != ""){
+ if clusterDetails.HTTPProxy != "" {
proxy := v1.EnvVar{
Name: "HTTP_PROXY",
Value: clusterDetails.HTTPProxy,
@@ -148,7 +149,7 @@ func setProxy(clusterDetails *latest.ClusterDetails, env []v1.EnvVar) []v1.EnvVa
env = append(env, proxy)
}
- if(clusterDetails.HTTPSProxy != ""){
+ if clusterDetails.HTTPSProxy != "" {
proxy := v1.EnvVar{
Name: "HTTPS_PROXY",
Value: clusterDetails.HTTPSProxy,
