We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 260d41a commit f24f921Copy full SHA for f24f921
src/commands/network.ts
@@ -851,12 +851,18 @@ export class NetworkCommand extends BaseCommand {
851
]);
852
853
if (svc && svc.length > 0 && svc[0].status?.loadBalancer?.ingress?.length > 0) {
854
+ let shouldContinue = false;
855
for (let i = 0; i < svc.status.loadBalancer.ingress.length; i++) {
856
const ingress = svc.status.loadBalancer.ingress[i];
- if (ingress.hostname || ingress.ip) {
857
- return;
+ if (!ingress.hostname && !ingress.ip) {
858
+ shouldContinue = true; // try again if there is neither a hostname nor an ip
859
+ break;
860
}
861
862
+ if (shouldContinue) {
863
+ continue;
864
+ }
865
+ return;
866
867
868
attempts++;
0 commit comments