Skip to content

Commit 14bacae

Browse files
committed
feat: indent/make fail more obvious
1 parent 7b1ef16 commit 14bacae

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ k8s-validate [--kubernetes-version X.X.X] [--exclude glob-pattern] files
1818

1919
Add a section similar to this to your .pre-commit-hooks.yaml:
2020
- repo: https://github.com/Agilicus/pre-commit-hook-k8svalidate.git
21-
rev: v0.0.7
21+
rev: v0.0.8
2222
hooks:
2323
- id: k8svalidate
2424
args: [--exclude, "**/*.patch.yaml"]

pre-commit-hooks/k8svalidate

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,17 +93,17 @@ def main():
9393
if is_valid_type(doc):
9494
try:
9595
utils.validate(doc, version, args.strict)
96-
operation = "PASS"
96+
operation = " PASS"
9797
except utils.SchemaNotFoundError:
9898
result = "Skipped [Unknown Schema]"
99-
operation = "SKIP"
99+
operation = " SKIP"
100100
except jsonschema.exceptions.ValidationError as e:
101101
result = f"FAIL [{e.args[0]}]"
102102
valid = False
103-
operation = "FAIL"
103+
operation = "*FAIL"
104104
else:
105105
result = "Skipped [Not Kubernetes YAML]"
106-
operation = "SKIP"
106+
operation = " SKIP"
107107
if not valid:
108108
overall_result = False
109109
print(f"{operation}: file {input} -> {result}")

0 commit comments

Comments
 (0)