-
Notifications
You must be signed in to change notification settings - Fork 1.8k
operator-sdk up local failed to run #273
Copy link
Copy link
Closed
Labels
good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.
Metadata
Metadata
Assignees
Labels
good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.
Currently, the 8a1704d won't allow the
operator-sdk up localto start the operator due toWATCH_NAMESPACEnot set:The above issue is introduced at #227 when we change the behavior of operator getting its namespace value from the env variable instead of a hardcoded value.
A quick work around is to define the
WATCH_NAMESPACEenv var:WATCH_NAMESPACE="default" operator-sdk up localIt might be nice to let the
operator-sdk up localtake in a flag--namespaceto define where the operator watches the resource and set a default namespace value todefault.