1
0
Fork 0
mirror of https://github.com/external-secrets/external-secrets.git synced 2024-12-14 11:57:59 +00:00

Fix scaleway config validation in ClusterSecretStore (#2247)

Signed-off-by: Iavael <iavael@users.noreply.github.com>
This commit is contained in:
Iavael 2023-04-23 01:14:10 +03:00 committed by GitHub
parent d605a5b450
commit d79b068dd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}