generated from giantswarm/template-app
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.custom.mk
32 lines (24 loc) · 1.34 KB
/
Makefile.custom.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
##@ App
SHELL := /bin/bash
APPLICATION_NAME="cluster-api-provider-openstack"
# keep in sync with
# * image tag in helm/cluster-api-provider-openstack/values.yaml
# * used capo-version in mc-bootstrap - defined in Makefile.custom.mk (https://github.com/giantswarm/mc-bootstrap/blob/main/Makefile.custom.mk)
CAPO_VERSION="v0.6.3"
.PHONY: all
all: fetch-upstream-manifest apply-kustomize-patches delete-generated-helm-charts release-manifests ## Builds the manifests to publish with a release (alias to release-manifests)
.PHONY: release-manifests
release-manifests: fetch-upstream-manifest apply-kustomize-patches delete-generated-helm-charts delete-generated-helm-charts ## Builds the manifests to publish with a release
# move files from workdir over to helm directury structure
./hack/prepare-helmchart.sh ${APPLICATION_NAME}
.PHONY: fetch-upstream-manifest
fetch-upstream-manifest: ## fetch upstream manifest from
# fetch upstream released manifest yaml
./hack/sync-version.sh ${CAPO_VERSION}
.PHONY: apply-kustomize-patches
apply-kustomize-patches: ## apply giantswarm specific patches
kubectl kustomize config/kustomize -o config/kustomize/tmp
#.PHONY: delete-generated-helm-charts
delete-generated-helm-charts: # clean workspace and delete manifests
@rm -rvf ./helm/${APPLICATION_NAME}/templates/*.yaml
@rm -rvf ./helm/${APPLICATION_NAME}/crds/*.yaml