Skip to content

Commit 169de78

Browse files
committed
CH-169 try fix keycloak starting issue
1 parent 423145a commit 169de78

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

applications/accounts/deploy/resources/realm.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
"users": [
4747
{{- range $j, $app := .Values.apps }}
4848
{{- if (hasKey $app.harness "accounts") }}
49-
{{- range $i, $user := $app.harness.accounts.users }}{{if (add $i $j)}},{{end}}
49+
{{if $j}},{{end}}
50+
{{- range $i, $user := $app.harness.accounts.users }}{{if $i}},{{end}}
5051
{{ include "deploy_accounts_utils.user" (dict "root" $ "app" $app "user" $user) }}
5152
{{- end }}
5253
{{- end }}
@@ -82,11 +83,12 @@
8283
}
8384
],
8485
"client": {
85-
{{- range $j,$app := .Values.apps }}
86+
{{- range $j, $app := .Values.apps }}
8687
{{- if (hasKey $app.harness "accounts") }}
88+
{{if $j}},{{end}}
8789
{{ $app.harness.name | quote }}: [
8890
{{- range $i, $role := $app.harness.accounts.roles }}
89-
{{if (add $i $j)}},{{end}}
91+
{{if $i}},{{end}}
9092
{{ include "deploy_accounts_utils.role" (dict "root" $ "app" $app "role" $role) }}
9193
{{- end }}
9294
]

0 commit comments

Comments
 (0)