Skip to content

Commit

Permalink
update UI template
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Jogeleit <[email protected]>
  • Loading branch information
fjogeleit committed Sep 9, 2023
1 parent 53c7358 commit 93b7d59
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/policy-reporter/charts/ui/templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ data:
apiConfig:
logging: {{ .Values.api.logging }}
secretRef: {{ .Values.global.basicAuth.secretRef }}
basicAuth:
username: {{ .Values.global.basicAuth.username }}
password: {{ .Values.global.basicAuth.password }}
password: {{ .Values.global.basicAuth.password }}
secretRef: {{ .Values.global.basicAuth.secretRef }}
6 changes: 5 additions & 1 deletion charts/policy-reporter/charts/ui/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,17 @@ resources: {}

serviceAccount:
# Specifies whether a service account should be created
create: false
create: true
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ""

# Create secret reader role and rolebinding
rbac:
enabled: true

service:
enabled: true
## configuration of service
Expand Down
2 changes: 2 additions & 0 deletions pkg/config/target_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ func (f *TargetFactory) UIClient(config *UI) target.Client {
return nil
}

setFallback(&config.Name, "UI")

zap.L().Info("UI configured")

return ui.NewClient(ui.Options{
Expand Down

0 comments on commit 93b7d59

Please sign in to comment.