diff --git a/README.md b/README.md index 31569db..f5a68e4 100644 --- a/README.md +++ b/README.md @@ -112,6 +112,27 @@ statefulSet: secretName: "natsoperator-sample-server-config" ``` +## Development + +You can use [minikube](https://minikube.sigs.k8s.io/docs/) to test the operator. + +```shell +minikube start +``` + +The operator can be built and tested using the following commands. + +```shell +make generate +make install +``` + +Then you can start the operator using the following command. + +```shell +make up +``` + ## License [Apache 2.0](/LICENSE) \ No newline at end of file diff --git a/go.mod b/go.mod index 92ffceb..6822d6a 100644 --- a/go.mod +++ b/go.mod @@ -17,7 +17,6 @@ require ( k8s.io/api v0.31.3 k8s.io/apimachinery v0.31.3 k8s.io/client-go v0.31.3 - k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 sigs.k8s.io/controller-runtime v0.19.2 sigs.k8s.io/controller-tools v0.16.5 ) @@ -89,6 +88,7 @@ require ( k8s.io/helm v2.17.0+incompatible // indirect k8s.io/klog/v2 v2.130.1 // indirect k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 // indirect + k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 // indirect sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect sigs.k8s.io/yaml v1.4.0 // indirect