• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

KusionStack / karpor / 42630332294
66%
main: 66%

Build:
Build:
LAST BUILD BRANCH: fix/pod-log-query-validation
DEFAULT BRANCH: main
Ran 10 Nov 2026 02:14AM UTC
Jobs 1
Files 68
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 Nov 2026 01:30PM UTC coverage: 66.053% (+0.4%) from 65.608%
42630332294

Pull #869

github

NopeCharon
fix(cluster): support cluster endpoints without an explicit port

Clusters whose API server URL has no port, such as Rancher or vCluster
platform proxy URLs like https://example.com/k8s/clusters/c-xxxxx,
cannot be used after registration. NewConfigFromCluster derives the TLS
server name with net.SplitHostPort(u.Host), which fails when the host
has no port:

    address example.com: missing port in address

so every client built for the cluster, and the cluster proxy, fails
with that error.

Use u.Hostname() instead, in both copies of NewConfigFromCluster
(pkg/infra/multicluster and the cluster proxy registry). It returns the
same host as before when a port is present, works without one and also
strips the brackets of IPv6 literals.

checkEndpointConnectivity, used when validating a kubeconfig, already
falls back to port 443, but built the address with
fmt.Sprintf("%s:443"), which is invalid for IPv6 hosts. Build it with
net.JoinHostPort instead.

Add tests for NewConfigFromCluster with and without a port, for IPv6
endpoints and for exec credentials, and check the address dialed by
checkEndpointConnectivity.

Fixes #819

Signed-off-by: NopeCharon <115794254+NopeCharon@users.noreply.github.com>
Pull Request #869: fix(cluster): support cluster endpoints without an explicit port

2 of 2 new or added lines in 2 files covered. (100.0%)

4553 of 6893 relevant lines covered (66.05%)

0.73 hits per line

Jobs
ID Job ID Ran Files Coverage
1 42630332294.1 10 Nov 2026 02:14AM UTC 68
66.05
GitHub Action Run
Source Files on build 42630332294
  • Tree
  • List 68
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #869
  • PR Base - main (#42347965157)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc