mirror of
https://github.com/kubenetworks/kubevpn.git
synced 2025-12-24 11:51:13 +08:00
feat: proxy mode support proxy multiple workloads
This commit is contained in:
@@ -38,11 +38,10 @@ func GetClusterIDByCM(cm *v1.ConfigMap) types.UID {
|
||||
return cm.UID
|
||||
}
|
||||
|
||||
func IsSameCluster(client v12.ConfigMapInterface, namespace string, clientB v12.ConfigMapInterface, namespaceB string) (bool, error) {
|
||||
func IsSameCluster(ctx context.Context, client v12.ConfigMapInterface, namespace string, clientB v12.ConfigMapInterface, namespaceB string) (bool, error) {
|
||||
if namespace != namespaceB {
|
||||
return false, nil
|
||||
}
|
||||
ctx := context.Background()
|
||||
clusterIDA, err := GetClusterID(ctx, client)
|
||||
if err != nil {
|
||||
return false, err
|
||||
|
||||
Reference in New Issue
Block a user