Skip to content

Commit

Permalink
chore: update typescript k8s apply example
Browse files Browse the repository at this point in the history
  • Loading branch information
Djamaile Rahamat committed Nov 16, 2021
1 parent e64bf83 commit 317af7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/typescript/apply/apply-example.ts
Expand Up @@ -16,7 +16,7 @@ export async function apply(specPath: string): Promise<k8s.KubernetesObject[]> {
const client = k8s.KubernetesObjectApi.makeApiClient(kc);
const fsReadFileP = promisify(fs.readFile);
const specString = await fsReadFileP(specPath, 'utf8');
const specs: k8s.KubernetesObject[] = yaml.safeLoadAll(specString);
const specs: k8s.KubernetesObject[] = yaml.loadAll(specString);
const validSpecs = specs.filter((s) => s && s.kind && s.metadata);
const created: k8s.KubernetesObject[] = [];
for (const spec of validSpecs) {
Expand Down

0 comments on commit 317af7a

Please sign in to comment.