G.crd/setup May 2026
apiVersion: g.crd/v1 kind: SetupConfig metadata: name: production-setup spec: crdRoot: ./crd validation: enabled: true schemaPath: ./schemas deployment: strategy: apply # Options: apply, create, server-side namespace: crd-system hooks: preInstall: ./scripts/pre-check.sh postInstall: ./scripts/notify.sh Once configured, you can leverage these essential commands: 1. Scaffold a New CRD Generate a boilerplate CRD with a typed specification:
curl -LO https://github.com/g-crd/setup/releases/download/v2.0.0/setup-linux-amd64 chmod +x setup-linux-amd64 sudo mv setup-linux-amd64 /usr/local/bin/g.crd/setup For developers who need the latest edge features: g.crd/setup
g.crd/setup validate ./crd/base/*.yaml Roll out the CRDs to your connected Kubernetes cluster: apiVersion: g
g.crd/setup scaffold myresource.stable.example.com --version v1 --kind MyResource Catch errors before reaching the cluster: g.crd/setup
In the modern cloud-native ecosystem, managing Custom Resource Definitions (CRDs) efficiently is paramount. The g.crd/setup utility has emerged as a streamlined solution for scaffolding, validating, and deploying Kubernetes CRDs without the usual YAML fatigue.
g.crd/setup diff --show-managed-fields For automated pipelines, use the --dry-run and --output flags.
brew install g-crd/tap/setup Verify the installation: