Skip to content

Commit

Permalink
fix the driver deployment (#737)
Browse files Browse the repository at this point in the history
Co-authored-by: Harish P <[email protected]>
  • Loading branch information
ashleyvjoy and harishp8889 authored Oct 15, 2024
1 parent 121a11a commit b633b3e
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit b633b3e

Please sign in to comment.