g.crd/setup version # Expected output: g.crd/setup v2.0.0 Fetch the latest release directly from the GitHub releases page:
g.crd/setup diff --show-managed-fields For automated pipelines, use the --dry-run and --output flags.
g.crd/setup validate ./crd/base/*.yaml Roll out the CRDs to your connected Kubernetes cluster: g.crd/setup
- name: Deploy CRDs run: | g.crd/setup deploy \ --kubeconfig $ secrets.KUBECONFIG \ --dry-run=false \ --output summary
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. g.crd/setup
g.crd/setup scaffold myresource.stable.example.com --version v1 --kind MyResource Catch errors before reaching the cluster:
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 deploy --context prod-cluster --wait 60s Preview what will change compared to the live cluster: