Skip to content

Commit c0b5d25

Browse files
authored
Merge pull request #614 from mbaldessari/warning-fixes
warning fixes
2 parents 7f6043d + 0cc13f6 commit c0b5d25

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,15 @@ validate-schema: ## validates values files against schema in common/clustergroup
164164

165165
.PHONY: validate-prereq
166166
validate-prereq: ## verify pre-requisites
167+
$(eval GLOBAL_PATTERN := $(shell yq -r .global.pattern values-global.yaml))
168+
@if [ $(NAME) != $(GLOBAL_PATTERN) ]; then\
169+
echo "";\
170+
echo "WARNING: folder directory is \"$(NAME)\" and global.pattern is set to \"$(GLOBAL_PATTERN)\"";\
171+
echo "this can create problems. Please make sure they are the same!";\
172+
echo "";\
173+
fi
167174
@if [ ! -f /run/.containerenv ]; then\
168175
echo "Checking prerequisites:";\
169-
for t in $(EXECUTABLES); do if ! which $$t > /dev/null 2>&1; then echo "No $$t in PATH"; exit 1; fi; done;\
170-
echo " Check for '$(EXECUTABLES)': OK";\
171176
echo -n " Check for python-kubernetes: ";\
172177
if ! ansible -m ansible.builtin.command -a "{{ ansible_python_interpreter }} -c 'import kubernetes'" localhost > /dev/null 2>&1; then echo "Not found"; exit 1; fi;\
173178
echo "OK";\

0 commit comments

Comments
 (0)