mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-22 07:31:47 +00:00
Use RUNTIME_NAMESPACE when setting --events-addr
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
parent
8c45f25f33
commit
f2ff083b8e
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ func generate(base string, options Options) error {
|
||||||
// traffic from going through http proxy. Without fully specified
|
// traffic from going through http proxy. Without fully specified
|
||||||
// domain they need to mention `notifications-controller` explicitly in
|
// domain they need to mention `notifications-controller` explicitly in
|
||||||
// `no_proxy` variable after debugging http proxy logs.
|
// `no_proxy` variable after debugging http proxy logs.
|
||||||
options.EventsAddr = fmt.Sprintf("http://%s.%s.svc.%s./", options.NotificationController, options.Namespace, options.ClusterDomain)
|
options.EventsAddr = fmt.Sprintf("http://%s.$(RUNTIME_NAMESPACE).svc.%s./", options.NotificationController, 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 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue