@@ -160,7 +160,7 @@ func GetRemoteStorageClient(ctx context.Context, client splcommon.ControllerClie
160160 secretAccessKey = ""
161161 } else {
162162 // Get credentials through the secretRef
163- remoteDataClientSecret , err := splutil .GetSecretByName (ctx , client , cr .GetNamespace (), cr . GetName (), appSecretRef )
163+ remoteDataClientSecret , err := splutil .GetSecretByName (ctx , client , cr .GetNamespace (), appSecretRef )
164164 if err != nil {
165165 // Emit event for missing secret
166166 if k8serrors .IsNotFound (err ) {
@@ -420,7 +420,7 @@ func GetSmartstoreRemoteVolumeSecrets(ctx context.Context, volume enterpriseApi.
420420 // Get event publisher from context
421421 eventPublisher := GetEventPublisher (ctx , cr )
422422
423- namespaceScopedSecret , err := splutil .GetSecretByName (ctx , client , cr .GetNamespace (), cr . GetName (), volume .SecretRef )
423+ namespaceScopedSecret , err := splutil .GetSecretByName (ctx , client , cr .GetNamespace (), volume .SecretRef )
424424 if err != nil {
425425 // Emit event for missing secret
426426 if k8serrors .IsNotFound (err ) {
@@ -456,7 +456,7 @@ func GetSmartstoreRemoteVolumeSecrets(ctx context.Context, volume enterpriseApi.
456456
457457// GetQueueRemoteVolumeSecrets is used to retrieve access key and secrete key for Index & Ingestion separation
458458func GetQueueRemoteVolumeSecrets (ctx context.Context , volume enterpriseApi.VolumeSpec , client splcommon.ControllerClient , cr splcommon.MetaObject ) (string , string , string , error ) {
459- namespaceScopedSecret , err := splutil .GetSecretByName (ctx , client , cr .GetNamespace (), cr . GetName (), volume .SecretRef )
459+ namespaceScopedSecret , err := splutil .GetSecretByName (ctx , client , cr .GetNamespace (), volume .SecretRef )
460460 if err != nil {
461461 return "" , "" , "" , err
462462 }
0 commit comments