Skip to content

Commit

Permalink
fix(core): disable aliasDuplicateObjects (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
shinebayar-g authored Dec 31, 2024
1 parent 744e856 commit f12538f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/ApiObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export abstract class ApiObject {

toYaml(): string {
const { name, ...rest } = this;
return yaml.stringify(rest, { schema: 'yaml-1.1' });
return yaml.stringify(rest, { schema: 'yaml-1.1', aliasDuplicateObjects: false });
}
}

Expand Down
5 changes: 4 additions & 1 deletion packages/core/src/Helm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ export class Helm {
let tmpValuesDir = '';
if (args.valuesObject) {
try {
const content = yaml.stringify(args.valuesObject, { schema: 'yaml-1.1' });
const content = yaml.stringify(args.valuesObject, {
schema: 'yaml-1.1',
aliasDuplicateObjects: false,
});
tmpValuesDir = fs.mkdtempSync(path.join(os.tmpdir(), 'k8skonf-helm-values-'), {
encoding: 'utf-8',
});
Expand Down

0 comments on commit f12538f

Please sign in to comment.