Skip to content

Commit

Permalink
Merge pull request #44 from kubeshop/f1ames/feat/better-resource-hand…
Browse files Browse the repository at this point in the history
…ling

Handle invalid yaml resources
  • Loading branch information
f1ames authored Dec 13, 2023
2 parents 659da5b + 425de23 commit 3b5b0cd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
24 changes: 12 additions & 12 deletions package-lock.json

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

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@
"vitest": "^0.34.3"
},
"dependencies": {
"@monokle/parser": "0.2.0",
"@monokle/synchronizer": "^0.12.4",
"@monokle/parser": "^0.3.1",
"@monokle/synchronizer": "^0.12.5",
"@monokle/types": "^0.3.2",
"@monokle/validation": "^0.31.7",
"@monokle/validation": "^0.32.0",
"abortcontroller-polyfill": "1.7.5",
"boxen": "7.0.0",
"chalk": "5.0.1",
Expand Down
2 changes: 1 addition & 1 deletion src/commands/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export const validate = command<Options>({
}

const files = await readFiles(input);
const resources = extractK8sResources(files);
const resources = extractK8sResources(files, false, true);

if (resources.length === 0) {
throw new NotFound("YAML objects", undefined, "warning");
Expand Down

0 comments on commit 3b5b0cd

Please sign in to comment.