Skip to content

Commit 2aedeff

Browse files
committed
use hybrid controller instead of the pre-built version
1 parent 6e30bde commit 2aedeff

File tree

2 files changed

+34
-0
lines changed
  • pkg/plugins/hybrid/v1alpha/scaffolds/internal/templates
  • testdata/hybrid/memcached-operator

2 files changed

+34
-0
lines changed

pkg/plugins/hybrid/v1alpha/scaffolds/internal/templates/makefile.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,23 @@ all: build
109109
help: ## Display this help.
110110
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
111111
112+
##@ Build
113+
.PHONY: build
114+
build: generate fmt vet ## Build manager binary.
115+
go build -o bin/manager main.go
116+
117+
.PHONY: run
118+
run: helm-operator ## Run against the configured Kubernetes cluster in ~/.kube/config
119+
go run ./main.go
120+
121+
.PHONY: docker-build
122+
docker-build: ## Build docker image with the manager.
123+
docker build -t ${IMG} .
124+
125+
.PHONY: docker-push
126+
docker-push: ## Push docker image with the manager.
127+
docker push ${IMG}
128+
112129
##@ Development
113130
114131
.PHONY: manifests

testdata/hybrid/memcached-operator/Makefile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,23 @@ all: build
3636
help: ## Display this help.
3737
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
3838

39+
##@ Build
40+
.PHONY: build
41+
build: generate fmt vet ## Build manager binary.
42+
go build -o bin/manager main.go
43+
44+
.PHONY: run
45+
run: helm-operator ## Run against the configured Kubernetes cluster in ~/.kube/config
46+
go run ./main.go
47+
48+
.PHONY: docker-build
49+
docker-build: ## Build docker image with the manager.
50+
docker build -t ${IMG} .
51+
52+
.PHONY: docker-push
53+
docker-push: ## Push docker image with the manager.
54+
docker push ${IMG}
55+
3956
##@ Development
4057

4158
.PHONY: manifests

0 commit comments

Comments
 (0)