Skip to content

Commit

Permalink
Merge branch 'main' into update-permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
vishal-chdhry authored Feb 1, 2024
2 parents c7cdcc1 + 6675063 commit d57a4e1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/reports-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ helm install reports-server --namespace reports-server --create-namespace report
| service.type | string | `"ClusterIP"` | Service type |
| service.port | int | `443` | Service port |
| config.debug | bool | `false` | Enable debug (to use inmemorydatabase) |
| config.db.host | string | `"reports-server-postgresql"` | Database host |
| config.db.host | string | `""` | Database host |
| config.db.name | string | `"reportsdb"` | Database name |
| config.db.user | string | `"postgres"` | Database user |
| config.db.password | string | `"reports"` | Database password |
Expand Down
2 changes: 2 additions & 0 deletions charts/reports-server/templates/api-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
namespace: {{ $.Release.Namespace }}
labels:
{{- include "reports-server.labels" . | nindent 4 }}
kube-aggregator.kubernetes.io/automanaged: "false"
spec:
group: wgpolicyk8s.io
groupPriorityMinimum: 100
Expand All @@ -24,6 +25,7 @@ metadata:
namespace: {{ $.Release.Namespace }}
labels:
{{- include "reports-server.labels" . | nindent 4 }}
kube-aggregator.kubernetes.io/automanaged: "false"
spec:
group: reports.kyverno.io
groupPriorityMinimum: 100
Expand Down
5 changes: 5 additions & 0 deletions charts/reports-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "reports-server.fullname" . }}
namespace: {{ $.Release.Namespace }}
labels:
{{- include "reports-server.labels" . | nindent 4 }}
spec:
Expand Down Expand Up @@ -39,7 +40,11 @@ spec:
{{- if .Values.config.debug }}
- --debug
{{- else }}
{{- if .Values.config.db.host }}
- --dbhost={{ .Values.config.db.host }}
{{- else }}
- --dbhost={{ $.Release.Name }}-postgresql.{{ $.Release.Namespace }}
{{- end }}
- --dbname={{ .Values.config.db.name }}
- --dbuser={{ .Values.config.db.user }}
- --dbpassword={{ .Values.config.db.password }}
Expand Down
2 changes: 1 addition & 1 deletion charts/reports-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ config:
db:

# -- Database host
host: reports-server-postgresql
host: ""

# -- Database name
name: reportsdb
Expand Down

0 comments on commit d57a4e1

Please sign in to comment.