Skip to content

feat(quarkus): add support for externalized configuration #306

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jan 20, 2021

Conversation

metacosm
Copy link
Collaborator

No description provided.

@metacosm metacosm self-assigned this Jan 19, 2021
@metacosm metacosm requested a review from adam-sandor January 19, 2021 11:10
* contains {@link ControllerConfiguration#WATCH_ALL_NAMESPACES_MARKER} then the controller will
* watch all namespaces.
*/
@ConfigItem public Optional<List<String>> namespaces;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about if this list is empty then the controller watches all namespaces? I think watching all namespaces is a sensible default as this will mostly be controlled by RBAC anyway by cluster admins not by configuring the operator.

Copy link
Collaborator Author

@metacosm metacosm Jan 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At the moment the default behavior is to watch the namespace the client is connected to (which should be the namespace the operator is deployed in), the idea being that you don't need to setup RBAC by default, which should make it easier to experiment with.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok let's leave it like that for now. We could check what's the default in the operator-sdk and just run with that later.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will address this in #303

@adam-sandor
Copy link
Collaborator

LGTM

@metacosm metacosm merged commit 623b510 into master Jan 20, 2021
@metacosm metacosm deleted the quarkus-external-config branch January 20, 2021 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants