Skip to content

Commit

Permalink
fix: do not add an indentation level to array elements (#30)
Browse files Browse the repository at this point in the history
This change aligns the yaml formatting of the resource editors to the yaml formatting of Porch where an indentation level is not added to array elements.
  • Loading branch information
ChristopherFry committed Jun 7, 2022
1 parent d0e09be commit c79a559
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/cad/src/utils/yaml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const loadYaml = (yamlString: string): Yaml => {
};

export const dumpYaml = (yaml: Yaml): string => {
return dump(yaml);
return dump(yaml, { noArrayIndent: true });
};

export const createMultiResourceYaml = (resourcesYaml: string[]): string => {
Expand Down

0 comments on commit c79a559

Please sign in to comment.