kcc-direct-base-types-implementer

star 1.0k

Base skill containing shared standards for all KCC direct resource types (both greenfield and brownfield).

GoogleCloudPlatform By GoogleCloudPlatform schedule Updated 6/10/2026

name: kcc-direct-base-types-implementer description: Base skill containing shared standards for all KCC direct resource types (both greenfield and brownfield).

KCC Direct Base Types Implementer

This skill provides the mandatory baseline standards that apply to all new KRM types (_types.go) for direct resources in Config Connector, regardless of whether they are greenfield or brownfield migrations.

Shared Standards for _types.go

After running the generator (via generate.sh), you must verify and enforce the following baseline requirements on the resulting _types.go file:

  • Copyright: The file must start with // Copyright 2026 Google LLC.
  • CRD Labels: Include at least these two labels in the type definition:
    // +kubebuilder:metadata:labels="cnrm.cloud.google.com/managed-by-kcc=true"
    // +kubebuilder:metadata:labels="cnrm.cloud.google.com/system=true"
    
    (Note: See greenfield/brownfield skills for the correct stability-level label to append.)
  • Status Fields: status.observedGeneration must be exactly *int64.
  • Reference Fields: Ensure that fields referencing other GCP/KCC resources are implemented as proper KCC reference fields (e.g., using pubsubv1beta1.PubSubTopicRef or refsv1beta1.KMSCryptoKeyRef), following the Ref suffix naming convention. You MUST NOT add new exceptions to tests/apichecks/testdata/exceptions/missingrefs.txt. All reference-like fields must be implemented as proper references.
Install via CLI
npx skills add https://github.com/GoogleCloudPlatform/k8s-config-connector --skill kcc-direct-base-types-implementer
Repository Details
star Stars 1,044
call_split Forks 343
navigation Branch main
article Path SKILL.md
More from Creator
GoogleCloudPlatform
GoogleCloudPlatform Explore all skills →