Skip to content

Commit

Permalink
Merge branch 'staging' into chore/update-and-relock-npm-packages
Browse files Browse the repository at this point in the history
  • Loading branch information
popas90 authored Jul 18, 2024
2 parents 916b413 + 3adc088 commit 0e2a873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/supervisor/watchers/handlers/namespace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ export async function trackNamespace(namespace: string): Promise<void> {
const loggedListMethod = async () => {
try {
return await retryKubernetesApiRequest(async () => {
logger.info({}, 'retrying k8s api request');
const reply = await k8sApi.coreClient.readNamespace(namespace);
const list = new V1NamespaceList();
list.apiVersion = 'v1';
list.kind = 'NamespaceList';
list.items = new Array<V1Namespace>(reply.body);
list.metadata = new V1ListMeta();
list.metadata.resourceVersion = reply.body.metadata?.resourceVersion;
return {
response: reply.response,
body: list,
Expand Down

0 comments on commit 0e2a873

Please sign in to comment.