Skip to content

Commit

Permalink
make extraManifest independant from ui
Browse files Browse the repository at this point in the history
  • Loading branch information
enneitex committed Dec 24, 2024
1 parent 8c6317b commit 43016b0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
3 changes: 2 additions & 1 deletion charts/policy-reporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,6 @@ Open `http://localhost:8082/` in your browser.
| ui.serviceAccount.automount | bool | `true` | Enable ServiceAccount automount |
| ui.serviceAccount.annotations | object | `{}` | Annotations for the ServiceAccount |
| ui.serviceAccount.name | string | `""` | The ServiceAccount name |
| ui.extraManifests | list | `[]` | list of extra manifests |
| ui.sidecarContainers | object | `{}` | Add sidecar containers to the UI deployment sidecarContainers: oauth-proxy: image: quay.io/oauth2-proxy/oauth2-proxy:v7.6.0 args: - --upstream=http://127.0.0.1:8080 - --http-address=0.0.0.0:8081 - ... ports: - containerPort: 8081 name: oauth-proxy protocol: TCP resources: {} |
| ui.podAnnotations | object | `{}` | Additional annotations to add to each pod |
| ui.podLabels | object | `{}` | Additional labels to add to each pod |
Expand Down Expand Up @@ -590,6 +589,8 @@ Open `http://localhost:8082/` in your browser.
| monitoring.policyReportOverview.failingTimeline.height | int | `10` | |
| monitoring.policyReportOverview.failingPolicyRuleTable.height | int | `10` | |
| monitoring.policyReportOverview.failingClusterPolicyRuleTable.height | int | `10` | |
| extraManifests | list | `[]` | list of extra manifests |


## Source Code

Expand Down
6 changes: 2 additions & 4 deletions charts/policy-reporter/templates/ui/extra-manifests.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{{- if .Values.ui.enabled -}}
{{ range .Values.ui.extraManifests }}
{{ range .Values.extraManifests }}
---
{{ tpl . $ }}
{{ end }}
{{- end }}
{{ end }}
5 changes: 3 additions & 2 deletions charts/policy-reporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -986,8 +986,6 @@ ui:
# -- The ServiceAccount name
name: ""

# -- list of extra manifests
extraManifests: []

# -- Add sidecar containers to the UI deployment
# sidecarContainers:
Expand Down Expand Up @@ -1659,3 +1657,6 @@ monitoring:
height: 10
failingClusterPolicyRuleTable:
height: 10

# -- list of extra manifests
extraManifests: []

0 comments on commit 43016b0

Please sign in to comment.