Skip to content

feat: add TCR support and kubectl integration - #3

Open
wenjiehs wants to merge 2 commits into
tkestack:mainfrom
wenjiehs:feat/tcr-and-kubectl-support
Open

feat: add TCR support and kubectl integration#3
wenjiehs wants to merge 2 commits into
tkestack:mainfrom
wenjiehs:feat/tcr-and-kubectl-support

Conversation

@wenjiehs

Copy link
Copy Markdown

Summary

This PR adds comprehensive TCR (Tencent Container Registry) support and direct kubectl integration for TKE clusters.

New Features

TCR Commands

  • tcr-login - Get registry login credentials
  • tcr-list-namespaces - List image namespaces
  • tcr-list-repos - List image repositories
  • tcr-list-images - List image tags
  • tcr-create-namespace - Create new namespace
  • tcr-create-repo - Create new repository
  • tcr-delete-namespace - Delete namespace
  • tcr-delete-repo - Delete repository

Kubectl Commands

  • kubectl-get - Get K8s resources with various output formats
  • kubectl-apply - Apply K8s manifests (YAML/JSON)
  • kubectl-delete - Delete K8s resources
  • pods-list - Convenient pod listing
  • events - List cluster events
  • kubeconfig-cache - Manage kubeconfig cache

Improvements

  • Auto kubeconfig caching with configurable TTL (1 hour default)
  • Support both intranet and extranet access modes
  • Add CODEBUDDY.md for AI coding assistance

Testing

All commands tested with real TKE cluster in ap-guangzhou region.

wenjiehs added 2 commits March 16, 2026 16:21
- Add TCR commands: login, namespaces, repos, images management
- Add kubectl commands: get, apply, delete, pods-list, events
- Add kubeconfig auto-caching with 1-hour TTL
- Support both intranet and extranet access modes
- Add CODEBUDDY.md and .gitignore
New TCR Enterprise Commands:
- tcr-instances, tcr-create-instance, tcr-delete-instance
- tcr-namespaces, tcr-create-ns, tcr-delete-ns
- tcr-repos, tcr-create-repo-enterprise, tcr-delete-repo-enterprise
- tcr-images

New K8s Commands:
- kubectl-describe: Detailed resource description
- kubectl-create: Quick resource creation
- kubectl-exec: Execute commands in containers
- kubectl-top: View resource usage (CPU/memory)

New Helm Commands:
- helm-install, helm-upgrade, helm-uninstall
- helm-list, helm-status

Updated SKILL.md with comprehensive documentation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant