Skip to content

The stateful variables in share.go #123

@gobbq

Description

@gobbq

BUG REPORT

The NameServersStr variable in share.go will be empty if we restart or recreate the operator pods, logs as follows:
image

SUGGESTION

The operator uses share.go to store the state of name service, such as endpoints, initialized and so on.
This leads to the presence of states in operator, for most cases we only want the operator to do some sure actions when reconciled and not rely on the state in memory, for example, creating broker resources if nameservice.status.initialized=true.

For the further version, we'd better to remove the share.go in the operator.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions