package config import ( "strings" ) const ( // defaultChannels default comma separated list of channels to listen on. defaultChannels = "cluster_events,helm_workloads_events,banner_events,label_events,workload_cluster_mapping_events" ) // ParseChannelList parses the comma separated string list of channels // to be watched and returns them as a slice of strings. func ParseChannelList(channels string) []string { if channels == "" { channels = defaultChannels } return strings.Split(channels, ",") }