diff --git a/kp_pre_commit_hooks/gitops-values-validation.py b/kp_pre_commit_hooks/gitops-values-validation.py index 3e5ea5b..7afb00c 100755 --- a/kp_pre_commit_hooks/gitops-values-validation.py +++ b/kp_pre_commit_hooks/gitops-values-validation.py @@ -255,7 +255,7 @@ def iter_schema_validation_errors(self) -> Iterator[SchemaValidationError]: ) def is_ignored_error(self, error: ValidationError): - return self.IGNORED_VALIDATION_ERRORS[error.json_path] == error.instance + return error.instance in self.IGNORED_VALIDATION_ERRORS.get(error.json_path, []) def validate_additional_checks(self, validator, additional_checks, value, schema): for check in additional_checks: