KnetzHub/Knetz

Enhanced Configuration Validation

Open

#6 创建于 2025年10月24日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)JavaScript (0 fork)auto 404
enhancementgood first issue

仓库指标

Star
 (2 star)
PR 合并指标
 (PR 指标待抓取)

描述

Difficulty: ⭐⭐ (Easy-Medium)
Dependencies: Issue #5
Component: Configuration System

Description: Implement comprehensive configuration validation that catches errors early with helpful messages guiding users to fix them. This includes validating that kubeconfig files exist and are readable before attempting connections, checking that cluster contexts specified in configuration actually exist in the kubeconfig files, validating tenant-cluster relationships to ensure consistency, and providing detailed error messages that suggest fixes rather than just reporting problems. Add schema validation to catch typos and invalid values, implement a configuration linting feature that checks for common mistakes and suggests improvements, and create a dry-run mode that validates configuration without making any cluster connections. The validation should handle edge cases like circular tenant dependencies, conflicting namespace filters, and invalid version constraints.

Acceptance Criteria:

  • Validate kubeconfig file existence and accessibility
  • Check cluster context validity before scanning
  • Validate tenant-cluster relationships
  • Provide helpful error messages with suggested fixes
  • Add configuration schema validation
  • Add configuration file linting

Why Early: Prevents configuration-related issues in all subsequent features.

贡献者指南