-
-
Notifications
You must be signed in to change notification settings - Fork 10
feat!: Implement server role listener #957
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
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
b383d0e
chore(listener): Update operator role permissions
NickLarsenNZ bd1e084
docs(listener): Update service exposition docs
NickLarsenNZ 95105f7
feat!: Implement server role listener
NickLarsenNZ c79ea85
chore: Update changelog
NickLarsenNZ 0d6527a
docs: Update listener usage
NickLarsenNZ 69bda89
fix: Use the applied listener to build the discover config map
NickLarsenNZ 238dbd8
feat: Move ZK ports to headless service
NickLarsenNZ c06c98c
chore: Handle errors properly
NickLarsenNZ 3094e97
Merge remote-tracking branch 'origin/main' into feat/listener-integra…
NickLarsenNZ 5fe88d4
docs: Fix doc refs
NickLarsenNZ c0d6569
chore: tidy up metrics ports and use consts
NickLarsenNZ fd0e4a8
Remove commented code
NickLarsenNZ ba1180d
Apply suggestions from code review
NickLarsenNZ c288063
chore: Update CRD field descriptions
NickLarsenNZ 09476f3
fix: Handle unlikely error instead of crashing
NickLarsenNZ 7ade449
Update rust/operator-binary/src/zk_controller.rs
NickLarsenNZ 9690a92
chore: Add znode ref to error message
NickLarsenNZ 01d10c4
style: Replace empty format interpolations
NickLarsenNZ 43d4469
fix: Remove extra brace
NickLarsenNZ File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
docs/modules/zookeeper/pages/usage_guide/listenerclass.adoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,16 @@ | ||
| = Service exposition with ListenerClasses | ||
| :description: Configure the ZooKeeper service exposure with listener classes: cluster-internal, external-unstable or external-stable | ||
|
|
||
| Apache ZooKeeper offers an API. The Operator deploys a service called `<name>` (where `<name>` is the name of the ZookeeperCluster) through which ZooKeeper can be reached. | ||
|
|
||
| This service can have either the `cluster-internal` or `external-unstable` type. `external-stable` is not supported for ZooKeeper at the moment. | ||
| Read more about the types in the xref:concepts:service-exposition.adoc[service exposition] documentation at platform level. | ||
|
|
||
| This is how the listener class is configured: | ||
| The operator deploys a xref:listener-operator:listener.adoc[Listener] for the Server pods. | ||
| The listener defaults to only being accessible from within the Kubernetes cluster, but this can be changed by setting `.spec.servers.roleConfig.listenerClass`: | ||
|
|
||
| [source,yaml] | ||
| ---- | ||
| spec: | ||
| clusterConfig: | ||
| listenerClass: cluster-internal # <1> | ||
| servers: | ||
| roleConfig: | ||
| listenerClass: external-unstable # <1> | ||
| ---- | ||
| <1> The default `cluster-internal` setting. | ||
| <1> Specify one of `external-stable`, `external-unstable`, `cluster-internal` (the default setting is `cluster-internal`). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.