Commit 50f1f79
don
fix: Return nil robot client when credentials are empty
When robot credentials file exists but contains empty username/password
(common in cloud-only CAPI clusters), the code would create a Robot client
with empty credentials. This client would fail with 'Unauthorized' errors
when LoadBalancer tried to attach targets.
This fix adds a check after reading credentials from file to ensure they
are not empty before creating the Robot client, matching the behavior when
reading from environment variables.
Fixes LoadBalancer target attachment failures in cloud-only clusters.1 parent 62eaaca commit 50f1f79
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
75 | 79 | | |
76 | 80 | | |
77 | 81 | | |
| |||
0 commit comments