fix(make): updates makefile
This patch addresses a few issues with the Makefile - removes redundant directory checks; - removes requirements.yaml check as helm3 moved that into Charts.yaml; - fixes so "helm dep up" would work; - removes loki and harbor from exclusion as they are now actual charts; - updates the script to use the makefile. Signed-off-by: Tin Lam <tin@irrational.io> Change-Id: Ie6133bce4a45dd085569c51abc4c4c3c52b14378
This commit is contained in:
parent
0cd4381cd1
commit
6a5335b413
@ -16,7 +16,7 @@ TASK := build
|
||||
|
||||
EXCLUDES := playbooks roles doc tests tools logs tmp zuul.d releasenotes
|
||||
# NOTE(Portdirect): Exlude chart directories that are presnt only for the purposes of housing over-rides
|
||||
EXCLUDES += harbor loki gerrit ldap
|
||||
EXCLUDES += gerrit ldap
|
||||
CHARTS := $(filter-out $(EXCLUDES), $(patsubst %/.,%,$(wildcard */.)))
|
||||
|
||||
.PHONY: $(EXCLUDES) $(CHARTS)
|
||||
@ -32,13 +32,13 @@ $(CHARTS):
|
||||
|
||||
init-%:
|
||||
if [ -f $*/Makefile ]; then make -C $*; fi
|
||||
if [ -f $*/requirements.yaml ]; then helm dep up $*; fi
|
||||
helm dependency update $*
|
||||
|
||||
lint-%: init-%
|
||||
if [ -d $* ]; then helm lint $*; fi
|
||||
helm lint $*
|
||||
|
||||
build-%: lint-%
|
||||
if [ -d $* ]; then helm package $*; fi
|
||||
helm package $*
|
||||
|
||||
clean:
|
||||
@echo "Clean all build artifacts"
|
||||
|
@ -1,5 +1,5 @@
|
||||
apiVersion: v2
|
||||
name: harbor-utils
|
||||
name: harbor
|
||||
description: Harbor utility chart
|
||||
type: application
|
||||
version: 0.1.0
|
||||
|
@ -1,9 +1,7 @@
|
||||
#!/bin/bash
|
||||
set -ex
|
||||
|
||||
cd ./charts/loki
|
||||
helm dep up
|
||||
cd -
|
||||
make -C ./charts loki
|
||||
|
||||
# shellcheck disable=SC2046
|
||||
helm upgrade \
|
||||
|
@ -1,9 +1,7 @@
|
||||
#!/bin/bash
|
||||
set -ex
|
||||
|
||||
cd ./charts/harbor
|
||||
helm dep up
|
||||
cd -
|
||||
make -C ./charts harbor
|
||||
|
||||
# shellcheck disable=SC2046
|
||||
helm upgrade \
|
||||
|
Loading…
x
Reference in New Issue
Block a user