Skip to content

Commit

Permalink
remove server component (#208)
Browse files Browse the repository at this point in the history
* refactor: remove server component

* fix makefile generate cmd description

* remove openapi.yaml
  • Loading branch information
matheusfm authored Mar 15, 2023
1 parent 444f649 commit de4b3ea
Show file tree
Hide file tree
Showing 13 changed files with 2 additions and 698 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ jobs:
include:
- dockerfile: Dockerfile
image: operator
- dockerfile: Dockerfile.server
image: server
- dockerfile: Dockerfile.worker
image: worker
steps:
Expand Down
42 changes: 0 additions & 42 deletions Dockerfile.server

This file was deleted.

8 changes: 2 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ hack/scripts/gen_zora_view_kubeconfig.sh docs/targetcluster.sh: hack/scripts/m4/

script-consitency: hack/scripts/gen_zora_view_kubeconfig.sh docs/targetcluster.sh

generate: controller-gen script-consitency license ## Generate clientset and code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
generate: controller-gen script-consitency license ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
${CONTROLLER_GEN} object:headerFile="hack/boilerplate.go.txt" paths="./..."

clientset-gen: ## Generate clientset
Expand All @@ -78,19 +78,15 @@ clientset-gen: ## Generate clientset

build: generate fmt vet ## Build manager binary.
go build -o bin/manager main.go
go build -o bin/server cmd/server/main.go
go build -o bin/worker worker/main.go

run: install manifests generate ## Run a controller from your host.
go run ./main.go -default-plugins-names ${PLUGINS} -worker-image ${WORKER_IMG}
run-server: install manifests generate ## Run Zora's server locally.
go run ./cmd/server/main.go

docker-build: test ## Build manager docker image.
docker build -t ${IMG} -f ${DOCKERFILE} .
docker-build-all: docker-build ## Build Docker images for all components.
docker-build-worker: docker-build ## Build Docker images for all components.
${MAKE} IMG=${WORKER_IMG} DOCKERFILE=Dockerfile.worker docker-build
${MAKE} IMG=server:${TAG} DOCKERFILE=Dockerfile.server docker-build


##@ Deployment
Expand Down
73 changes: 0 additions & 73 deletions cmd/server/main.go

This file was deleted.

2 changes: 0 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ module github.com/undistro/zora
go 1.17

require (
github.com/go-chi/chi/v5 v5.0.7
github.com/go-logr/logr v1.2.0
github.com/google/go-cmp v0.5.5
github.com/onsi/ginkgo v1.16.5
github.com/onsi/gomega v1.17.0
github.com/ory/graceful v0.1.3
github.com/robfig/cron/v3 v3.0.1
go.uber.org/zap v1.19.1
k8s.io/api v0.23.5
Expand Down
4 changes: 0 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,6 @@ github.com/fsnotify/fsnotify v1.5.1/go.mod h1:T3375wBYaZdLLcVNkcVbzGHY7f1l/uK5T5
github.com/getkin/kin-openapi v0.76.0/go.mod h1:660oXbgy5JFMKreazJaQTw7o+X00qeSyhcnluiMv+Xg=
github.com/getsentry/raven-go v0.2.0/go.mod h1:KungGk8q33+aIAZUIVWZDr2OfAEBsO49PX4NzFV5kcQ=
github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
github.com/go-chi/chi/v5 v5.0.7 h1:rDTPXLDHGATaeHvVlLcR4Qe0zftYethFucbjVQ1PxU8=
github.com/go-chi/chi/v5 v5.0.7/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8=
github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
Expand Down Expand Up @@ -369,8 +367,6 @@ github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1y
github.com/onsi/gomega v1.17.0 h1:9Luw4uT5HTjHTN8+aNcSThgH1vdXnmdJ8xIfZ4wyTRE=
github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY=
github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o=
github.com/ory/graceful v0.1.3 h1:FaeXcHZh168WzS+bqruqWEw/HgXWLdNv2nJ+fbhxbhc=
github.com/ory/graceful v0.1.3/go.mod h1:4zFz687IAF7oNHHiB586U4iL+/4aV09o/PYLE34t2bA=
github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic=
github.com/pelletier/go-toml v1.9.3/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c=
Expand Down
1 change: 0 additions & 1 deletion hack/make/misc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
clientset-gen \
build \
run \
run-server \
docker-build \
docker-push \
docker-build-operator-worker \
Expand Down
49 changes: 0 additions & 49 deletions handlers/base.go

This file was deleted.

75 changes: 0 additions & 75 deletions handlers/cluster.go

This file was deleted.

57 changes: 0 additions & 57 deletions handlers/clusters.go

This file was deleted.

Loading

0 comments on commit de4b3ea

Please sign in to comment.