The problem shows be in the follow code.
func getConfigMapName(m *mobilesecurityservicev1alpha1.MobileSecurityService) string{
if len(m.Spec.ConfigMapName) > 0 {
return m.Spec.ConfigMapName
}
return m.Name
}
For some reason, it is not getting the specified name in the CR. We can just remove the name from the CR and make the configMap be always the m.name since it is not a requirement at all. |