From d1d6a352f8b128f4a823a317cfbf5573cb7cfab1 Mon Sep 17 00:00:00 2001 From: catttam Date: Wed, 21 Feb 2024 09:25:47 +0100 Subject: [PATCH 1/2] Test delete repeated MinIO credentials --- cmd/apply.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/apply.go b/cmd/apply.go index 7872045..b703c03 100644 --- a/cmd/apply.go +++ b/cmd/apply.go @@ -110,10 +110,10 @@ func applyFunc(cmd *cobra.Command, args []string) error { // Initialize map svc.StorageProviders.MinIO = map[string]*types.MinIOProvider{} } - for cn, m := range minioProviders { - svc.StorageProviders.MinIO[cn] = m - } - + /* for cn, m := range minioProviders { + svc.StorageProviders.MinIO[cn] = m + } + */ // Check if service exists in cluster in order to create or edit it if exists := serviceExists(svc, conf.Oscar[clusterName]); exists { msg = fmt.Sprintf(" Editing service \"%s\" in cluster \"%s\"", svc.Name, clusterName) From 2bca41516d950c6d1ae53f76a2759f46cb6ed834 Mon Sep 17 00:00:00 2001 From: catttam Date: Wed, 21 Feb 2024 09:58:56 +0100 Subject: [PATCH 2/2] Deleted repetead MinIO credentials on service creation --- cmd/apply.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cmd/apply.go b/cmd/apply.go index b703c03..8d3923a 100644 --- a/cmd/apply.go +++ b/cmd/apply.go @@ -110,10 +110,7 @@ func applyFunc(cmd *cobra.Command, args []string) error { // Initialize map svc.StorageProviders.MinIO = map[string]*types.MinIOProvider{} } - /* for cn, m := range minioProviders { - svc.StorageProviders.MinIO[cn] = m - } - */ + // Check if service exists in cluster in order to create or edit it if exists := serviceExists(svc, conf.Oscar[clusterName]); exists { msg = fmt.Sprintf(" Editing service \"%s\" in cluster \"%s\"", svc.Name, clusterName)