Skip to content

Commit 0a640b6

Browse files
committed
fix: correct a mistake in service name length exceptions logic
1 parent 621bc07 commit 0a640b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kp_pre_commit_hooks/gitops-values-validation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def iter_schema_validation_errors(self) -> Iterator[SchemaValidationError]:
255255
)
256256

257257
def is_ignored_error(self, error: ValidationError):
258-
return self.IGNORED_VALIDATION_ERRORS[error.json_path] == error.instance
258+
return error.instance in self.IGNORED_VALIDATION_ERRORS.get(error.json_path, [])
259259

260260
def validate_additional_checks(self, validator, additional_checks, value, schema):
261261
for check in additional_checks:

0 commit comments

Comments
 (0)