Skip to content

Commit 29d9cef

Browse files
committed
CH-169 try fix keycloak starting issue
1 parent 169de78 commit 29d9cef

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

applications/accounts/deploy/resources/realm.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,11 @@
4444
"resetPasswordAllowed": true,
4545
"editUsernameAllowed": true,
4646
"users": [
47-
{{- range $j, $app := .Values.apps }}
47+
{{- $j := 0}}
48+
{{- range $app := .Values.apps }}
4849
{{- if (hasKey $app.harness "accounts") }}
49-
{{if $j}},{{end}}
50-
{{- range $i, $user := $app.harness.accounts.users }}{{if $i}},{{end}}
50+
{{- $j := add1 $j }}
51+
{{- range $i, $user := $app.harness.accounts.users }}{{if or $i $j}},{{end}}
5152
{{ include "deploy_accounts_utils.user" (dict "root" $ "app" $app "user" $user) }}
5253
{{- end }}
5354
{{- end }}
@@ -83,12 +84,13 @@
8384
}
8485
],
8586
"client": {
86-
{{- range $j, $app := .Values.apps }}
87+
{{- $k := 0}}
88+
{{- range $app := .Values.apps }}
8789
{{- if (hasKey $app.harness "accounts") }}
88-
{{if $j}},{{end}}
90+
{{- $k = add1 $k }}
8991
{{ $app.harness.name | quote }}: [
9092
{{- range $i, $role := $app.harness.accounts.roles }}
91-
{{if $i}},{{end}}
93+
{{if or $i $k}},{{end}}
9294
{{ include "deploy_accounts_utils.role" (dict "root" $ "app" $app "role" $role) }}
9395
{{- end }}
9496
]

0 commit comments

Comments
 (0)