We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e64bf83 commit 872d637Copy full SHA for 872d637
examples/typescript/apply/apply-example.ts
@@ -16,7 +16,7 @@ export async function apply(specPath: string): Promise<k8s.KubernetesObject[]> {
16
const client = k8s.KubernetesObjectApi.makeApiClient(kc);
17
const fsReadFileP = promisify(fs.readFile);
18
const specString = await fsReadFileP(specPath, 'utf8');
19
- const specs: k8s.KubernetesObject[] = yaml.safeLoadAll(specString);
+ const specs: k8s.KubernetesObject[] = yaml.loadAll(specString);
20
const validSpecs = specs.filter((s) => s && s.kind && s.metadata);
21
const created: k8s.KubernetesObject[] = [];
22
for (const spec of validSpecs) {
0 commit comments