This document outlines recommendations for adding cross-field validation capabilities to the existing validation-gen
framework in Kubernetes. By enhancing the current tag-based approach with more expressive validation constructs, we can enable complex validation scenarios while maintaining backward compatibility.
- Declarative Validation: Express complex validation rules through declarative tags
- Type-Safety: Leverage Go's type system for validation definitions