func IsMemberOfCluster(tag, clusterID string) bool {
	if strings.HasPrefix(tag, t.ClusterID) {
		parts := strings.Split(tag, "=")
		if len(parts) != 2 {
			return false
		}
		if strings.HasPrefix(parts[1], clusterID) {
			return true
		}
	}
	return false
}
// IsMemberOfCluster returns true of the given tag is a cluster-tag and clusterID matches.
// tag is in the form of:
//    cluster.metal-stack.io/id/namespace/service=<clusterid>/namespace/servicename
IsMemberOfCluster returns true of the given tag is a cluster-tag and clusterID matches.
tag is in the form of:
cluster.metal-stack.io/id/namespace/service=/namespace/servicename
// IsMemberOfCluster returns true of the given tag is a cluster - tag and clusterID matches . // tag is in the form of : // cluster . metal - stack . io / id / namespace / service = <clusterid > / namespace / servicename
func IsMemberOfCluster(tag, clusterID string) bool {
	if strings.HasPrefix(tag, t.ClusterID) {
		parts := strings.Split(tag, "=")
		if len(parts) != 2 {
			return false
		}
		if strings.HasPrefix(parts[1], clusterID) {
			return true
		}
	}
	return false
}
func IsMemberOfCluster ( tag , clusterID string ) bool { if strings . HasPrefix ( tag , t . ClusterID ) { parts := strings . Split ( tag , " " ) if len ( parts ) != 2 { return false } if strings . HasPrefix ( parts [ 1 ] , clusterID ) { return true } } return false }
IsMemberOfCluster returns true of the given tag is a cluster-tag and clusterID matches.
IsMemberOfCluster returns true of the given tag is a cluster - tag and clusterID matches .