KnetzHub/Knetz

Multi-Kubeconfig Context Management

Open

#7 创建于 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 #6
Component: Cluster Connection

Description: Enhance multi-kubeconfig support to handle complex enterprise scenarios where clusters are managed across multiple kubeconfig files. Implement automatic discovery of available contexts from all configured kubeconfig files, validate context accessibility before operations to provide early failure detection, and add a knetz cluster switch command for easy context switching during interactive sessions. Enhance knetz cluster test to validate all configured contexts and report their status. Support merging multiple kubeconfig files intelligently while handling conflicts, and detect context naming conflicts across different files providing clear warnings. Add support for kubeconfig file environment variable overrides and implement a context listing feature that shows which file each context comes from.

Acceptance Criteria:

  • Auto-discover available contexts from multiple kubeconfig files
  • Validate context accessibility before operations
  • Support context switching with knetz cluster switch
  • Add context validation in knetz cluster test
  • Support kubeconfig file merging
  • Add context conflict detection

Why Now: Builds on configuration validation to enable multi-cluster support.

贡献者指南