Skip to content

Commit

Permalink
Update hawkBit to Application Version 0.5.0 (#549)
Browse files Browse the repository at this point in the history
* update image version
fix readiness probes
fix default jdbc driver

Signed-off-by: Lukas Harzenetter <[email protected]>

* update test to use access userinfo

* use curl

* add protocol to test

* use quotes

* try using fullname override

* reformat curl

* use values for creating admin request

* remove name overide

---------

Signed-off-by: Lukas Harzenetter <[email protected]>
  • Loading branch information
lharzenetter authored Oct 7, 2024
1 parent 8806852 commit f766511
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
4 changes: 2 additions & 2 deletions charts/hawkbit/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
# SPDX-License-Identifier: EPL-2.0
---
apiVersion: v2
version: 1.6.1
appVersion: "0.3.0M6-mysql"
version: 1.7.0
appVersion: "0.5.0-mysql"
description: |
Eclipse hawkBit™ is a domain independent back-end framework for rolling out software updates
to constrained edge devices as well as more powerful controllers and gateways connected to
Expand Down
6 changes: 3 additions & 3 deletions charts/hawkbit/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ spec:
{{- if .Values.env.springDatasourceUrl }}
value: "{{ .Values.env.springDatasourceUrl }}"
{{- else }}
value: "jdbc:mysql://{{ if .Values.mysql.enabled }}{{ .Release.Name }}-mysql{{ else }}{{ .Values.env.springDatasourceHost }}{{ end }}:3306/{{ .Values.env.springDatasourceDb }}"
value: "jdbc:mariadb://{{ if .Values.mysql.enabled }}{{ .Release.Name }}-mysql{{ else }}{{ .Values.env.springDatasourceHost }}{{ end }}:3306/{{ .Values.env.springDatasourceDb }}"
{{- end }}
- name: "SPRING_APPLICATION_JSON"
valueFrom:
Expand Down Expand Up @@ -70,13 +70,13 @@ spec:
protocol: TCP
livenessProbe:
httpGet:
path: /VAADIN/themes/hawkbit/favicon.ico
path: /swagger-ui/index.html
port: http
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
readinessProbe:
httpGet:
path: /VAADIN/themes/hawkbit/favicon.ico
path: /swagger-ui/index.html
port: http
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
Expand Down
12 changes: 8 additions & 4 deletions charts/hawkbit/templates/tests/test-connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ metadata:
"helm.sh/hook": test-success
spec:
containers:
- name: wget
image: busybox
command: ['wget']
args: ['{{ include "hawkbit.fullname" . }}:{{ .Values.service.port }}']
- name: curl
image: curlimages/curl
command: ['curl']
args: [
"-X", "GET",
"-u", "{{ .Values.config.application.spring.security.user.name }}:{{ trimPrefix "{noop}" .Values.config.secrets.spring.security.user.password }}",
"http://{{ include "hawkbit.fullname" . }}:{{ .Values.service.port }}/rest/v1/userinfo"
]
restartPolicy: Never
2 changes: 1 addition & 1 deletion charts/hawkbit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

image:
repository: "hawkbit/hawkbit-update-server"
tag: 0.3.0M6-mysql
tag: 0.5.0-mysql
pullPolicy: IfNotPresent

replicaCount: 1
Expand Down

0 comments on commit f766511

Please sign in to comment.