Skip to content

Commit 21ebaea

Browse files
committed
Add routes and profile for OpenShift
1 parent bc36ebe commit 21ebaea

File tree

4 files changed

+58
-1
lines changed

4 files changed

+58
-1
lines changed

charts/hawkbit/Chart.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# SPDX-License-Identifier: EPL-2.0
1111
---
1212
apiVersion: v1
13-
version: 1.0.1
13+
version: 1.1.0
1414
appVersion: "0.3.0M6-mysql"
1515
description: |
1616
Eclipse hawkBit™ is a domain independent back-end framework for rolling out software updates
@@ -29,3 +29,5 @@ maintainers:
2929
3030
- name: axdotl
3131
32+
- name: ctron
33+

charts/hawkbit/profileOpenShift.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#
2+
# Copyright (c) 2020 Contributors to the Eclipse Foundation
3+
#
4+
# See the NOTICE file(s) distributed with this work for additional
5+
# information regarding copyright ownership.
6+
#
7+
# This program and the accompanying materials are made available under the
8+
# terms of the Eclipse Public License 2.0 which is available at
9+
# http://www.eclipse.org/legal/epl-2.0
10+
#
11+
# SPDX-License-Identifier: EPL-2.0
12+
#
13+
14+
securityContext:
15+
enabled: false
16+
17+
mysql:
18+
master:
19+
securityContext:
20+
enabled: false
21+
22+
rabbitmq:
23+
securityContext:
24+
enabled: false
25+
26+
routes:
27+
enabled: true

charts/hawkbit/templates/routes.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{{- if .Values.routes.enabled -}}
2+
{{- $fullName := include "hawkbit.fullname" . -}}
3+
apiVersion: route.openshift.io/v1
4+
kind: Route
5+
metadata:
6+
name: {{ $fullName }}
7+
labels:
8+
{{ include "hawkbit.labels" . | indent 4 }}
9+
{{- with .Values.routes.annotations }}
10+
annotations:
11+
{{- toYaml . | nindent 4 }}
12+
{{- end }}
13+
spec:
14+
port:
15+
targetPort: http
16+
to:
17+
kind: Service
18+
name: {{ include "hawkbit.fullname" . }}
19+
{{- if .Values.routes.tls }}
20+
tls:
21+
insecureEdgeTerminationPolicy: Redirect
22+
termination: edge
23+
{{- end }}
24+
{{- end }}

charts/hawkbit/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ ingress:
6969
# hosts:
7070
# - hawkbit.local
7171

72+
routes:
73+
enabled: false
74+
tls: true
75+
7276
# env vars for configuration
7377
env:
7478
springDatasourceHost: "hawkbit-mysql"

0 commit comments

Comments
 (0)