File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ k8s-validate [--kubernetes-version X.X.X] [--exclude glob-pattern] files
1818
1919Add 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"]
Original file line number Diff line number Diff 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 } " )
You can’t perform that action at this time.
0 commit comments