Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the powerflex driver deployment issue #737

Merged
merged 4 commits into from
Oct 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/drivers/powerflex.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func PrecheckPowerFlex(ctx context.Context, cr *csmv1.ContainerStorageModule, op
}
}
cr.Spec.Driver.InitContainers = newInitContainers
if cr.Spec.Driver.InitContainers == nil && sdcEnabled {
if len(cr.Spec.Driver.InitContainers) == 0 && sdcEnabled {
cr.Spec.Driver.InitContainers = []csmv1.ContainerTemplate{
{
Name: "sdc",
Expand Down Expand Up @@ -275,7 +275,7 @@ func IsIpv4Regex(ipAddress string) bool {

// ModifyPowerflexCR - Set environment variables provided in CR
func ModifyPowerflexCR(yamlString string, cr csmv1.ContainerStorageModule, fileType string) string {
sdcEnabled := ""
sdcEnabled := "true"
approveSdcEnabled := ""
renameSdcEnabled := ""
renameSdcPrefix := ""
Expand Down
Loading