@@ -122,7 +122,6 @@ clean: ## clean files
122122
123123.PHONY : manifests
124124manifests : 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
128127generate : 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
166165build : $(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
205198build-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
227220deploy : 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
237229deploy-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
328319bundle : 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