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.

63 lines
1.7KB

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