Skip to content

Commit

Permalink
Remove auth
Browse files Browse the repository at this point in the history
  • Loading branch information
Sahiba-Gupta committed Dec 18, 2024
1 parent f54c83a commit 5c284f9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
14 changes: 0 additions & 14 deletions pkg/drivers/powermax.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ func PrecheckPowerMax(ctx context.Context, cr *csmv1.ContainerStorageModule, ope
log := logger.GetLogger(ctx)
// Check for default secret only
// Array specific will be authenticated in csireverseproxy
cred := cr.Name + "-creds"
if cr.Spec.Driver.AuthSecret != "" {
cred = cr.Spec.Driver.AuthSecret
}

// Check if driver version is supported by doing a stat on a config file
configFilePath := fmt.Sprintf("%s/driverconfig/powermax/%s/upgrade-path.yaml", operatorConfig.ConfigDirectory, cr.Spec.Driver.ConfigVersion)
Expand All @@ -75,16 +71,6 @@ func PrecheckPowerMax(ctx context.Context, cr *csmv1.ContainerStorageModule, ope
return fmt.Errorf("%s %s not supported", csmv1.PowerMax, cr.Spec.Driver.ConfigVersion)
}

if cred != "" {
found := &corev1.Secret{}
err := ct.Get(ctx, types.NamespacedName{Name: cred, Namespace: cr.GetNamespace()}, found)
if err != nil {
log.Error(err, "Failed query for secret ", cred)
if errors.IsNotFound(err) {
return fmt.Errorf("failed to find secret %s", cred)
}
}
}
kubeletConfigDirFound := false
for _, env := range cr.Spec.Driver.Common.Envs {
if env.Name == "KUBELET_CONFIG_DIR" {
Expand Down
1 change: 0 additions & 1 deletion samples/storage_csm_powermax_v2130.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ spec:
# Default value: 2
replicas: 2
# Default credential secret for Powermax, if not set it to ""
authSecret: powermax-creds
dnsPolicy: ClusterFirstWithHostNet
forceRemoveDriver: true
common:
Expand Down

0 comments on commit 5c284f9

Please sign in to comment.