Skip to content

Commit b8280b8

Browse files
Merge pull request #171 from stlaz/proxy_observe_status
Watch Proxy status instead of spec
2 parents 02bc4d3 + 3c7b87d commit b8280b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/operator2/deployment.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,9 @@ func getImagePullPolicy(operatorDeployment *appsv1.Deployment) corev1.PullPolicy
241241
func proxyConfigToEnvVars(proxy *configv1.Proxy) []corev1.EnvVar {
242242
envVars := []corev1.EnvVar{}
243243

244-
envVars = appendEnvVar(envVars, "NO_PROXY", proxy.Spec.NoProxy)
245-
envVars = appendEnvVar(envVars, "HTTP_PROXY", proxy.Spec.HTTPProxy)
246-
envVars = appendEnvVar(envVars, "HTTPS_PROXY", proxy.Spec.HTTPSProxy)
244+
envVars = appendEnvVar(envVars, "NO_PROXY", proxy.Status.NoProxy)
245+
envVars = appendEnvVar(envVars, "HTTP_PROXY", proxy.Status.HTTPProxy)
246+
envVars = appendEnvVar(envVars, "HTTPS_PROXY", proxy.Status.HTTPSProxy)
247247

248248
return envVars
249249
}

0 commit comments

Comments
 (0)