From 5b1b647f01ae6b45878260a06ee988bb468d1cde Mon Sep 17 00:00:00 2001 From: netanelC Date: Wed, 13 Aug 2025 14:25:02 +0300 Subject: [PATCH 1/2] helm(opa): make some values constant --- helm/charts/opa/config/opa.yaml | 6 +++--- helm/charts/opa/values.yaml | 9 +-------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/helm/charts/opa/config/opa.yaml b/helm/charts/opa/config/opa.yaml index 02facd83..ff52869f 100644 --- a/helm/charts/opa/config/opa.yaml +++ b/helm/charts/opa/config/opa.yaml @@ -14,7 +14,7 @@ bundles: {{ if .Values.status.enabled }} status: console: {{ .Values.status.console }} - prometheus: {{ .Values.status.metrics }} + prometheus: true {{ end }} decision_logs: @@ -31,8 +31,8 @@ distributed_tracing: storage: disk: - auto_create: {{ .Values.storage.autoCreate }} - directory: {{ .Values.storage.directory }} + auto_create: true + directory: /tmp/opa labels: {{- range $key, $value := .Values.labels }} diff --git a/helm/charts/opa/values.yaml b/helm/charts/opa/values.yaml index 8eaa3236..e28a78e8 100644 --- a/helm/charts/opa/values.yaml +++ b/helm/charts/opa/values.yaml @@ -42,13 +42,10 @@ additionalPodAnnotations: {} s3: endpoint: http://localhost:9000/opa secretName: s3-secret - awsRegion: ' ' filePath: '/dev.tar.gz' status: - enabled: true - console: true - metrics: true + console: false decisionLogs: console: true @@ -60,10 +57,6 @@ tracing: endpoint: localhost:4317 # samplePercentage: 1 # Default is 100% -storage: - autoCreate: true - directory: /tmp/opa - resources: enabled: true value: From fed734619771dfe958967190f08943c76f28958c Mon Sep 17 00:00:00 2001 From: netanelC Date: Wed, 13 Aug 2025 14:30:50 +0300 Subject: [PATCH 2/2] fix: remove if --- helm/charts/opa/config/opa.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/helm/charts/opa/config/opa.yaml b/helm/charts/opa/config/opa.yaml index ff52869f..fa658c29 100644 --- a/helm/charts/opa/config/opa.yaml +++ b/helm/charts/opa/config/opa.yaml @@ -11,11 +11,9 @@ bundles: service: s3 resource: {{ .Values.s3.filePath }} -{{ if .Values.status.enabled }} status: console: {{ .Values.status.console }} prometheus: true -{{ end }} decision_logs: console: {{ .Values.decisionLogs.console }}