From 5c4ab16139909d3b8bb2c42852c15630662a003e Mon Sep 17 00:00:00 2001 From: Omar Mohamed Date: Mon, 26 Aug 2024 08:44:51 +0300 Subject: [PATCH] Separate the crds from the operator manifests Trying to install the operator with flux kustomization pointing to the manifest directory results in error relating to crds being duplicated. Signed-off-by: Omar Mohamed --- README.md | 4 ++-- manifests/{ => crds}/crd.yaml | 0 manifests/{ => operator}/dragonfly-operator.yaml | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename manifests/{ => crds}/crd.yaml (100%) rename manifests/{ => operator}/dragonfly-operator.yaml (100%) 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