Skip to content

Commit bf363cd

Browse files
committed
fix: add svc index
Signed-off-by: Ivo Yankov <[email protected]>
1 parent f24f921 commit bf363cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/commands/network.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -852,8 +852,8 @@ export class NetworkCommand extends BaseCommand {
852852

853853
if (svc && svc.length > 0 && svc[0].status?.loadBalancer?.ingress?.length > 0) {
854854
let shouldContinue = false;
855-
for (let i = 0; i < svc.status.loadBalancer.ingress.length; i++) {
856-
const ingress = svc.status.loadBalancer.ingress[i];
855+
for (let i = 0; i < svc[0].status.loadBalancer.ingress.length; i++) {
856+
const ingress = svc[0].status.loadBalancer.ingress[i];
857857
if (!ingress.hostname && !ingress.ip) {
858858
shouldContinue = true; // try again if there is neither a hostname nor an ip
859859
break;

0 commit comments

Comments
 (0)