Skip to content

Commit

Permalink
Removing redundant namespace param.
Browse files Browse the repository at this point in the history
  • Loading branch information
anathoodell committed Dec 19, 2024
1 parent cfb6a41 commit fee6efc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions controllers/csm_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1335,7 +1335,7 @@ func (r *ContainerStorageModuleReconciler) PreChecks(ctx context.Context, cr *cs
return fmt.Errorf("failed powerflex validation: %v", err)
}
// zoning initially applies only to pflex
err = r.ZoneValidation(ctx, cr, namespace)
err = r.ZoneValidation(ctx, cr)
if err != nil {
return fmt.Errorf("error during zone validation: %v", err)
}
Expand Down Expand Up @@ -1529,9 +1529,9 @@ func (r *ContainerStorageModuleReconciler) GetK8sClient() kubernetes.Interface {
return r.K8sClient
}

func (r *ContainerStorageModuleReconciler) ZoneValidation(ctx context.Context, cr *csmv1.ContainerStorageModule, namespace string) error {
func (r *ContainerStorageModuleReconciler) ZoneValidation(ctx context.Context, cr *csmv1.ContainerStorageModule) error {

err := drivers.ValidateZones(ctx, cr, r.Client, namespace)
err := drivers.ValidateZones(ctx, cr, r.Client)
if err != nil {
return fmt.Errorf("ZoneValidation failed with error: %v", err)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/drivers/powerflex.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ func ModifyPowerflexCR(yamlString string, cr csmv1.ContainerStorageModule, fileT
return yamlString
}

func ValidateZones(ctx context.Context, cr *csmv1.ContainerStorageModule, ct client.Client, namespace string) error {
func ValidateZones(ctx context.Context, cr *csmv1.ContainerStorageModule, ct client.Client) error {
secretName := cr.Name + "-config"
err := ValidateZonesInSecret(ctx, ct, cr.Namespace, secretName)
return err
Expand Down

0 comments on commit fee6efc

Please sign in to comment.