@@ -21,6 +21,9 @@ BUNDLE_IMG ?= ${IMG_PREFIX}/${IMG_REPO}-bundle:${VERSION}
21
21
TARGETALLOCATOR_IMG_REPO ?= target-allocator
22
22
TARGETALLOCATOR_IMG ?= ${IMG_PREFIX}/${TARGETALLOCATOR_IMG_REPO}:$(addprefix v,${VERSION})
23
23
24
+ OPERATOROPAMPBRIDGE_IMG_REPO ?= operator-opamp-bridge
25
+ OPERATOROPAMPBRIDGE_IMG ?= ${IMG_PREFIX}/${OPERATOROPAMPBRIDGE_IMG_REPO}:$(addprefix v,${VERSION})
26
+
24
27
# Options for 'bundle-build'
25
28
ifneq ($(origin CHANNELS ) , undefined)
26
29
BUNDLE_CHANNELS := --channels=$(CHANNELS )
@@ -89,6 +92,7 @@ ci: test
89
92
test : generate fmt vet ensure-generate-is-noop envtest
90
93
KUBEBUILDER_ASSETS=" $( shell $( ENVTEST) use $( KUBE_VERSION) -p path) " go test ${GOTEST_OPTS} ./...
91
94
cd cmd/otel-allocator && KUBEBUILDER_ASSETS=" $( shell $( ENVTEST) use $( KUBE_VERSION) -p path) " go test ${GOTEST_OPTS} ./...
95
+ cd cmd/operator-opamp-bridge && KUBEBUILDER_ASSETS=" $( shell $( ENVTEST) use $( KUBE_VERSION) -p path) " go test ${GOTEST_OPTS} ./...
92
96
93
97
# Build manager binary
94
98
.PHONY : manager
152
156
lint :
153
157
golangci-lint run
154
158
cd cmd/otel-allocator && golangci-lint run
159
+ cd cmd/operator-opamp-bridge && golangci-lint run
155
160
156
161
# Generate code
157
162
.PHONY : generate
@@ -174,7 +179,7 @@ e2e-log-operator:
174
179
kubectl get deploy -A
175
180
176
181
.PHONY : prepare-e2e
177
- prepare-e2e : kuttl set-image-controller container container-target-allocator start-kind cert-manager install-metrics-server install-openshift-routes load-image-all deploy
182
+ prepare-e2e : kuttl set-image-controller container container-target-allocator container-operator-opamp-bridge start-kind cert-manager install-metrics-server install-openshift-routes load-image-all deploy
178
183
TARGETALLOCATOR_IMG=$(TARGETALLOCATOR_IMG ) ./hack/modify-test-images.sh
179
184
180
185
.PHONY : scorecard-tests
@@ -201,6 +206,10 @@ container-target-allocator-push:
201
206
container-target-allocator :
202
207
docker buildx build --load --platform linux/${ARCH} -t ${TARGETALLOCATOR_IMG} cmd/otel-allocator
203
208
209
+ .PHONY : container-operator-opamp-bridge
210
+ container-operator-opamp-bridge :
211
+ docker buildx build --platform linux/${ARCH} -t ${OPERATOROPAMPBRIDGE_IMG} cmd/operator-opamp-bridge
212
+
204
213
.PHONY : start-kind
205
214
start-kind :
206
215
ifeq (true,$(START_KIND_CLUSTER ) )
@@ -216,7 +225,7 @@ install-openshift-routes:
216
225
./hack/install-openshift-routes.sh
217
226
218
227
.PHONY : load-image-all
219
- load-image-all : load-image-operator load-image-target-allocator
228
+ load-image-all : load-image-operator load-image-target-allocator load-image-operator-opamp-bridge
220
229
221
230
.PHONY : load-image-operator
222
231
load-image-operator : container
@@ -236,6 +245,10 @@ else
236
245
endif
237
246
238
247
248
+ .PHONY : load-image-operator-opamp-bridge
249
+ load-image-operator-opamp-bridge :
250
+ kind load docker-image ${OPERATOROPAMPBRIDGE_IMG}
251
+
239
252
.PHONY : cert-manager
240
253
cert-manager : cmctl
241
254
# Consider using cmctl to install the cert-manager once install command is not experimental
0 commit comments