1 From c116dce67296baa7b31cf59a68102b88e008db30 Mon Sep 17 00:00:00 2001
2 From: John Kung <john.kung@windriver.com>
3 Date: Thu, 9 May 2019 11:08:48 -0400
4 Subject: [PATCH 1/1] Add Makefile for helm charts
7 stable/Makefile | 43 +++++++++++++++++++++++++++++++++++++++++++
8 1 file changed, 43 insertions(+)
9 create mode 100644 stable/Makefile
11 diff --git a/stable/Makefile b/stable/Makefile
13 index 0000000..5cf4447
18 +# Copyright 2017 The Openstack-Helm Authors.
20 +# Copyright (c) 2018 Wind River Systems, Inc.
22 +# SPDX-License-Identifier: Apache-2.0
24 +# It's necessary to set this because some environments don't link sh -> bash.
28 +EXCLUDES := helm-toolkit doc tests tools logs tmp
29 +CHARTS := helm-toolkit $(filter-out $(EXCLUDES), $(patsubst %/.,%,$(wildcard */.)))
31 +.PHONY: $(EXCLUDES) $(CHARTS)
36 + @if [ -d $@ ]; then \
38 + echo "===== Processing [$@] chart ====="; \
43 + if [ -f $*/Makefile ]; then make -C $*; fi
44 + if [ -f $*/requirements.yaml ]; then helm dep up $*; fi
47 + if [ -d $* ]; then helm lint $*; fi
50 + if [ -d $* ]; then helm package $*; fi
53 + @echo "Clean all build artifacts"
54 + rm -f */templates/_partials.tpl */templates/_globals.tpl
55 + rm -f *tgz */charts/*tgz */requirements.lock
56 + rm -rf */charts */tmpcharts