@hologit/lens-lib-k8s 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -78,7 +78,7 @@ async function patchNamespaces(yamlPath, {
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
// load objects
|
|
81
|
-
const objects = yaml.
|
|
81
|
+
const objects = yaml.loadAll(fs.readFileSync(yamlPath, 'utf8'));
|
|
82
82
|
|
|
83
83
|
// patch namespaces
|
|
84
84
|
let patchedCount = 0;
|
|
@@ -115,7 +115,7 @@ async function patchNamespaces(yamlPath, {
|
|
|
115
115
|
yamlPath,
|
|
116
116
|
objects
|
|
117
117
|
.filter(obj => obj !== null)
|
|
118
|
-
.map(object => yaml.
|
|
118
|
+
.map(object => yaml.dump(object))
|
|
119
119
|
.join('\n---\n\n')
|
|
120
120
|
);
|
|
121
121
|
console.error(`patched ${patchedCount} namespaces in ${yamlPath}`);
|