Skip to content

Some nits and pieces#338

Merged
mjudeikis merged 5 commits into
kbind-dev:mainfrom
ntnn:bind296-misc
Oct 3, 2025
Merged

Some nits and pieces#338
mjudeikis merged 5 commits into
kbind-dev:mainfrom
ntnn:bind296-misc

Conversation

@ntnn

@ntnn ntnn commented Oct 2, 2025

Copy link
Copy Markdown
Member

Summary

Some little nits and pieces that arose from #333

What Type of PR Is This?

/kind cleanup

Related Issue(s)

Fixes #

Release Notes

NONE

Summary by CodeRabbit

  • Bug Fixes
    • Corrected host reporting in logs when waiting for API services to be available.
  • Chores
    • Removed deprecated development authentication configuration.
    • Simplified local module replacement configuration.
    • Dropped obsolete Go version verification checks from build scripts.
  • Tests
    • Replaced a panic with an assertion to ensure signing key generation is validated.
    • Exported a helper to create an authentication client, improving reuse across tests.

ntnn added 5 commits October 1, 2025 14:19
Signed-off-by: Nelo-T. Wallus <red.brush9525@fastmail.com>
Signed-off-by: Nelo-T. Wallus <n.wallus@sap.com>
Signed-off-by: Nelo-T. Wallus <red.brush9525@fastmail.com>
Signed-off-by: Nelo-T. Wallus <n.wallus@sap.com>
Signed-off-by: Nelo-T. Wallus <red.brush9525@fastmail.com>
Signed-off-by: Nelo-T. Wallus <n.wallus@sap.com>
Signed-off-by: Nelo-T. Wallus <red.brush9525@fastmail.com>
Signed-off-by: Nelo-T. Wallus <n.wallus@sap.com>
Signed-off-by: Nelo-T. Wallus <red.brush9525@fastmail.com>
Signed-off-by: Nelo-T. Wallus <n.wallus@sap.com>
@ntnn ntnn requested a review from a team as a code owner October 2, 2025 14:15
@coderabbitai

coderabbitai Bot commented Oct 2, 2025

Copy link
Copy Markdown

Walkthrough

Edits span logging in the kubectl plugin, removal of a dev Dex config file, consolidation/cleanup of Go module replace directives, pruning of Go version checks in a verify script, and a small e2e test change that exports a helper and replaces a panic with an assertion.

Changes

Cohort / File(s) Summary
Kubectl plugin logging
cli/pkg/kubectl/bind-apiservice/plugin/konnector.go
Log line in APIServiceBindings wait loop now reports host from config.Host instead of bindClient.RESTClient(). No control-flow changes.
Remove dev Dex config
contrib/kcp/dex-config-dev.yaml
Deleted entire development Dex configuration content.
Go module replace cleanup
contrib/kcp/go.mod
Grouped kube-bind replace directives into a single block; removed replaces for sigs.k8s.io/multicluster-runtime and github.com/kcp-dev/multicluster-provider.
Go version checks pruned
hack/verify-go-versions.sh
Removed Dockerfile, GitHub Actions, and .ko.yaml Go-version checks, plus the IGNORE_GO_VERSION conditional block and go version validation.
E2E framework helper export
test/e2e/framework/backend.go
Replaced panic with test assertion for signing key; renamed createDexClient to exported CreateDexClient and updated call sites.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested reviewers

  • mjudeikis
  • xrstf

Poem

A nibble of logs, a hop of tests,
The Dex burrow cleaned of dev-shaped nests.
Go mods trimmed, the scripts made light,
A client stands in daylight bright.
Thump-thump—reviews in tidy rows,
This patch, like clover, swiftly grows. 🐇✨

Pre-merge checks and finishing touches

❌ Failed checks (2 warnings)
Check name Status Explanation Resolution
Description Check ⚠️ Warning The description includes all template sections but the Summary is overly brief and does not outline the actual changes made, and the Related Issue(s) section contains a placeholder without a valid issue reference. Please expand the Summary section to briefly describe the key file updates and refactorings in this PR and update the Related Issue(s) section to reference a valid issue or remove the placeholder if there is none.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (1 passed)
Check name Status Explanation
Title Check ✅ Passed The title accurately describes the removal of the Go version checks but does not capture the wider cleanup and refactoring tasks present in the PR, making it only partially related to the full set of changes.
✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@ntnn ntnn changed the title Remove Go version check Some nits and pieces Oct 2, 2025

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between fbbda1c and 69e8418.

📒 Files selected for processing (5)
  • cli/pkg/kubectl/bind-apiservice/plugin/konnector.go (1 hunks)
  • contrib/kcp/dex-config-dev.yaml (0 hunks)
  • contrib/kcp/go.mod (1 hunks)
  • hack/verify-go-versions.sh (0 hunks)
  • test/e2e/framework/backend.go (3 hunks)
💤 Files with no reviewable changes (2)
  • hack/verify-go-versions.sh
  • contrib/kcp/dex-config-dev.yaml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
  • GitHub Check: Generate and push docs
  • GitHub Check: verify
  • GitHub Check: lint
  • GitHub Check: go-test-e2e
  • GitHub Check: go-test
🔇 Additional comments (3)
cli/pkg/kubectl/bind-apiservice/plugin/konnector.go (1)

122-122: LGTM! Improved logging clarity.

Logging config.Host instead of the REST client object provides a clearer, more readable host identifier in the wait-loop messages.

test/e2e/framework/backend.go (1)

45-45: LGTM! Better test diagnostics.

Replacing the panic with require.NotEmpty provides clearer failure messages and is the idiomatic approach for test assertions.

contrib/kcp/go.mod (1)

5-9: LGTM! Improved readability.

Consolidating the kube-bind replace directives into a single block improves consistency and readability without changing module resolution behavior.

Comment thread test/e2e/framework/backend.go Outdated
grep "go-version:" .github/workflows/*.yaml | { ! grep -v "go-version: v${VERSION}"; } || { echo "Wrong go version in .github/workflows/*.yaml, expected ${VERSION}"; exit 1; }
grep "golang:" .ko.yaml | { ! grep -v "golang:${VERSION}"; } || { echo "Wrong go version in .ko.yaml, expected ${VERSION}"; exit 1; }
# Note CONTRIBUTING.md isn't copied in the Dockerfile
if [ -z "${IGNORE_GO_VERSION}" ]; then

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🙂

@mjudeikis mjudeikis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

/lgtm
/approve

@mjudeikis mjudeikis merged commit ab67112 into kbind-dev:main Oct 3, 2025
6 checks passed
@coderabbitai coderabbitai Bot mentioned this pull request Oct 4, 2025
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.

3 participants