G.crd/setup 2021 May 2026
git clone https://github.com/g-crd/setup.git cd setup make build ./bin/setup version After installation, you must initialize the workspace. This creates the default directory structure and configuration file.
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: g.crd/setup
g.crd/setup version # Expected output: g.crd/setup v2.0.0 Fetch the latest release directly from the GitHub releases page: git clone https://github
g.crd/setup diff --show-managed-fields For automated pipelines, use the --dry-run and --output flags. Scaffold a New CRD Generate a boilerplate CRD
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 deploy --context prod-cluster --wait 60s Preview what will change compared to the live cluster:
- name: Deploy CRDs run: | g.crd/setup deploy \ --kubeconfig $ secrets.KUBECONFIG \ --dry-run=false \ --output summary