in pkg/common/utils/resource/configmap.go [156:178]
func getDorisCoreConfigMapName(dcr *dorisv1.DorisCluster, componentType dorisv1.ComponentType) string {
var cmInfo dorisv1.ConfigMapInfo
switch componentType {
case dorisv1.Component_FE:
cmInfo = dcr.Spec.FeSpec.ConfigMapInfo
case dorisv1.Component_BE:
cmInfo = dcr.Spec.BeSpec.ConfigMapInfo
case dorisv1.Component_CN:
cmInfo = dcr.Spec.CnSpec.ConfigMapInfo
case dorisv1.Component_Broker:
cmInfo = dcr.Spec.BrokerSpec.ConfigMapInfo
default:
klog.Infof("getCoreCmName: the componentType: %s have not default ResolveKey", componentType)
}
maps := GetMountConfigMapInfo(cmInfo)
for i := range maps {
if maps[i].MountPath == "" || maps[i].MountPath == ConfigEnvPath {
return maps[i].ConfigMapName
}
}
return ""
}