Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"form-data": "^4.0.0",
"hpagent": "^1.2.0",
"isomorphic-ws": "^5.0.0",
"js-yaml": "^4.1.0",
"js-yaml": "^5.1.0",
"jsonpath-plus": "^10.3.0",
"openid-client": "^6.1.3",
"rfc4648": "^1.3.0",
Expand Down
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import fs from 'node:fs';
import https from 'node:https';
import http from 'node:http';
import tls from 'node:tls';
import yaml from 'js-yaml';
import * as yaml from 'js-yaml';
import net from 'node:net';
import path from 'node:path';

Expand Down
4 changes: 2 additions & 2 deletions src/yaml.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import yaml from 'js-yaml';
import * as yaml from 'js-yaml';
import { getSerializationType } from './util.js';
import { KubernetesObject } from './types.js';
import { ObjectSerializer } from './serializer.js';
Expand Down Expand Up @@ -26,7 +26,7 @@ export function loadYaml<T>(data: string, opts?: yaml.LoadOptions): T {
* @returns An array of deserialized Kubernetes objects.
*/
export function loadAllYaml(data: string, opts?: yaml.LoadOptions): any[] {
const ymls = yaml.loadAll(data, undefined, opts);
const ymls = yaml.loadAll(data, null, opts);
return ymls.map((yml) => {
const obj = yml as KubernetesObject;
const type = getSerializationType(obj.apiVersion, obj.kind);
Expand Down