Skip to content

Commit d5a2c66

Browse files
authored
Merge pull request #5574 from fluxcd/fix-manifestgen
Fix manifest generation for `--storage-adv-addr` and `--events-addr` flags
2 parents f85cbfa + f2ff083 commit d5a2c66

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/manifestgen/install/manifests.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func generate(base string, options Options) error {
7575
// traffic from going through http proxy. Without fully specified
7676
// domain they need to mention `notifications-controller` explicitly in
7777
// `no_proxy` variable after debugging http proxy logs.
78-
options.EventsAddr = fmt.Sprintf("http://%s.%s.svc.%s./", options.NotificationController, options.Namespace, options.ClusterDomain)
78+
options.EventsAddr = fmt.Sprintf("http://%s.$(RUNTIME_NAMESPACE).svc.%s./", options.NotificationController, options.ClusterDomain)
7979
}
8080

8181
if err := execTemplate(options, namespaceTmpl, path.Join(base, "namespace.yaml")); err != nil {

pkg/manifestgen/install/templates.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ patches:
8383
value: --log-level={{$logLevel}}
8484
- op: replace
8585
path: /spec/template/spec/containers/0/args/6
86-
value: --storage-adv-addr=source-controller.$(RUNTIME_NAMESPACE).svc.{{$clusterDomain}}.
86+
value: --storage-adv-addr={{$component}}.$(RUNTIME_NAMESPACE).svc.{{$clusterDomain}}.
8787
{{- else }}
8888
- target:
8989
group: apps

0 commit comments

Comments
 (0)