Commit 4c49aab
committed
fix(k8s): do not overwrite cloud serverUrl with k3s when JENKINS_K8S_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>1 parent c94bb8d commit 4c49aab
1 file changed
+20
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
873 | 873 | | |
874 | 874 | | |
875 | 875 | | |
876 | | - | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
877 | 884 | | |
878 | 885 | | |
879 | | - | |
880 | | - | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
881 | 898 | | |
882 | 899 | | |
883 | 900 | | |
| |||
0 commit comments