Skip to content
Snippets Groups Projects
Unverified Commit e7225db3 authored by Stefan Prodan's avatar Stefan Prodan Committed by GitHub
Browse files

Merge pull request #2046 from vespian/prozlach/support_http_proxy_envs

Use full domain name for notification-controller
parents c2c64a70 8ec5492d
No related branches found
No related tags found
No related merge requests found
...@@ -65,7 +65,15 @@ func fetch(ctx context.Context, url, version, dir string) error { ...@@ -65,7 +65,15 @@ func fetch(ctx context.Context, url, version, dir string) error {
func generate(base string, options Options) error { func generate(base string, options Options) error {
if containsItemString(options.Components, options.NotificationController) { if containsItemString(options.Components, options.NotificationController) {
options.EventsAddr = fmt.Sprintf("http://%s/", options.NotificationController) // We need to use full domain name here, as some users may deploy flux
// in environments that use http proxy.
//
// In such environments they normally add `.cluster.local` and `.local`
// suffixes to `no_proxy` variable in order to prevent cluster-local
// traffic from going through http proxy. Without fully specified
// domain they need to mention `notifications-controller` explicity in
// `no_proxy` variable after debugging http proxy logs.
options.EventsAddr = fmt.Sprintf("http://%s.%s.svc.%s/", options.NotificationController, options.Namespace, options.ClusterDomain)
} }
if err := execTemplate(options, namespaceTmpl, path.Join(base, "namespace.yaml")); err != nil { if err := execTemplate(options, namespaceTmpl, path.Join(base, "namespace.yaml")); err != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment