Skip to content

Commit ffa4179

Browse files
improve helm ci (#340)
* improve helm ci
1 parent f2b15f1 commit ffa4179

File tree

10 files changed

+38
-2
lines changed

10 files changed

+38
-2
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Values used in `helm-chart-ci` pipeline
2+
appProxy:
3+
enabled: true
4+
ingress:
5+
class: nginx
6+
host: hostname
7+
monitor:
8+
enabled: true
9+
useNamespaceWideRole: true
10+
runner: {}

.deploy/cf-runtime/.helmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@
2121
.idea/
2222
*.tmproj
2323
.vscode/
24+
# CI
25+
.ci/

.deploy/cf-runtime/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
description: A Helm chart for Codefresh Runner
33
name: cf-runtime
4-
version: 1.0.3
4+
version: 1.0.4
55
home: https://github.com/codefresh-io/venona
66
kubeVersion: '>=1.19.0-0'
77
keywords:

.deploy/cf-runtime/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Codefresh Runner
22

3-
![Version: 1.0.3](https://img.shields.io/badge/Version-1.0.3-informational?style=flat-square)
3+
![Version: 1.0.4](https://img.shields.io/badge/Version-1.0.4-informational?style=flat-square)
44

55
## Prerequisites
66

.deploy/scripts/get-all-images.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
MYDIR=$(dirname $0)
2+
CHARTDIR="${MYDIR}/../cf-runtime"
3+
VALUESFILE="../cf-runtime/.ci/values-ci.yaml"
4+
OUTPUTFILE=$1
5+
helm dependency update $CHARTDIR
6+
helm template --values $VALUESFILE $CHARTDIR | grep image: | awk -F 'image:' '{print $2}' | tr -d '"' | uniq > $OUTPUTFILE
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
MYDIR=$(dirname $0)
2+
CHARTDIR="${MYDIR}/../cf-runtime"
3+
VALUESFILE="../cf-runtime/.ci/values-ci.yaml"
4+
OUTPUTFILE=$1
5+
ALL_VALUES_TEMPLATE=$(cat <<-END
6+
{{ .Values | toYaml }}
7+
END
8+
)
9+
10+
echo $ALL_VALUES_TEMPLATE > $CHARTDIR/templates/all-values.yaml
11+
helm dependency update $CHARTDIR
12+
helm template --values $VALUESFILE --show-only templates/all-values.yaml $CHARTDIR > $OUTPUTFILE
13+
rm $CHARTDIR/templates/all-values.yaml

.github/pull_request_template.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## What
2+
3+
## Why
4+
5+
## Notes

0 commit comments

Comments
 (0)