Skip to content

Commit 0ec8552

Browse files
author
Sean Sundberg
committed
Updates pipeline with version 1.1.1
1 parent 5563a26 commit 0ec8552

File tree

9 files changed

+33
-25
lines changed

9 files changed

+33
-25
lines changed

Jenkinsfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
def pipelineVersion='1.1.1'
2+
println "Pipeline version: ${pipelineVersion}"
13
/*
24
* This is a vanilla Jenkins pipeline that relies on the Jenkins kubernetes plugin to dynamically provision agents for
35
* the build containers.
@@ -219,11 +221,11 @@ spec:
219221
fi
220222
221223
git config --local credential.helper "!f() { echo username=\\$GIT_AUTH_USER; echo password=\\$GIT_AUTH_PWD; }; f"
222-
224+
223225
git fetch
224226
git fetch --tags
225227
git tag -l
226-
228+
227229
git checkout -b ${BRANCH} --track origin/${BRANCH}
228230
git branch --set-upstream-to=origin/${BRANCH} ${BRANCH}
229231

chart/base/Chart.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ apiVersion: v1
22
appVersion: "1.0"
33
description: A Helm chart for Kubernetes
44
name: base
5-
version: 1.0.0
5+
version: 1.1.1
6+
branch: dev

chart/base/templates/_helpers.tpl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
{{/*
33
Expand the name of the chart.
44
*/}}
5-
65
{{- define "starter-kit.name" -}}
76
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
87
{{- end -}}

chart/base/templates/deployment.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,20 @@ metadata:
77
app.openshift.io/vcs-ref: {{ .Values.vcsInfo.branch }}
88
app.openshift.io/vcs-uri: {{ .Values.vcsInfo.repoUrl }}
99
{{- end }}
10+
{{- if .Values.connectsTo }}
1011
app.openshift.io/connects-to: {{ .Values.connectsTo }}
12+
{{- end }}
1113
labels:
1214
app.kubernetes.io/name: {{ include "starter-kit.name" . }}
1315
helm.sh/chart: {{ include "starter-kit.chart" . }}
14-
app.openshift.io/runtime: nodejs
1516
app.kubernetes.io/instance: {{ .Release.Name }}
1617
app: {{ .Release.Name }}
1718
{{- if .Values.partOf }}
1819
app.kubernetes.io/part-of: {{ .Values.partOf }}
1920
{{- end}}
21+
{{- if .Values.runtime }}
22+
app.openshift.io/runtime: {{ .Values.runtime }}
23+
{{- end}}
2024
spec:
2125
replicas: {{ .Values.replicaCount }}
2226
selector:
@@ -55,10 +59,10 @@ spec:
5559
value: ""
5660
- name: PROTOCOLS
5761
value: ""
58-
- name: API_HOST
59-
value: {{ printf "%s:80" .Values.connectsTo | quote }}
6062
- name: LOG_LEVEL
6163
value: {{ .Values.logLevel | quote }}
64+
- name: API_HOST
65+
value: {{ printf "%s:80" .Values.connectsTo | quote }}
6266
resources:
6367
{{- toYaml .Values.resources | nindent 12 }}
6468
{{- with .Values.nodeSelector }}

chart/base/templates/ingress.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
{{- if .Values.ingress.enabled -}}
2-
{{- $serviceName := include "starter-kit.fullname" . -}}
32
{{- $fullName := include "starter-kit.fullname" . -}}
4-
{{- $namespace := default .Release.Namespace .Values.ingress.appid.binding.namespace -}}
3+
{{- $namespace := .Release.Namespace -}}
54
{{- $requestType := .Values.ingress.appid.requestType -}}
6-
apiVersion: extensions/v1beta1
5+
apiVersion: networking.k8s.io/v1beta1
76
kind: Ingress
87
metadata:
98
name: {{ $fullName }}
109
labels:
11-
app.kubernetes.io/name: {{ include "starter-kit.appname" . }}
10+
app.kubernetes.io/name: {{ include "starter-kit.name" . }}
1211
helm.sh/chart: {{ include "starter-kit.chart" . }}
1312
app.kubernetes.io/instance: {{ .Release.Name }}
1413
app: {{ .Release.Name }}
1514
{{- if .Values.ingress.appid.enabled }}
1615
annotations:
17-
ingress.bluemix.net/appid-auth: {{ printf "bindSecret=%s namespace=%s requestType=%s serviceName=%s" (required "AppId binding is required to enable auth on the ingress" .Values.ingress.appid.binding.name) $namespace $requestType $fullName }}
16+
ingress.bluemix.net/appid-auth: {{ printf "bindSecret=%s namespace=%s requestType=%s serviceName=%s" (required "AppId binding is required to enable auth on the ingress" .Values.appidBinding) $namespace $requestType $fullName }}
1817
{{- end}}
1918
spec:
2019
{{- if include "starter-kit.tlsSecretName" . }}
@@ -29,6 +28,6 @@ spec:
2928
paths:
3029
- path: {{ .path }}
3130
backend:
32-
serviceName: {{ $serviceName }}
31+
serviceName: {{ $fullName }}
3332
servicePort: http
3433
{{- end }}

chart/base/templates/route.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{{- if .Values.route.enabled -}}
2-
{{- $serviceName := include "starter-kit.name" . -}}
2+
{{- $fullName := include "starter-kit.fullname" . -}}
33
kind: Route
44
apiVersion: route.openshift.io/v1
55
metadata:
6-
name: {{ include "starter-kit.fullname" . }}
6+
name: {{ $fullName }}
77
annotations:
88
argocd.argoproj.io/sync-options: Validate=false
99
spec:
1010
to:
1111
kind: Service
12-
name: {{ $serviceName }}
12+
name: {{ $fullName }}
1313
weight: 100
1414
tls:
1515
termination: edge
1616
wildcardPolicy: None
17-
{{- end }}
17+
{{- end }}

chart/base/templates/service.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
apiVersion: v1
22
kind: Service
33
metadata:
4-
name: {{ include "starter-kit.name" . }}
4+
name: {{ include "starter-kit.fullname" . }}
55
labels:
6-
app.kubernetes.io/name: {{ include "starter-kit.appname" . }}
6+
app.kubernetes.io/name: {{ include "starter-kit.name" . }}
77
helm.sh/chart: {{ include "starter-kit.chart" . }}
88
app.kubernetes.io/instance: {{ .Release.Name }}
99
app: {{ .Release.Name }}

chart/base/values.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ global: {}
66
replicaCount: 1
77
logLevel: "debug"
88

9-
connectsTo: inventory-management-bff-solution
10-
119
image:
1210
repository: replace
1311
tag: replace
@@ -30,9 +28,6 @@ ingress:
3028
enabled: false
3129
# web or app - https://cloud.ibm.com/docs/services/appid?topic=appid-kube-auth
3230
requestType: web
33-
binding:
34-
name: ""
35-
namespace: ""
3631

3732
# host: hello
3833
namespaceInHost: true
@@ -45,4 +40,8 @@ vcsInfo:
4540
repoUrl: ""
4641
branch: ""
4742

48-
partOf: "inventory"
43+
partOf: inventory
44+
45+
connectsTo: inventory-management-bff-solution
46+
47+
runtime: nodejs

pipeline.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
version: 1.1.1
2+
name: nodejs
3+
runtime: nodejs
4+
build-tool: node

0 commit comments

Comments
 (0)