@@ -99,54 +99,20 @@ func (c *IBMObjectCSI) GetCSIControllerImage() string {
99
99
}
100
100
101
101
func (c * IBMObjectCSI ) GetCSIControllerResourceRequests () * objectdriverv1alpha1.ResourcesSpec {
102
- //limits, requests := make(map[string]string), make(map[string]string)
103
102
resources := objectdriverv1alpha1.ResourcesSpec {}
104
103
105
104
if & c .Spec .Controller .Resources != nil {
106
-
107
105
resources = c .Spec .Controller .Resources
108
-
109
- //limits["cpu"] = c.Spec.Controller.Resources.Limits.Cpu
110
- //limits["memory"] = c.Spec.Controller.Resources.Limits.Memory
111
- //requests["cpu"] = c.Spec.Controller.Resources.Requests.Cpu
112
- //requests["memory"] = c.Spec.Controller.Resources.Requests.Memory
113
- //
114
- //resources.Limits = objectdriverv1alpha1.ReqLimits{
115
- // Cpu: limits["cpu"],
116
- // Memory: limits["memory"],
117
- //}
118
- //resources.Requests = objectdriverv1alpha1.ReqLimits{
119
- // Cpu: requests["cpu"],
120
- // Memory: requests["memory"],
121
- //}
122
106
}
123
-
124
107
return & resources
125
108
}
126
109
127
110
func (c * IBMObjectCSI ) GetCSINodeResourceRequests () * objectdriverv1alpha1.ResourcesSpec {
128
- //limits, requests := make(map[string]string), make(map[string]string)
129
111
resources := objectdriverv1alpha1.ResourcesSpec {}
130
112
131
- //if &c.Spec.Node.Resources != nil {
132
- // limits["cpu"] = c.Spec.Node.Resources.Limits.Cpu
133
- // limits["memory"] = c.Spec.Node.Resources.Limits.Memory
134
- // requests["cpu"] = c.Spec.Node.Resources.Requests.Cpu
135
- // requests["memory"] = c.Spec.Node.Resources.Requests.Memory
136
- //
137
- // resources.Limits = objectdriverv1alpha1.ReqLimits{
138
- // Cpu: limits["cpu"],
139
- // Memory: limits["memory"],
140
- // }
141
- // resources.Requests = objectdriverv1alpha1.ReqLimits{
142
- // Cpu: requests["cpu"],
143
- // Memory: requests["memory"],
144
- // }
145
- //}
146
113
if & c .Spec .Node .Resources != nil {
147
114
resources = c .Spec .Node .Resources
148
115
}
149
-
150
116
return & resources
151
117
}
152
118
0 commit comments