File tree Expand file tree Collapse file tree
applications/accounts/deploy/resources Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 }}
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 ]
You can’t perform that action at this time.
0 commit comments