Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
flux2
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
fluxcd
flux2
Commits
8ec5492d
Unverified
Commit
8ec5492d
authored
3 years ago
by
Pawel Rozlach
Browse files
Options
Downloads
Patches
Plain Diff
fix: use full domain name for notification-controller
Signed-off-by:
Pawel Rozlach
<
vespian@users.noreply.github.com
>
parent
c2c64a70
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/manifestgen/install/manifests.go
+9
-1
9 additions, 1 deletion
pkg/manifestgen/install/manifests.go
with
9 additions
and
1 deletion
pkg/manifestgen/install/manifests.go
+
9
−
1
View file @
8ec5492d
...
...
@@ -65,7 +65,15 @@ func fetch(ctx context.Context, url, version, dir string) error {
func
generate
(
base
string
,
options
Options
)
error
{
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
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment