Skip to content

Commit

Permalink
Fix Makefile install-strategies target for non-cluster-scoped objects
Browse files Browse the repository at this point in the history
When objects are not cluster-scoped, like rolebindings or local build strategies, if the TEST_NAMESPACE variable is set, the objects should be applied to that given namespace. If not, apply to the current context's namespace.
  • Loading branch information
aleskandro committed Jul 23, 2024
1 parent 5373a51 commit de0673f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,8 @@ install-controller-kind: install-apis

.PHONY: install-strategies
install-strategies: install-apis
kubectl apply -R -f samples/v1beta1/buildstrategy/
[ -n "${TEST_NAMESPACE}" ] && ADDITIONAL_PARAMS="-n ${TEST_NAMESPACE}"; \
kubectl apply $$ADDITIONAL_PARAMS -R -f samples/v1beta1/buildstrategy/

.PHONY: local
local: install-strategies
Expand Down

0 comments on commit de0673f

Please sign in to comment.