UNCLASSIFIED - NO CUI

feat(console): add extraEnv for appending console container env vars

Summary

Adds a first-class console.extraEnv values key so environment variables can be appended to the Twistlock console container without a Kustomize post-renderer. Prisma ships a set of CORE_* tuning variables (log level, worker counts, retention toggles, feed-broadcast pacing) that the console warns about on every startup when unset. Today the only in-chart path to silence them is postRenderers.kustomize.patches with one JSON-Patch op: add per variable. The new console.extraEnv list is rendered via toYaml after the three built-in env vars and accepts plain name / value pairs or structured valueFrom / secretKeyRef references.

Follows the extraEnv method used by sibling BigBang packages (elasticsearch-kibana, kiali). Default is [], so rendered output is unchanged for deployments that do not opt in. Chart bumped 0.25.0-bb.0 -> 0.25.0-bb.1.

Relevant logs/screenshots

Helm-unittest suite for the new feature passes:

$ helm unittest chart -f 'tests/console_deployment_test.yaml'
 PASS  test console deployment extraEnv  chart/tests/console_deployment_test.yaml

Charts:      1 passed, 1 total
Test Suites: 1 passed, 1 total
Tests:       3 passed, 3 total

Example consumer usage after this MR lands:

twistlock:
  values:
    console:
      extraEnv:
        - name: CORE_MIN_LOG_LEVEL
          value: "WARNING"
        - name: CORE_HOSTS_RETENTION_PERIOD_ENABLED
          value: "false"

Linked Issue

issue

Upgrade Notices

No action required for existing deployments. console.extraEnv defaults to [] and the rendered console Deployment is identical to 0.25.0-bb.0 except for the expected helm.sh/chart label bump. Existing postRenderers.kustomize.patches blocks used to silence CORE_* warnings can be replaced with console.extraEnv. Both paths continue to work, so migration can happen on any schedule.

Edited by Carl Lawson

Merge request reports

Loading
Loading