MCPcopy Create free account
hub / github.com/cloudnative-pg/cloudnative-pg / getPreserveNamespaces

Function getPreserveNamespaces

tests/utils/namespaces/namespace.go:58–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56const SternLogDirectory = "cluster_logs/"
57
58func 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
69func CleanupClusterLogs(namespace string, testFailed bool) error {

Callers 2

deleteNamespaceFunction · 0.85
DeleteNamespaceAndWaitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected