Skip to content

fix(k8s): do not overwrite cloud serverUrl with k3s when JENKINS_K8S_…#130

Merged
dpressle merged 2 commits intomasterfrom
local_k8s_fixup
Feb 18, 2026
Merged

fix(k8s): do not overwrite cloud serverUrl with k3s when JENKINS_K8S_…#130
dpressle merged 2 commits intomasterfrom
local_k8s_fixup

Conversation

@dpressle
Copy link
Collaborator

…API_URL unset

ensureK8sCloud() was always setting serverUrl to JENKINS_K8S_API_URL ?: 'https://k3s:6443', which overwrote startup-configured URLs and caused UnknownHostException: k3s in GHA/shared Jenkins where 'k3s' does not resolve. Only set serverUrl (and jenkinsUrl/jenkinsTunnel) when the corresponding env vars are set; otherwise preserve existing cloud configuration.

…API_URL unset

ensureK8sCloud() was always setting serverUrl to JENKINS_K8S_API_URL ?: 'https://k3s:6443',
which overwrote startup-configured URLs and caused UnknownHostException: k3s in GHA/shared
Jenkins where 'k3s' does not resolve. Only set serverUrl (and jenkinsUrl/jenkinsTunnel) when
the corresponding env vars are set; otherwise preserve existing cloud configuration.

Signed-off-by: Daniel Pressler <danielpr@nvidia.com>
@dpressle dpressle merged commit 9ee5ac6 into master Feb 18, 2026
3 checks passed
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.

2 participants