kcc-direct-types-implementer
OfficialScaffold KRM direct types with correct CRD standards
System Documentation
What problem does it solve?
It standardizes and accelerates the creation of KRM types and CRD scaffolding for new Config Connector "direct" resources, reducing inconsistencies across generated Go types and CRD outputs.
Core Features & Use Cases
- Generate initial KRM types for new direct resources: Produces the
_types.goand generation plumbing for a new Kind by mapping it to the appropriate proto definitions. - Enforce CRD labeling and struct correctness: Ensures required
+kubebuilder:metadata:labelsare present exactly as specified and that status includesstatus.observedGenerationas an*int64. - Guarantee proto-to-KRM mapping: Verifies
+kcc:prototags on Spec and ObservedState so reconcilers and CRD generation align with GCP API semantics. - Register the Kind and regenerate CRDs: Ensures the new Kind is wired into
register.goand that runningdev/tasks/generate-crdsyields the expected YAML inconfig/crds/resources/.
Quick Start
Implement a new direct resource by updating the versioned apis/<service>/v1alpha1/generate.sh, generating the _types.go for your Kind and proto message, registering the Kind in apis/<service>/v1alpha1/register.go, and then running dev/tasks/generate-crds to confirm the CRD YAML appears in config/crds/resources/.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: kcc-direct-types-implementer Download link: https://github.com/GoogleCloudPlatform/k8s-config-connector/archive/main.zip#kcc-direct-types-implementer Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.