Skip to content

Upgrading a Composition

  1. Make changes in the CDK8s source.
  2. Run tests and validation:
make test
make synth
make validate
  1. Apply the new Composition:
kubectl apply -f packages/<product>/dist/composition.k8s.yaml
  1. Verify existing XRs reconcile:
kubectl get <xr-kind> -w
  1. Rollback if needed:
kubectl apply -f packages/<product>/dist/composition.k8s.yaml  # previous version