From 43016b057c7ae0d74c934f54ed8adb686abd77ed Mon Sep 17 00:00:00 2001 From: Etienne Divet Date: Tue, 24 Dec 2024 17:15:18 +0100 Subject: [PATCH] make extraManifest independant from ui --- charts/policy-reporter/README.md | 3 ++- charts/policy-reporter/templates/ui/extra-manifests.yaml | 6 ++---- charts/policy-reporter/values.yaml | 5 +++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/charts/policy-reporter/README.md b/charts/policy-reporter/README.md index 46c261119..87f26648b 100644 --- a/charts/policy-reporter/README.md +++ b/charts/policy-reporter/README.md @@ -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 | @@ -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 diff --git a/charts/policy-reporter/templates/ui/extra-manifests.yaml b/charts/policy-reporter/templates/ui/extra-manifests.yaml index cb1b0b91a..9059d7d09 100644 --- a/charts/policy-reporter/templates/ui/extra-manifests.yaml +++ b/charts/policy-reporter/templates/ui/extra-manifests.yaml @@ -1,6 +1,4 @@ -{{- if .Values.ui.enabled -}} -{{ range .Values.ui.extraManifests }} +{{ range .Values.extraManifests }} --- {{ tpl . $ }} -{{ end }} -{{- end }} \ No newline at end of file +{{ end }} \ No newline at end of file diff --git a/charts/policy-reporter/values.yaml b/charts/policy-reporter/values.yaml index 13e523e60..0c01e6319 100644 --- a/charts/policy-reporter/values.yaml +++ b/charts/policy-reporter/values.yaml @@ -986,8 +986,6 @@ ui: # -- The ServiceAccount name name: "" - # -- list of extra manifests - extraManifests: [] # -- Add sidecar containers to the UI deployment # sidecarContainers: @@ -1659,3 +1657,6 @@ monitoring: height: 10 failingClusterPolicyRuleTable: height: 10 + +# -- list of extra manifests +extraManifests: [] \ No newline at end of file