Skip to content

Commit ec5b8c1

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

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

applications/accounts/deploy/resources/realm.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@
4747
{{- $j := 0}}
4848
{{- range $app := .Values.apps }}
4949
{{- if (hasKey $app.harness "accounts") }}
50-
{{- $j := add1 $j }}
5150
{{- range $i, $user := $app.harness.accounts.users }}{{if or $i $j}},{{end}}
5251
{{ include "deploy_accounts_utils.user" (dict "root" $ "app" $app "user" $user) }}
5352
{{- end }}
5453
{{- end }}
54+
{{- $j := add1 $j }}
5555
{{- end }}
5656
],
5757
"roles": {
@@ -87,13 +87,14 @@
8787
{{- $k := 0}}
8888
{{- range $app := .Values.apps }}
8989
{{- if (hasKey $app.harness "accounts") }}
90-
{{- $k = add1 $k }}
90+
9191
{{ $app.harness.name | quote }}: [
9292
{{- range $i, $role := $app.harness.accounts.roles }}
9393
{{if or $i $k}},{{end}}
9494
{{ include "deploy_accounts_utils.role" (dict "root" $ "app" $app "role" $role) }}
9595
{{- end }}
9696
]
97+
{{- $k = add1 $k }}
9798
{{- end }}
9899
{{- end }}
99100
}

0 commit comments

Comments
 (0)