Skip to content

Commit

Permalink
[Bug Fix]: Minimal manifest image pull issue (#853)
Browse files Browse the repository at this point in the history
* fix: updated reverse-proxy version

* fix: updated reverseproxy version

* fix: updated the conditions

* updated image to nightly

* fix: unit fixed

---------

Co-authored-by: Harish P <harishp8889@gmail.com>
  • Loading branch information
mgandharva and harishp8889 authored Jan 10, 2025
1 parent 4f2abf7 commit e984dc1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
1 change: 1 addition & 0 deletions operatorconfig/moduleconfig/common/version-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ powermax:
observability: "v1.10.0"
resiliency: "v1.11.0"
v2.13.0:
csireverseproxy: "v2.12.0"
authorization: "v2.1.0"
replication: "v1.11.0"
observability: "v1.11.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: reverseproxy
image: quay.io/dell/container-storage-modules/csipowermax-reverseproxy:v2.12.0
image: quay.io/dell/container-storage-modules/csipowermax-reverseproxy:nightly
imagePullPolicy: Always
env:
- name: X_CSI_REVPROXY_CONFIG_DIR
Expand Down
17 changes: 13 additions & 4 deletions pkg/drivers/commonconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,23 @@ func GetController(ctx context.Context, cr csmv1.ContainerStorageModule, operato
for i, c := range containers {
if c.Name != nil && string(*c.Name) == "driver" {
// Check if Common is not nil before accessing Envs
if cr.Spec.Driver.Common != nil && cr.Spec.Driver.Controller != nil {
containers[i].Env = utils.ReplaceAllApplyCustomEnvs(c.Env, cr.Spec.Driver.Common.Envs, cr.Spec.Driver.Controller.Envs)
c.Env = containers[i].Env
if string(cr.Spec.Driver.Common.Image) != "" {
if cr.Spec.Driver.Common != nil {
if cr.Spec.Driver.Common.Image != "" {
image := string(cr.Spec.Driver.Common.Image)
c.Image = &image
}
}
if cr.Spec.Driver.Common != nil || cr.Spec.Driver.Controller != nil {
var commonEnvs, controllerEnvs []corev1.EnvVar
if cr.Spec.Driver.Common != nil {
commonEnvs = cr.Spec.Driver.Common.Envs
}
if cr.Spec.Driver.Controller != nil {
controllerEnvs = cr.Spec.Driver.Controller.Envs
}
containers[i].Env = utils.ReplaceAllApplyCustomEnvs(c.Env, commonEnvs, controllerEnvs)
c.Env = containers[i].Env
}
}

removeContainer := false
Expand Down

0 comments on commit e984dc1

Please sign in to comment.