mirror of
https://github.com/external-secrets/external-secrets.git
synced 2024-12-15 17:51:01 +00:00
Fix scaleway config validation in ClusterSecretStore (#2247)
Signed-off-by: Iavael <iavael@users.noreply.github.com>
This commit is contained in:
parent
d605a5b450
commit
d79b068dd5
1 changed files with 2 additions and 2 deletions
|
@ -134,11 +134,11 @@ func validateSecretRef(store esv1beta1.GenericStore, ref *esv1beta1.ScalewayProv
|
|||
}
|
||||
|
||||
func doesConfigDependOnNamespace(cfg *esv1beta1.ScalewayProvider) bool {
|
||||
if cfg.AccessKey.SecretRef != nil && cfg.AccessKey.SecretRef.Namespace != nil {
|
||||
if cfg.AccessKey.SecretRef != nil && cfg.AccessKey.SecretRef.Namespace == nil {
|
||||
return true
|
||||
}
|
||||
|
||||
if cfg.SecretKey.SecretRef != nil && cfg.SecretKey.SecretRef.Namespace != nil {
|
||||
if cfg.SecretKey.SecretRef != nil && cfg.SecretKey.SecretRef.Namespace == nil {
|
||||
return true
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue