Код: Выделить всё
V1NamespaceList listOfns = null;
try {
listOfns = api.listNamespace(null, true, null, null, null, null, null, null, null, null);
} catch (Exception e) {
System.out.println("Something went wrong while fetching namespace list. Trying again ");
while (listOfns != null)
{
listOfns = api.listNamespace(null, true, null, null, null, null, null, null, null, null);
}
}
пожалуйста, предложите
Подробнее здесь: https://stackoverflow.com/questions/783 ... op-in-java