Skip to content

Commit

Permalink
Fix client calls (extra parameter)
Browse files Browse the repository at this point in the history
  • Loading branch information
timyates committed Jan 22, 2024
1 parent 345e1fa commit d85cdf1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public String getPod(final @NotNull String namespace, final @NotNull String name

@Get("/{namespace}")
public Map<String, String> index(final @NotNull String namespace) throws ApiException {
V1PodList v1PodList = coreV1Api.listNamespacedPod(namespace, null, null, null, null, null, null, null, null, null, false);
V1PodList v1PodList = coreV1Api.listNamespacedPod(namespace, null, null, null, null, null, null, null, null, null, null, false);
return v1PodList.getItems().stream()
.filter(p -> p.getStatus() != null)
.collect(Collectors.toMap(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ private Flux<PropertySource> getPropertySourcesFromConfigMaps() {
}
})
.flatMap(labelSelector ->
client.listNamespacedConfigMap(configuration.getNamespace(), null, null, null, null, labelSelector, null, null, null, null))
client.listNamespacedConfigMap(configuration.getNamespace(), null, null, null, null, labelSelector, null, null, null, null, null))
.doOnError(ApiException.class, throwable -> LOG.error("Error to list ConfigMaps in the namespace [" + configuration.getNamespace() + "]: " + throwable.getResponseBody(), throwable))
.onErrorResume(throwable -> exceptionOnPodLabelsMissing
? Mono.error(throwable)
Expand Down Expand Up @@ -297,7 +297,7 @@ private Publisher<PropertySource> getPropertySourcesFromSecrets() {

Flux<PropertySource> secretListFlowable = computePodLabelSelector(client,
configuration.getSecrets().getPodLabels(), configuration.getNamespace(), labels, exceptionOnPodLabelsMissing)
.flatMap(labelSelector -> client.listNamespacedSecret(configuration.getNamespace(), null, null, null, null, labelSelector, null, null, null, null))
.flatMap(labelSelector -> client.listNamespacedSecret(configuration.getNamespace(), null, null, null, null, labelSelector, null, null, null, null, null))
.doOnError(ApiException.class, throwable -> LOG.error("Failed to list Secrets in the namespace [" + configuration.getNamespace() + "]: " + throwable.getResponseBody(), throwable))
.onErrorResume(throwable -> exceptionOnPodLabelsMissing
? Mono.error(throwable)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public Flux<V1Endpoints> listEndpoints(String namespace) {
LOG.trace("Using API to fetch endpoints from namespace [{}]", namespace);
}

return client.listNamespacedEndpoints(namespace, null, null, null, null, null, null, null, null, null)
return client.listNamespacedEndpoints(namespace, null, null, null, null, null, null, null, null, null, null)
.doOnError(ApiException.class, throwable -> LOG.error("Failed to list Endpoints from namespace [" + namespace + "]: " + throwable.getResponseBody(), throwable))
.flatMapIterable(V1EndpointsList::getItems);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public Flux<V1Service> listServices(String namespace) {
LOG.trace("Using API to fetch services from namespace [{}]", namespace);
}

return client.listNamespacedService(namespace, null, null, null, null, null, null, null, null, null)
return client.listNamespacedService(namespace, null, null, null, null, null, null, null, null, null, null)
.doOnError(ApiException.class, throwable -> LOG.error("Failed to list Services from namespace [" + namespace + "]: " + throwable.getResponseBody(), throwable))
.flatMapIterable(V1ServiceList::getItems);
}
Expand Down

0 comments on commit d85cdf1

Please sign in to comment.