Skip to content

Commit d1bfd5e

Browse files
committed
imp: remove spc-x manager
Signed-off-by: Michael Filanov <[email protected]>
1 parent d8b964f commit d1bfd5e

File tree

7 files changed

+1222
-6123
lines changed

7 files changed

+1222
-6123
lines changed

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ RUN apt update && apt install -y \
4444
iputils-arping
4545

4646
WORKDIR /
47-
COPY --from=builder /workspace/build/manager .
4847
COPY --from=builder /workspace/build/flowcontroller .
4948
COPY --from=builder /workspace/build/railcni .
5049
# Copy sources to /src

Makefile

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ clean: ## clean files
122122

123123
.PHONY: manifests
124124
manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
125-
$(CONTROLLER_GEN) rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases
126125

127126
.PHONY: generate
128127
generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
@@ -164,15 +163,9 @@ lint-fix: golangci-lint ## Run golangci-lint linter and perform fixes
164163

165164
.PHONY: build
166165
build: $(BUILDDIR) ## Build manager binary.
167-
$(GO_BUILD_OPTS) go build -ldflags $(GO_LDFLAGS) -gcflags="$(GO_GCFLAGS)" -o $(BUILDDIR)/manager cmd/spectrum-x-manager/main.go
168166
$(GO_BUILD_OPTS) go build -ldflags $(GO_LDFLAGS) -gcflags="$(GO_GCFLAGS)" -o $(BUILDDIR)/flowcontroller cmd/flowscontroller/main.go
169167
$(GO_BUILD_OPTS) go build -ldflags $(GO_LDFLAGS) -gcflags="$(GO_GCFLAGS)" -o $(BUILDDIR)/railcni cmd/railcni/main.go
170168

171-
.PHONY: run
172-
run: manifests generate fmt vet ## Run a controller from your host.
173-
go run ./cmd/spectrum-x-manager/main.go
174-
175-
176169
# If you wish to build the manager image targeting other platforms you can use the --platform flag.
177170
# (i.e. docker build --platform linux/arm64). However, you must enable docker buildKit for it.
178171
# More info: https://docs.docker.com/develop/develop-images/build_enhancements/
@@ -204,7 +197,7 @@ docker-buildx: ## Build and push docker image for the manager for cross-platform
204197
.PHONY: build-installer
205198
build-installer: manifests generate kustomize ## Generate a consolidated YAML with CRDs and deployment.
206199
mkdir -p dist
207-
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
200+
cd config/flowcontroller && $(KUSTOMIZE) edit set image controller=${IMG}
208201
$(KUSTOMIZE) build config/default > dist/install.yaml
209202

210203
##@ Deployment
@@ -225,7 +218,6 @@ uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified
225218

226219
.PHONY: deploy
227220
deploy: manifests kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config.
228-
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
229221
cd config/flowcontroller && $(KUSTOMIZE) edit set image controller=${IMG}
230222
$(KUSTOMIZE) build config/default | $(KUBECTL) apply -f -
231223

@@ -235,7 +227,6 @@ undeploy: kustomize ## Undeploy controller from the K8s cluster specified in ~/.
235227

236228
.PHONY: deploy-openshift
237229
deploy-openshift: manifests kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config.
238-
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
239230
cd config/flowcontroller && $(KUSTOMIZE) edit set image controller=${IMG}
240231
$(KUSTOMIZE) build config/openshift | $(KUBECTL) apply -f -
241232

@@ -327,7 +318,7 @@ endif
327318
.PHONY: bundle
328319
bundle: manifests kustomize operator-sdk ## Generate bundle manifests and metadata, then validate generated files.
329320
$(OPERATOR_SDK) generate kustomize manifests -q
330-
cd config/manager && $(KUSTOMIZE) edit set image controller=$(IMG)
321+
cd config/flowcontroller && $(KUSTOMIZE) edit set image controller=$(IMG)
331322
$(KUSTOMIZE) build config/manifests | $(OPERATOR_SDK) generate bundle $(BUNDLE_GEN_FLAGS)
332323
$(OPERATOR_SDK) bundle validate ./bundle
333324

0 commit comments

Comments
 (0)