Addons repository for OpenStack Helm
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # Copyright 2017 The Openstack-Helm Authors.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. # It's necessary to set this because some environments don't link sh -> bash.
  15. SHELL := /bin/bash
  16. HELM := helm
  17. TASK := build
  18. EXCLUDES := helm-toolkit doc tests tools logs tmp influxdb kafka \
  19. keystone-init monasca-agent monasca-alarms monasca mysql-users-init storm \
  20. zookeeper
  21. CHARTS := helm-toolkit $(filter-out $(EXCLUDES), $(patsubst %/.,%,$(wildcard */.)))
  22. .PHONY: $(EXCLUDES) $(CHARTS)
  23. all: $(CHARTS)
  24. $(CHARTS):
  25. @echo
  26. @echo "===== Processing [$@] chart ====="
  27. @make $(TASK)-$@
  28. init-%:
  29. if [ -f $*/Makefile ]; then make -C $*; fi
  30. if [ -f $*/requirements.yaml ]; then helm dep up $*; fi
  31. lint-%: init-%
  32. if [ -d $* ]; then $(HELM) lint $*; fi
  33. build-%: lint-%
  34. if [ -d $* ]; then $(HELM) package $*; fi
  35. clean:
  36. @echo "Removed .b64, _partials.tpl, and _globals.tpl files"
  37. rm -f helm-toolkit/secrets/*.b64
  38. rm -f */templates/_partials.tpl
  39. rm -f */templates/_globals.tpl
  40. rm -f *tgz */charts/*tgz
  41. rm -f */requirements.lock
  42. -rm -rf */charts */tmpcharts
  43. pull-all-images:
  44. @./tools/pull-images.sh
  45. pull-images:
  46. @./tools/pull-images.sh $(filter-out $@,$(MAKECMDGOALS))
  47. dev-deploy:
  48. @./tools/gate/devel/start.sh $(filter-out $@,$(MAKECMDGOALS))
  49. %:
  50. @: