()
| 56 | const SternLogDirectory = "cluster_logs/" |
| 57 | |
| 58 | func getPreserveNamespaces() []string { |
| 59 | var preserveNamespacesList []string |
| 60 | _, ok := os.LookupEnv("PRESERVE_NAMESPACES") |
| 61 | if ok { |
| 62 | preserveNamespacesList = strings.Fields(os.Getenv("PRESERVE_NAMESPACES")) |
| 63 | } |
| 64 | |
| 65 | return preserveNamespacesList |
| 66 | } |
| 67 | |
| 68 | // CleanupClusterLogs cleans up the cluster logs of a given namespace |
| 69 | func CleanupClusterLogs(namespace string, testFailed bool) error { |
no outgoing calls
no test coverage detected