(cluster *apiv1.Cluster)
| 347 | } |
| 348 | |
| 349 | func getInvolvedConfigMapNames(cluster *apiv1.Cluster) []string { |
| 350 | involvedConfigMapNames := []string{ |
| 351 | cluster.Name, |
| 352 | } |
| 353 | |
| 354 | if cluster.Spec.Monitoring != nil { |
| 355 | // If custom queries are used, the instance manager need privileges to read those |
| 356 | // entries |
| 357 | for _, configMapName := range cluster.Spec.Monitoring.CustomQueriesConfigMap { |
| 358 | involvedConfigMapNames = append(involvedConfigMapNames, configMapName.Name) |
| 359 | } |
| 360 | } |
| 361 | |
| 362 | return cleanupResourceList(involvedConfigMapNames) |
| 363 | } |
| 364 | |
| 365 | // cleanupResourceList returns a new list with the same elements as resourceList, where |
| 366 | // the empty and duplicate entries have been removed |
no test coverage detected