Repository navigation
docs: use clusterDefinitions instead of targetCluster #4277 - #4800
Conversation
| * @param virtualClusterNames the name to use for the virtual cluster | ||
| * @return builder | ||
| */ | ||
| public static ConfigurationBuilder proxy(String clusterBootstrapServers, String... virtualClusterNames) { |
There was a problem hiding this comment.
You've partially refactored KroxyliciousConfigUtils to use the new API. I can see why - the baseVirtualClusterBuilder API will need to change, and that will ripple out across lots of ITs. Can I suggest you reduce the scope of this PR to exclude KroxyliciousConfigUtils. We can have a separate PR that just refactors KroxyliciousConfigUtils, simplifying the review process.
There was a problem hiding this comment.
Dropped the KroxyliciousConfigUtils changes from this PR.
43b1e18 to
f2f046e
Compare
f2f046e to
5a2a763
Compare
|
I've opened a PR against yours. It does the following
The motivation for 2. and 3. - I was uncomfortable with the idea of updating the docs/examples to the new API without being sure the new API had sufficient coverage. If you accept my changes into your PR, I think this PR will be mergeable. Separately I raised #4924 and #4925 to track the outstanding work. |
|
Merged your branch in and updated the description. |
2a3ac44 to
734d8d5
Compare
There was a DCO problem on one of my commits that you merged. Sorry. I took the liberty of doing a: |
|
@SamBarker I was responsible for several commits on this branch, so it'll need to be reviewed by someone other than me. |
robobario
left a comment
There was a problem hiding this comment.
Looks good to go once these nits are fixed up. Thanks @AzazelSensei!
|
Addressed the nits. |
Update docs, examples, and test YAML to the clusterDefinitions + target.cluster form introduced in 0.22.0. bootstrapServerSelection stays on the deprecated targetCluster form. Signed-off-by: Abdullah <[email protected]> Signed-off-by: Keith Wall <[email protected]>
…rmat Update con-configuring-vc-target.adoc to demonstrate bootstrapServerSelection on clusterDefinitions instead of deprecated targetCluster form. Changes: - Add bootstrapServerSelection to cluster definition property list - Update example to show bootstrapServerSelection.strategy on clusterDefinitions - Remove deprecated targetCluster example from bootstrap selection section - Update property count from two to three properties Assisted-by: Claude Sonnet 4 <[email protected]> Signed-off-by: Keith Wall <[email protected]> Signed-off-by: Keith Wall <[email protected]>
Signed-off-by: Keith Wall <[email protected]>
Migrates ConfigParserTest to use new clusterDefinitions + target.cluster reference pattern while maintaining backward compatibility tests for deprecated inline targetCluster format. Changes: - Migrated 61 ConfigParserTest cases to clusterDefinitions pattern - Created ConfigParserDeprecatedVirtualClusterTargetClusterCompatibilityTest with 10 backward compatibility tests for deprecated targetCluster format - All 71 tests passing Assisted-by: Claude Sonnet 4.5 <[email protected]> Signed-off-by: Keith Wall <[email protected]>
Refactored ConfigurationTest to use clusterDefinitions + target.cluster references instead of deprecated inline targetCluster. Introduced ConfigurationDeprecatedVirtualClusterTargetClusterCompatibilityTest to maintain test coverage for the deprecated targetCluster API. All tests passing (30 + 5). Assisted-by: Claude Sonnet 4.5 <[email protected]> Signed-off-by: Keith Wall <[email protected]>
Move gateway validation tests back to ConfigurationTest, drop the unused targetBootstrap parameter, restore bootstrapServerSelection on the example cluster definition, and rename the TLS compatibility test. Signed-off-by: Abdullah <[email protected]>
af62fa1 to
b155c8e
Compare
|
|



Type of change
Description
Docs and examples now use
clusterDefinitions+target.clusterinstead of the deprecated inlinetargetClusterfield.bootstrapServerSelectionis shown on the cluster definition.ConfigParserTestandConfigurationTestuse the new API. DeprecatedtargetClustercoverage is inConfigParserDeprecatedVirtualClusterTargetClusterCompatibilityTestandConfigurationDeprecatedVirtualClusterTargetClusterCompatibilityTest.Kubernetes operator-generated configs are unchanged.
Closes #4277
Additional Context
#4277 asked to move remaining docs/examples/tests onto the 0.22.0 config style. Keith's review branch is included.
Checklist
@SuppressWarningsand a justifying comment).Assisted-by:trailer (see DEV_GUIDE.md).changelog/unreleased/(remember to include changes affecting the API of the test artefacts too). See DEV_GUIDE.md for the entry format.