Serialization
The GCP lexicon serializes resources into Config Connector YAML manifests (Kubernetes CRDs).
Building
Section titled “Building”Run chant build to produce Config Connector YAML from your declarations:
chant build# Writes dist/manifests.yamlThe generated manifests include:
apiVersionandkind(Config Connector CRD)metadatawith name, labels, and annotationsspecwith the resource configuration
Key conversions
Section titled “Key conversions”| Chant (TypeScript) | YAML output | Rule |
|---|---|---|
export const myBucket = new StorageBucket({...}) | metadata.name: my-bucket | Export name → kebab-case |
defaultLabels({...}) | Merged into all resources | Project-wide label injection |
defaultAnnotations({...}) | Merged into all resources | Project-wide annotation injection |
Applying
Section titled “Applying”Apply to a Kubernetes cluster with Config Connector installed:
# Dry runkubectl apply -f dist/manifests.yaml --dry-run=server
# Applykubectl apply -f dist/manifests.yamlCompatibility
Section titled “Compatibility”The output is compatible with:
- kubectl apply/diff
- Config Connector controller on GKE
- ArgoCD / Flux GitOps controllers
- Kustomize (as a base)