Skip to content

Commit 034ee22

Browse files
mprahlopenshift-merge-robot
authored andcommitted
Ignore failures when namespaces are already created in the CI
Signed-off-by: mprahl <[email protected]>
1 parent 616fa78 commit 034ee22

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ kind-bootstrap-cluster-dev: kind-create-cluster install-crds install-resources
238238
.PHONY: kind-deploy-controller
239239
kind-deploy-controller:
240240
@echo installing $(IMG)
241-
kubectl create ns $(KIND_NAMESPACE) --kubeconfig=$(MANAGED_CONFIG)
241+
-kubectl create ns $(KIND_NAMESPACE) --kubeconfig=$(MANAGED_CONFIG)
242242
kubectl create secret -n $(KIND_NAMESPACE) generic hub-kubeconfig --from-file=kubeconfig=$(HUB_CONFIG_INTERNAL) --kubeconfig=$(MANAGED_CONFIG)
243243
kubectl apply -f deploy/operator.yaml -n $(KIND_NAMESPACE) --kubeconfig=$(MANAGED_CONFIG)
244244

@@ -276,9 +276,9 @@ install-crds:
276276
.PHONY: install-resources
277277
install-resources:
278278
@echo creating namespace on hub
279-
kubectl create ns $(MANAGED_CLUSTER_NAME) --kubeconfig=$(HUB_CONFIG)
279+
-kubectl create ns $(MANAGED_CLUSTER_NAME) --kubeconfig=$(HUB_CONFIG)
280280
@echo creating namespace on managed
281-
kubectl create ns $(MANAGED_CLUSTER_NAME) --kubeconfig=$(MANAGED_CONFIG)
281+
-kubectl create ns $(MANAGED_CLUSTER_NAME) --kubeconfig=$(MANAGED_CONFIG)
282282

283283
.PHONY: e2e-dependencies
284284
e2e-dependencies:

0 commit comments

Comments
 (0)