|
@@ -134,11 +134,11 @@ func validateSecretRef(store esv1beta1.GenericStore, ref *esv1beta1.ScalewayProv
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func doesConfigDependOnNamespace(cfg *esv1beta1.ScalewayProvider) bool {
|
|
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
|
|
return true
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if cfg.SecretKey.SecretRef != nil && cfg.SecretKey.SecretRef.Namespace != nil {
|
|
|
|
|
|
|
+ if cfg.SecretKey.SecretRef != nil && cfg.SecretKey.SecretRef.Namespace == nil {
|
|
|
return true
|
|
return true
|
|
|
}
|
|
}
|
|
|
|
|
|