mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-23 16:11:48 +00:00
Merge pull request #2564 from fluxcd/dot-domain-nc
Use absolute domain name for the events address
This commit is contained in:
commit
368f2d3542
6 changed files with 6 additions and 6 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
- op: add
|
- op: add
|
||||||
path: /spec/template/spec/containers/0/args/0
|
path: /spec/template/spec/containers/0/args/0
|
||||||
value: --events-addr=http://notification-controller/
|
value: --events-addr=http://notification-controller.flux-system.svc.cluster.local./
|
||||||
- op: add
|
- op: add
|
||||||
path: /spec/template/spec/serviceAccountName
|
path: /spec/template/spec/serviceAccountName
|
||||||
value: helm-controller
|
value: helm-controller
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
- op: add
|
- op: add
|
||||||
path: /spec/template/spec/containers/0/args/0
|
path: /spec/template/spec/containers/0/args/0
|
||||||
value: --events-addr=http://notification-controller/
|
value: --events-addr=http://notification-controller.flux-system.svc.cluster.local./
|
||||||
- op: add
|
- op: add
|
||||||
path: /spec/template/spec/serviceAccountName
|
path: /spec/template/spec/serviceAccountName
|
||||||
value: image-automation-controller
|
value: image-automation-controller
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
- op: add
|
- op: add
|
||||||
path: /spec/template/spec/containers/0/args/0
|
path: /spec/template/spec/containers/0/args/0
|
||||||
value: --events-addr=http://notification-controller/
|
value: --events-addr=http://notification-controller.flux-system.svc.cluster.local./
|
||||||
- op: add
|
- op: add
|
||||||
path: /spec/template/spec/serviceAccountName
|
path: /spec/template/spec/serviceAccountName
|
||||||
value: image-reflector-controller
|
value: image-reflector-controller
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
- op: add
|
- op: add
|
||||||
path: /spec/template/spec/containers/0/args/0
|
path: /spec/template/spec/containers/0/args/0
|
||||||
value: --events-addr=http://notification-controller/
|
value: --events-addr=http://notification-controller.flux-system.svc.cluster.local./
|
||||||
- op: add
|
- op: add
|
||||||
path: /spec/template/spec/serviceAccountName
|
path: /spec/template/spec/serviceAccountName
|
||||||
value: kustomize-controller
|
value: kustomize-controller
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
- op: add
|
- op: add
|
||||||
path: /spec/template/spec/containers/0/args/0
|
path: /spec/template/spec/containers/0/args/0
|
||||||
value: --events-addr=http://notification-controller/
|
value: --events-addr=http://notification-controller.flux-system.svc.cluster.local./
|
||||||
- op: add
|
- op: add
|
||||||
path: /spec/template/spec/serviceAccountName
|
path: /spec/template/spec/serviceAccountName
|
||||||
value: source-controller
|
value: source-controller
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,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.%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 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue