diff --git a/README.md b/README.md index 3e48f9325..40a8248c3 100644 --- a/README.md +++ b/README.md @@ -124,3 +124,61 @@ oc label namespace kueue.openshift.io/managed=true ``` This label instructs the Kueue Operator that the namespace should be managed by its webhook admission controllers. As a result, any Kueue resources within that namespace will be properly validated and mutated. + +### Local Development with Kind Cluster +Run your changes against a cluster using `go run` + +1. create a kind cluster: +unset KUBECONFIG environment variable, the cluster access configuration is stored in ${HOME}/.kube/config +``` +unset KUBECONFIG +kind create cluster --name=kueue-debug +``` + +You can use any existing cluster you have + +2. create the namespace from where the operator will run: +``` +export KUBECONFIG=${HOME}/.kube/config +# make sure you are at the root of the kueue operator repo +kubectl create -f deploy/01_namespace.yaml +``` + +3. create the CRD +``` +kubectl create -f deploy/crd/kueue-operator.crd.yaml +``` + +4. install cert manager +``` +helm install --repo https://charts.jetstack.io --version v1.16.3 --create-namespace --namespace cert-manager --wait --set crds.enabled=true cert-manager cert-manager +``` + +4. create the custom resource +``` +❯ kubectl create -f - <