add back steps to develop outside of k8s
This commit is contained in:
parent
98017e9cb0
commit
15fc33c506
18
README.md
18
README.md
|
@ -33,7 +33,7 @@ $ kubectl apply -f config/samples/seaweed_v1_seaweed.yaml
|
|||
|
||||
```
|
||||
|
||||
Update the operator
|
||||
### Update the operator
|
||||
```
|
||||
# delete the existing operator
|
||||
$ kubectl delete namespace seaweedfs-operator-system
|
||||
|
@ -48,3 +48,19 @@ $ kind load docker-image seaweedfs/operator:v0.0.1
|
|||
$ make deploy
|
||||
|
||||
```
|
||||
|
||||
### develop outside of k8s
|
||||
|
||||
```
|
||||
$ git clone https://github.com/seaweedfs/seaweedfs-operator
|
||||
$ cd seaweedfs-operator
|
||||
|
||||
# register the CRD with the Kubernetes
|
||||
$ make install
|
||||
|
||||
# run the operator locally outside the Kubernetes cluster
|
||||
$ make run ENABLE_WEBHOOKS=false
|
||||
|
||||
# From another terminal in the same directory
|
||||
$ kubectl apply -f config/samples/seaweed_v1_seaweed.yaml
|
||||
```
|
|
@ -72,9 +72,11 @@ func (r *SeaweedReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) {
|
|||
return result, err
|
||||
}
|
||||
|
||||
if false {
|
||||
if done, result, err = r.maintenance(seaweedCR); done {
|
||||
return result, err
|
||||
}
|
||||
}
|
||||
|
||||
return ctrl.Result{RequeueAfter: 5 * time.Second}, nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue