Skip to content

Commit

Permalink
Merge pull request #737 from djamaile/master
Browse files Browse the repository at this point in the history
chore: update typescript k8s  apply example
  • Loading branch information
k8s-ci-robot committed Nov 17, 2021
2 parents e64bf83 + 872d637 commit eff9fd4
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 eff9fd4

Please sign in to comment.