preventing the cli from searching for identical secrets for pvpool and NSFS
@@ -279,7 +279,10 @@ func createCommon(cmd *cobra.Command, args []string, storeType nbv1.NSType, popu
populate(namespaceStore, secret)
- suggestedSecret := util.CheckForIdenticalSecretsCreds(secret, util.MapStorTypeToMandatoryProperties[nbv1.StoreType(namespaceStore.Spec.Type)])
+ var suggestedSecret *corev1.Secret = nil
+ if storeType != nbv1.NSStoreTypeNSFS {
+ suggestedSecret = util.CheckForIdenticalSecretsCreds(secret, util.MapStorTypeToMandatoryProperties[nbv1.StoreType(namespaceStore.Spec.Type)])
+ }
if suggestedSecret != nil {
var decision string
log.Printf("Found a Secret in the system with the same credentials (%s)", suggestedSecret.Name)
