UNCLASSIFIED - NO CUI

fix duplicate gluon script test resource rendering from flux

General MR

Summary

Root cause: test-script.yaml (line 1) chart/templates/tests/test-script.yaml:1 used gluon.tests.script-runner.base, which already emits script RBAC, then manually emitted script-sa, script-role, and script-rolebinding again. That produced the duplicate ServiceAccount/external-secrets-external-secrets-script-sa.

What changed:

  • Replaced script-runner.base with individual Gluon helpers so each script-test resource is emitted once.
  • Preserved ESO’s extra Role rule for pods and secrets.
  • Added a bbtests.enabled guard so script-test resources do not render when tests are disabled.
  • Added regression test script_test.yaml (line 1).
  • Also cleaned up stale files such as license, readme go template and values schema

Verification:

  • helm unittest /Users/coconnell/Repositories/external-secrets/chart -f 'tests/script_test.yaml' passed.
  • Rendered ESO with bbtests.enabled=true and ran it through kustomize build; no duplicate resource ID error.
  • Default render no longer emits the script-test hook resources.

Linked Issue

issue

Upgrade Notices

N/A

Merge request reports

Loading
Loading