@@ -54,16 +54,20 @@ help: ## Display this help.
54
54
55
55
# #@ Development
56
56
57
- .PHONY : manifests
58
- manifests : config/crd/bases/ingress.pomerium.io_pomerium.yaml
57
+ .PHONY : generated
58
+ generated : config/crd/bases/ingress.pomerium.io_pomerium.yaml apis/ingress/v1/zz_generated.deepcopy.go
59
59
@echo " ==> $@ "
60
60
61
+ apis/ingress/v1/zz_generated.deepcopy.go : apis/ingress/v1/pomerium_types.go
62
+ @echo " ==> $@ "
63
+ @$(CONTROLLER_GEN ) object:headerFile=./hack/boilerplate.go.txt paths=$(CRD_PACKAGE ) output:dir=apis/ingress/v1
64
+
61
65
config/crd/bases/ingress.pomerium.io_pomerium.yaml : apis/ingress/v1/pomerium_types.go
62
66
@echo " ==> $@ "
63
67
@$(CONTROLLER_GEN ) $(CRD_OPTIONS ) rbac:roleName=manager-role crd paths=$(CRD_PACKAGE ) output:crd:artifacts:config=config/crd/bases
64
68
65
69
.PHONY : test
66
- test : envoy manifests envtest pomerium-ui
70
+ test : envoy generated envtest pomerium-ui
67
71
@echo " ==> $@ "
68
72
@KUBEBUILDER_ASSETS=" $( shell $( ENVTEST) use $( ENVTEST_K8S_VERSION) --bin-dir $( LOCALBIN) -p path --arch=$( KUBEENV_GOARCH) ) " go test $(GOTAGS ) ./...
69
73
@@ -75,7 +79,7 @@ lint: envoy pomerium-ui
75
79
76
80
# #@ Build
77
81
.PHONY : build
78
- build : pomerium-ui build-go # # Build manager binary.
82
+ build : generated pomerium-ui build-go # # Build manager binary.
79
83
@echo " ==> $@ "
80
84
81
85
@@ -119,7 +123,7 @@ internal/ui/dist/index.js: internal/ui/node_modules
119
123
@cd internal/ui && yarn build
120
124
121
125
.PHONY : run
122
- run : manifests
126
+ run : generated
123
127
@echo " ==> $@ "
124
128
@go run $(GOTAGS ) ./main.go
125
129
@@ -141,17 +145,17 @@ snapshot:
141
145
# #@ Deployment
142
146
143
147
.PHONY : install
144
- install : manifests kustomize # # Install CRDs into the K8s cluster specified in ~/.kube/config.
148
+ install : generated kustomize # # Install CRDs into the K8s cluster specified in ~/.kube/config.
145
149
@echo " ==> $@ "
146
150
@$(KUSTOMIZE ) build config/crd | kubectl apply -f -
147
151
148
152
.PHONY : uninstall
149
- uninstall : manifests kustomize # # Uninstall CRDs from the K8s cluster specified in ~/.kube/config.
153
+ uninstall : generated kustomize # # Uninstall CRDs from the K8s cluster specified in ~/.kube/config.
150
154
@echo " ==> $@ "
151
155
@$(KUSTOMIZE ) build config/crd | kubectl delete -f -
152
156
153
157
.PHONY : deploy
154
- deploy : manifests kustomize # # Deploy controller to the K8s cluster specified in ~/.kube/config.
158
+ deploy : generated kustomize # # Deploy controller to the K8s cluster specified in ~/.kube/config.
155
159
@echo " ==> $@ "
156
160
@cd config/manager && $(KUSTOMIZE ) edit set image controller=${IMG}
157
161
@$(KUSTOMIZE ) build config/default | kubectl apply -f -
@@ -203,7 +207,7 @@ deployment: kustomize
203
207
@$(KUSTOMIZE ) build config/default > deployment.yaml
204
208
205
209
.PHONY : docs
206
- docs : manifests
210
+ docs : generated
207
211
@echo " ==> $@ "
208
212
@go run docs/cmd/main.go > reference.md
209
213
0 commit comments