Loading
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.basewith individual Gluon helpers so each script-test resource is emitted once. - Preserved ESO’s extra Role rule for
podsandsecrets. - Added a
bbtests.enabledguard 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=trueand ran it throughkustomize build; no duplicate resource ID error. - Default render no longer emits the script-test hook resources.
Linked Issue
Upgrade Notices
N/A