UNCLASSIFIED - NO CUI

Fix ExternalSecret ClusterSecretStore reuse

Description

This MR fixes an issue where the ExternalSecret name was also being used as the ClusterSecretStore reference, preventing multiple ExternalSecrets from reusing the same ClusterSecretStore.

A new clusterSecretStoreName value has been added to externalSecretsConfiguration.secretList so the ClusterSecretStore reference can be configured independently.

The existing $val.name is kept as the default to maintain backward compatibility for configurations that do not specify clusterSecretStoreName.

Changes

  • Added clusterSecretStoreName to externalSecretsConfiguration.secretList.
  • Updated the ExternalSecret template to use clusterSecretStoreName for secretStoreRef.name.
  • Added fallback to $val.name to preserve existing behavior.
  • Validated multiple ExternalSecrets can reference the same ClusterSecretStore.
  • Validated existing configurations without clusterSecretStoreName continue to work.

Validation

Screenshot_2026-09-10_at_12.21.38_PM

Screenshot_2026-09-10_at_12.25.04_PM

Screenshot_2026-09-10_at_12.25.27_PM

Validated through a Big Bang deployment that multiple ExternalSecret resources can reference the same ClusterSecretStore.

Screenshot_2026-09-10_at_12.48.22_PM

Also verified backward compatibility: when clusterSecretStoreName is not specified, the ExternalSecret continues to use its name value for secretStoreRef.name.

Screenshot_2026-09-10_at_12.49.09_PM

Linked Issue

Closes #118 (closed)

Upgrade Notices

N/A

Edited by PRADIP PATHAK

Merge request reports

Loading
Loading