kcp-dev / contrib-tmc

An experimental add-on readding some Kubernetes compute APIs and impement transparent multi-cluster scheduling
Apache License 2.0
5 stars 3 forks source link

Placement do not work with cross-workspaces #4

Closed mjudeikis closed 10 months ago

mjudeikis commented 11 months ago

Currently placements do not work with cross-workspaces. Need to investigate and fix

// TODO(MJ): currently this disables the cross workspace placements. This is due to
// fact indexers are build ontop of logicalcluster paths and we use here the 'readable' paths
// if len(placement.Spec.LocationWorkspace) > 0 {
//  locationWorkspace = logicalcluster.NewPath(placement.Spec.LocationWorkspace)
// } else {
locationWorkspace = logicalcluster.From(placement).Path()
// }