// Check if the pod belongs to any whitelisted Namespaces
Check if the pod belongs to any whitelisted Namespaces
// Check if the pod belongs to any whitelisted Namespaces
func isWhitelisted(whitelistedNS []string, pod v1.Pod) bool {
	for _, ns := range whitelistedNS {
		if pod.Namespace == ns || pod.Name == os.Getenv("MY_POD_NAME") {
			return true
		}
	}
	return false
}
func isWhitelisted ( whitelistedNS [ ] string , pod v1 . Pod ) bool { for _ , ns := range whitelistedNS { if pod . Namespace == ns || pod . Name == os . Getenv ( " " ) { return true } } return false }
Check if the pod belongs to any whitelisted Namespaces
Check if the pod belongs to any whitelisted Namespaces