Skip to content

Commit

Permalink
fix openshift routes
Browse files Browse the repository at this point in the history
Signed-off-by: Dirk Van Haerenborgh <[email protected]>
  • Loading branch information
vhdirk committed Dec 12, 2022
1 parent ffe258f commit a535abb
Show file tree
Hide file tree
Showing 20 changed files with 24 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ spec:
termination: passthrough
to:
kind: Service
name: {{ printf "%s-dispatch-router-ext" ( include "hono.fullname" . ) }}
name: {{ printf "%s-dispatch-router-ext" ( include "hono.fullname" $args ) }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ metadata:
type: Opaque
stringData:
"qdrouterd.json": |
{{- $_ := set $ "dot" $args.dot }}
{{- tpl ( .Files.Get "config/router/qdrouterd.json" ) . | nindent 4 }}
"broker-password": {{ .Values.amqpMessagingNetworkExample.broker.saslPassword }}
{{- end }}
3 changes: 2 additions & 1 deletion charts/hono/templates/example-data-grid/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ metadata:
{{- include "hono.metadata" $args | nindent 2 }}
data:
hono-data-grid.xml: |
{{- tpl ( .Files.Get "config/infinispan/hono-data-grid.xml" ) . | nindent 4 }}
{{- $_ := set $ "dot" $args.dot }}
{{- tpl ( .Files.Get "config/infinispan/hono-data-grid.xml" ) $ | nindent 4 }}
users.properties: |
{{ printf "%s=%s" .Values.dataGridExample.authUsername .Values.dataGridExample.authPassword }}
public-groups.properties: |
Expand Down
2 changes: 1 addition & 1 deletion charts/hono/templates/example-data-grid/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,5 @@ spec:
volumes:
- name: conf
configMap:
name: {{ printf "%s-%s-conf" (include "hono.fullname" .) $args.name }}
name: {{ printf "%s-%s-conf" (include "hono.fullname" $args) $args.name }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ spec:
targetPort: amqp
to:
kind: Service
name: {{ printf "%s-adapter-amqp" ( include "hono.fullname" . ) }}
name: {{ printf "%s-adapter-amqp" ( include "hono.fullname" $args ) }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ spec:
termination: passthrough
to:
kind: Service
name: {{ printf "%s-adapter-amqp" ( include "hono.fullname" . ) }}
name: {{ printf "%s-adapter-amqp" ( include "hono.fullname" $args ) }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ spec:
targetPort: http
to:
kind: Service
name: {{ printf "%s-adapter-http" ( include "hono.fullname" . ) }}
name: {{ printf "%s-adapter-http" ( include "hono.fullname" $args ) }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ spec:
termination: passthrough
to:
kind: Service
name: {{ printf "%s-adapter-http" ( include "hono.fullname" . ) }}
name: {{ printf "%s-adapter-http" ( include "hono.fullname" $args ) }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ spec:
targetPort: http
to:
kind: Service
name: {{ printf "%s-adapter-lora" ( include "hono.fullname" . ) }}
name: {{ printf "%s-adapter-lora" ( include "hono.fullname" $args ) }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ spec:
termination: passthrough
to:
kind: Service
name: {{ printf "%s-adapter-lora" ( include "hono.fullname" . ) }}
name: {{ printf "%s-adapter-lora" ( include "hono.fullname" $args ) }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ spec:
targetPort: mqtt
to:
kind: Service
name: {{ printf "%s-adapter-mqtt" ( include "hono.fullname" . ) }}
name: {{ printf "%s-adapter-mqtt" ( include "hono.fullname" $args ) }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ spec:
termination: passthrough
to:
kind: Service
name: {{ printf "%s-adapter-mqtt" ( include "hono.fullname" . ) }}
name: {{ printf "%s-adapter-mqtt" ( include "hono.fullname" $args ) }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ spec:
termination: passthrough
to:
kind: Service
name: {{ printf "%s-service-auth" ( include "hono.fullname" . ) }}
name: {{ printf "%s-service-auth" ( include "hono.fullname" $args ) }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ metadata:
{{- include "hono.metadata" $args | nindent 2 }}
roleRef:
kind: Role
name: {{ printf "%s-%s" ( include "hono.fullname" . ) $args.name | quote }}
name: {{ printf "%s-%s" ( include "hono.fullname" $args ) $args.name | quote }}
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
name: {{ printf "%s-%s" ( include "hono.fullname" . ) $args.name | quote }}
name: {{ printf "%s-%s" ( include "hono.fullname" $args ) $args.name | quote }}
namespace: {{ .Release.Namespace }}
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ spec:
targetPort: 5671
to:
kind: Service
name: {{ printf "%s-service-command-router" ( include "hono.fullname" . ) }}
name: {{ printf "%s-service-command-router" ( include "hono.fullname" $args ) }}
{{end}}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ stringData:
{{- if .Values.commandRouterService.hono.auth }}
{{- .Values.commandRouterService.hono.auth | toYaml | nindent 8 }}
{{- else }}
host: {{ printf "%s-service-auth" ( include "hono.fullname" . ) | quote }}
host: {{ printf "%s-service-auth" ( include "hono.fullname" $args ) | quote }}
port: 5671
trustStorePath: "/opt/hono/tls/ca.crt"
hostnameVerificationRequired: false
Expand All @@ -56,7 +56,7 @@ stringData:
{{- .Values.dataGridSpec | toYaml | nindent 12 }}
{{- else if .Values.dataGridExample.enabled }}
remote:
{{- $serverName := printf "%s-data-grid" ( include "hono.fullname" . ) }}
{{- $serverName := printf "%s-data-grid" ( include "hono.fullname" $args ) }}
serverList: {{ printf "%s:11222" $serverName | quote }}
authServerName: {{ $serverName | quote }}
authUsername: {{ .Values.dataGridExample.authUsername | quote }}
Expand All @@ -82,7 +82,7 @@ stringData:
{{- if .Values.amqpMessagingNetworkExample.enabled }}
name: {{ printf "Hono %s" $args.component | quote }}
amqpHostname: hono-internal
host: {{ ( include "hono.fullname" . ) }}-dispatch-router
host: {{ ( include "hono.fullname" $args ) }}-dispatch-router
port: 5673
keyPath: {{ .Values.adapters.commandAndControlSpec.keyPath }}
certPath: {{ .Values.adapters.commandAndControlSpec.certPath }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ spec:
termination: passthrough
to:
kind: Service
name: {{ printf "%s-service-device-registry" ( include "hono.fullname" . ) }}
name: {{ printf "%s-service-device-registry" ( include "hono.fullname" $args ) }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ spec:
targetPort: http
to:
kind: Service
name: {{ printf "%s-service-device-registry" ( include "hono.fullname" . ) }}
name: {{ printf "%s-service-device-registry" ( include "hono.fullname" $args ) }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ spec:
termination: passthrough
to:
kind: Service
name: {{ printf "%s-service-device-registry" ( include "hono.fullname" . ) }}
name: {{ printf "%s-service-device-registry" ( include "hono.fullname" $args ) }}
{{- end }}
2 changes: 1 addition & 1 deletion charts/hono/templates/prometheus/prometheus-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ data:
- {{ .Release.Namespace }}
selectors:
- role: pod
label: {{ printf "app.kubernetes.io/instance=%s,helm.sh/chart=%s" ( include "hono.fullname" . ) ( include "hono.chart" . ) }}
label: {{ printf "app.kubernetes.io/instance=%s,helm.sh/chart=%s" ( include "hono.fullname" $args ) ( include "hono.chart" $args ) }}
relabel_configs:
- source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
Expand Down

0 comments on commit a535abb

Please sign in to comment.