mirror of
https://github.com/bvanroll/example-node-project.git
synced 2025-08-29 20:02:42 +00:00
Draft create
This commit is contained in:
5
charts/preview/Chart.yaml
Normal file
5
charts/preview/Chart.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
apiVersion: v1
|
||||
description: A Helm chart for Kubernetes
|
||||
icon: https://raw.githubusercontent.com/jenkins-x/jenkins-x-platform/master/images/java.png
|
||||
name: preview
|
||||
version: 0.1.0-SNAPSHOT
|
18
charts/preview/Makefile
Executable file
18
charts/preview/Makefile
Executable file
@@ -0,0 +1,18 @@
|
||||
OS := $(shell uname)
|
||||
|
||||
preview:
|
||||
ifeq ($(OS),Darwin)
|
||||
sed -i "" -e "s/version:.*/version: $(PREVIEW_VERSION)/" Chart.yaml
|
||||
sed -i "" -e "s/version:.*/version: $(PREVIEW_VERSION)/" ../*/Chart.yaml
|
||||
sed -i "" -e "s/tag:.*/tag: $(PREVIEW_VERSION)/" values.yaml
|
||||
else ifeq ($(OS),Linux)
|
||||
sed -i -e "s/version:.*/version: $(PREVIEW_VERSION)/" Chart.yaml
|
||||
sed -i -e "s/version:.*/version: $(PREVIEW_VERSION)/" ../*/Chart.yaml
|
||||
sed -i -e "s|repository:.*|repository: $(DOCKER_REGISTRY)\/flowfactor\/frontend-node|" values.yaml
|
||||
sed -i -e "s/tag:.*/tag: $(PREVIEW_VERSION)/" values.yaml
|
||||
else
|
||||
echo "platfrom $(OS) not supported to release from"
|
||||
exit -1
|
||||
endif
|
||||
echo " version: $(PREVIEW_VERSION)" >> requirements.yaml
|
||||
jx step helm build
|
16
charts/preview/requirements.yaml
Executable file
16
charts/preview/requirements.yaml
Executable file
@@ -0,0 +1,16 @@
|
||||
# !! File must end with empty line !!
|
||||
dependencies:
|
||||
- alias: expose
|
||||
name: exposecontroller
|
||||
repository: http://chartmuseum.jenkins-x.io
|
||||
version: 2.3.92
|
||||
- alias: cleanup
|
||||
name: exposecontroller
|
||||
repository: http://chartmuseum.jenkins-x.io
|
||||
version: 2.3.92
|
||||
|
||||
# !! "alias: preview" must be last entry in dependencies array !!
|
||||
# !! Place custom dependencies above !!
|
||||
- alias: preview
|
||||
name: frontend-node
|
||||
repository: file://../frontend-node
|
22
charts/preview/values.yaml
Executable file
22
charts/preview/values.yaml
Executable file
@@ -0,0 +1,22 @@
|
||||
|
||||
expose:
|
||||
Annotations:
|
||||
helm.sh/hook: post-install,post-upgrade
|
||||
helm.sh/hook-delete-policy: hook-succeeded
|
||||
config:
|
||||
exposer: Ingress
|
||||
http: true
|
||||
tlsacme: false
|
||||
|
||||
cleanup:
|
||||
Args:
|
||||
- --cleanup
|
||||
Annotations:
|
||||
helm.sh/hook: pre-delete
|
||||
helm.sh/hook-delete-policy: hook-succeeded
|
||||
|
||||
preview:
|
||||
image:
|
||||
repository:
|
||||
tag:
|
||||
pullPolicy: IfNotPresent
|
Reference in New Issue
Block a user