Skip to content

Can settings.Run() (line 47) be moved with the other Go routine startups? #144

Open
@ciroque

Description

@ciroque

the go settings.Run() call is done fairly early in main(). The original thought was this would give the Go routine time to load the certificates before the rest of the controller bits got up and running (sketchy trying to out-clever async code!).

However, the code was restructured to not wait for the inevitable callback from the Kubernetes API on startup, but rather to Read the targets before starting the listeners. This avoids a race condition and -- possibly? -- means the startup can be moved closer to the others.

Context: cmd/nginx-loadbalancer-kubernetes/main.go:47 go settings.Run()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions