Skip to content

[WIP] Disallow --external-hostname and set based on --shard-base-url or --bind-address#3832

Open
ntnn wants to merge 1 commit intokcp-dev:mainfrom
ntnn:remove-external-hostname-flag
Open

[WIP] Disallow --external-hostname and set based on --shard-base-url or --bind-address#3832
ntnn wants to merge 1 commit intokcp-dev:mainfrom
ntnn:remove-external-hostname-flag

Conversation

@ntnn
Copy link
Member

@ntnn ntnn commented Feb 11, 2026

Summary

Disallow setting --external-hostname and set based on --shard-base-url or --bind-address instead.

In kcp-operator we are already forcing --external-hostname to --shard-base-url: https://github.com/kcp-dev/kcp-operator/blob/850a5f963929303bc1b3c311aa7a23360ab7b871/internal/resources/shard/deployment.go#L203-L204

What Type of PR Is This?

/kind cleanup

Related Issue(s)

Somewhat related to #3830, but not directly.

Release Notes

Disallow setting `--external-hostname`, determined based on `--shard-base-url` or `--bind-address` instead

…ind-address

Signed-off-by: Nelo-T. Wallus <red.brush9525@fastmail.com>
Signed-off-by: Nelo-T. Wallus <n.wallus@sap.com>
@kcp-ci-bot kcp-ci-bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note Denotes a PR that will be considered when it comes time to generate release notes. dco-signoff: yes Indicates the PR's author has signed the DCO. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. labels Feb 11, 2026
@kcp-ci-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign ntnn for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kcp-ci-bot kcp-ci-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Feb 11, 2026
@ntnn
Copy link
Member Author

ntnn commented Feb 11, 2026

Mhm, saw this while looking through other things: https://github.com/xrstf/kcp/blob/570d782411548335dd9aa41fb98bbf1e94b4a935/pkg/server/config.go#L583-L589

So .ShardBaseURL defaults to .GenericConfig.ExternalAddress if not set. Could be ok. Feels off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dco-signoff: yes Indicates the PR's author has signed the DCO. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants