diff --git a/Makefile b/Makefile index 7034e16..bd6a283 100644 --- a/Makefile +++ b/Makefile @@ -116,8 +116,8 @@ install: manifests kustomize ## Install CRDs into the K8s cluster specified in ~ .PHONY: generate-manifests generate-manifests: manifests kustomize ## Generate manifests e.g. CRD, RBAC etc. mkdir -p manifests - $(KUSTOMIZE) build config/default > manifests/dragonfly-operator.yaml - $(KUSTOMIZE) build config/crd > manifests/crd.yaml + $(KUSTOMIZE) build config/default > manifests/operator/dragonfly-operator.yaml + $(KUSTOMIZE) build config/crd > manifests/crds/crd.yaml .PHONY: uninstall uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion. diff --git a/README.md b/README.md index 0ad74ba..466dfd3 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Make sure to have your Kubernetes cluster up and running. Dragonfly Operator can ```sh # Install the CRD and Operator -kubectl apply -f https://raw.githubusercontent.com/dragonflydb/dragonfly-operator/main/manifests/dragonfly-operator.yaml +kubectl apply -f https://raw.githubusercontent.com/dragonflydb/dragonfly-operator/main/manifests/operator/dragonfly-operator.yaml ``` By default, the operator will be installed in the `dragonfly-operator-system` namespace. @@ -106,7 +106,7 @@ This will automatically delete all the resources (i.e pods and services) associa To uninstall the operator, you can run ```sh -kubectl delete -f https://raw.githubusercontent.com/dragonflydb/dragonfly-operator/main/manifests/dragonfly-operator.yaml +kubectl delete -f https://raw.githubusercontent.com/dragonflydb/dragonfly-operator/main/manifests/operator/dragonfly-operator.yaml ``` ## License diff --git a/manifests/crd.yaml b/manifests/crds/crd.yaml similarity index 100% rename from manifests/crd.yaml rename to manifests/crds/crd.yaml diff --git a/manifests/dragonfly-operator.yaml b/manifests/operator/dragonfly-operator.yaml similarity index 100% rename from manifests/dragonfly-operator.yaml rename to manifests/operator/dragonfly-operator.yaml