Skip to content

Commit

Permalink
Update import name
Browse files Browse the repository at this point in the history
  • Loading branch information
samayer12 committed Oct 28, 2024
1 parent 292d2d7 commit 7ad91c6
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions journey/k8s.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import { K8s, kind } from "kubernetes-fluent-client";

import { PeprStore } from "../src/lib/k8s";
import { Store } from "../src/lib/k8s";

export function sleep(seconds: number) {
return new Promise(resolve => setTimeout(resolve, seconds * 1000));
Expand All @@ -29,16 +29,15 @@ export async function waitForDeploymentReady(namespace: string, name: string) {
}

export async function noWaitPeprStoreKey(name: string, matchKey: string) {
const store = await K8s(PeprStore).InNamespace("pepr-system").Get(name);
if (store.data[matchKey]) {
return store.data[matchKey];
}
const store = await K8s(Store).InNamespace("pepr-system").Get(name);
if (store.data[matchKey]) {
return store.data[matchKey];
}
}


export async function waitForPeprStoreKey(name: string, matchKey: string) {
try {
const store = await K8s(PeprStore).InNamespace("pepr-system").Get(name);
const store = await K8s(Store).InNamespace("pepr-system").Get(name);
if (store.data[matchKey]) {
return store.data[matchKey];
}
Expand Down

0 comments on commit 7ad91c6

Please sign in to comment.