h4. What
Remove workarround to check if is valid namespace in the controller ( APP_NAMESPACES )
h4. Why?
It was just added until we are able to use the feature which now is implemented and merged in the framework which allows us to pass a List of Namespaces instead of just 1 or ALL to watch in the main.go. After the merge of https://github.com/operator-framework/operator-sdk/pull/1512 it is no longer required.
h4. How
* Remove all namespace validations from the controller and its own tests * The APP_NAMESPACE values will be used in the main.go instead of as the following example.
{code:java} // Create a new Cmd to provide shared dependencies and start components mgr, err := manager.New(cfg, manager.Options{ NewCache: cache.MultiNamespacedCacheBuilder(namespaces), //HERE YOU WILL PASS THE LIST OF NAMESPACES ADDED IN THE ENV VAR })
{code} NOTE : Before to do it checks if a new release version of the operator-sdk was made with it. |
|