首页/ AI 技能 / @skilllib/skill-2117939930272410182
Skill站外收录 @skilllib/skill-2117939930272410182

ark-controller-development

为 Ark Kubernetes 运算符提供完整的开发支持,覆盖 Go 类型定义、CRD 生成、Helm 图表同步、控制器逻辑实现及 Webhook 配置等核心环节,确保类型变更能自动反映到资源定义与部署配置中。

0.0 (0) 19 次安装 原作者 编程导航
收录于 2026-01-22
开发运维 AI 技能

Skills.MD

# Ark Controller Development Guidance for developing the Ark Kubernetes operator in `ark/`. ## When to use this skill - Modifying Go type definitions (`api/v1alpha1/*_types.go`) - Fixing CRD/Helm chart sync errors - Adding new CRD fields or resources ## CRD Generation Flow ``` api/v1alpha1/*_types.go # Go types with markers ↓ make manifests # Generates CRDs and syncs to Helm chart ↓ config/crd/bases/*.yaml # Source CRDs (auto-generated) dist/chart/templates/crd/ # Helm chart CRDs (auto-synced) ``` `make manifests` automatically syncs source CRDs to the Helm chart while preserving templated headers. ## Fixing "CRDs out of sync" Errors When `make build` fails with CRD validation errors: ```bash cd ark make manifests make build ``` ## Key Directories | Directory | Purpose | |-----------|---------| | `api/v1alpha1/` | Go type definitions | | `config/crd/bases/` | Auto-generated source CRDs | | `dist/chart/templates/crd/` | Helm chart CRDs (auto-synced) | | `internal/controller/` | Reconciliation logic | | `internal/webhook/` | Admission webhooks | | `internal/genai/` | AI/ML execution logic | ## Common Tasks ### After Modifying Types or Comments Go type comments become CRD field descriptions: ```bash cd ark make manifests make build ``` ### After Any Go Code Change ```bash make lint-fix # Format and fix linting make build # Build and validate ```

评论 0

还没有评论,来抢沙发。