e6f08a933e
Add upstream stable helm charts for Elastic log monitoring: components: elasticsearch, filebeat, metricbeat, logstash, kibana. This enables build of monitor-helm which contains the helm charts required for the stx-monitor application. A Kibana patch is required for the Helm/Tiller issue with the checksum handling. The Elastic 7.x Apache 2.0 Licensed ("oss") images are included. These helm charts are included when performing: build-pkgs monitor-helm and requires stx-config: build-pkgs stx-monitor-helm build-helm-charts.sh --app stx-monitor Change-Id: Ic9a5b909dfbf60e39f98f3f14fe9bbac2de1d42b Depends-On: Id6e1180f2c4d6b736aaedd73430d0696ae9d0744 Story: 2005733 Task: 33413 Co-Authored-By: Kevin Smith <kevin.smith@windriver.com> Signed-off-by: John Kung <john.kung@windriver.com>
63 lines
1.5 KiB
Diff
63 lines
1.5 KiB
Diff
From c116dce67296baa7b31cf59a68102b88e008db30 Mon Sep 17 00:00:00 2001
|
|
From: John Kung <john.kung@windriver.com>
|
|
Date: Thu, 9 May 2019 11:08:48 -0400
|
|
Subject: [PATCH 1/1] Add Makefile for helm charts
|
|
|
|
---
|
|
stable/Makefile | 43 +++++++++++++++++++++++++++++++++++++++++++
|
|
1 file changed, 43 insertions(+)
|
|
create mode 100644 stable/Makefile
|
|
|
|
diff --git a/stable/Makefile b/stable/Makefile
|
|
new file mode 100644
|
|
index 0000000..5cf4447
|
|
--- /dev/null
|
|
+++ b/stable/Makefile
|
|
@@ -0,0 +1,43 @@
|
|
+#
|
|
+# Copyright 2017 The Openstack-Helm Authors.
|
|
+#
|
|
+# Copyright (c) 2018 Wind River Systems, Inc.
|
|
+#
|
|
+# SPDX-License-Identifier: Apache-2.0
|
|
+#
|
|
+# It's necessary to set this because some environments don't link sh -> bash.
|
|
+SHELL := /bin/bash
|
|
+TASK := build
|
|
+
|
|
+EXCLUDES := helm-toolkit doc tests tools logs tmp
|
|
+CHARTS := helm-toolkit $(filter-out $(EXCLUDES), $(patsubst %/.,%,$(wildcard */.)))
|
|
+
|
|
+.PHONY: $(EXCLUDES) $(CHARTS)
|
|
+
|
|
+all: $(CHARTS)
|
|
+
|
|
+$(CHARTS):
|
|
+ @if [ -d $@ ]; then \
|
|
+ echo; \
|
|
+ echo "===== Processing [$@] chart ====="; \
|
|
+ make $(TASK)-$@; \
|
|
+ fi
|
|
+
|
|
+init-%:
|
|
+ if [ -f $*/Makefile ]; then make -C $*; fi
|
|
+ if [ -f $*/requirements.yaml ]; then helm dep up $*; fi
|
|
+
|
|
+lint-%: init-%
|
|
+ if [ -d $* ]; then helm lint $*; fi
|
|
+
|
|
+build-%: lint-%
|
|
+ if [ -d $* ]; then helm package $*; fi
|
|
+
|
|
+clean:
|
|
+ @echo "Clean all build artifacts"
|
|
+ rm -f */templates/_partials.tpl */templates/_globals.tpl
|
|
+ rm -f *tgz */charts/*tgz */requirements.lock
|
|
+ rm -rf */charts */tmpcharts
|
|
+
|
|
+%:
|
|
+ @:
|
|
--
|
|
1.8.3.1
|
|
|