cleanupResourceList returns a new list with the same elements as resourceList, where the empty and duplicate entries have been removed
(resourceList []string)
| 365 | // cleanupResourceList returns a new list with the same elements as resourceList, where |
| 366 | // the empty and duplicate entries have been removed |
| 367 | func cleanupResourceList(resourceList []string) []string { |
| 368 | result := stringset.From(resourceList).ToSortedList() |
| 369 | return slices.DeleteFunc(result, func(s string) bool { |
| 370 | return len(s) == 0 |
| 371 | }) |
| 372 | } |
| 373 | |
| 374 | func externalClusterSecrets(cluster *apiv1.Cluster) []string { |
| 375 | var result []string |
no outgoing calls
no test coverage detected