Skip to content
This repository was archived by the owner on Jan 31, 2025. It is now read-only.

Commit

Permalink
BC-7234 - fix more
Browse files Browse the repository at this point in the history
  • Loading branch information
mamutmk5 authored Jun 21, 2024
1 parent 2040cdf commit e32d486
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/de/svs/doido/mongo/ConfigmapApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public ConfigmapApi(KubernetesClient kubernetesClient) {
@GET
@Path("/{namespace}/{configmapName}")
@Produces(MediaType.APPLICATION_JSON)
public Configmap ConfigmapApi(String nameespac, String configmapName) {
public Configmap ConfigmapApi(String nameespace, String configmapName) {
return kubernetesClient.pods().inNamespace(namespace).list().getItems();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class Read {
KubernetesClient client;

public Configmap readConfigmap(String namespace, String name) {
ConfigMap configmap = client.configMaps().inNamespace(namespace).withName(name);
ConfigMap configmap = client.configMaps().inNamespace(namespace).withName(name).get();
cfg.setName(configmap.getMetadata().getName());
cfg.setUri(confgimap.getData().get("uri"));
return cfg;
Expand Down

0 comments on commit e32d486

Please sign in to comment.