Change atotune func name
@@ -18,7 +18,7 @@ func NewConfigMap(cr *api.PerconaXtraDBCluster, cmName string) (*corev1.ConfigMa
if len(cr.Spec.PXC.Resources.Limits.Memory) > 0 {
memory = cr.Spec.PXC.Resources.Limits.Memory
}
- autotuneParams, err := autoTune(memory)
+ autotuneParams, err := getAutoTuneParams(memory)
if err != nil {
return nil, err
}
@@ -42,7 +42,7 @@ func NewConfigMap(cr *api.PerconaXtraDBCluster, cmName string) (*corev1.ConfigMa
return cm, nil
}
-func autoTune(memory string) (string, error) {
+func getAutoTuneParams(memory string) (string, error) {
autotuneParams := ""
q, err := res.ParseQuantity(memory)
if err != nil {
