monitord is able to create an admiralty Source on remote peer

This commit is contained in:
pb
2025-03-10 17:57:14 +01:00
parent 0a15357445
commit 3c692d2026
2 changed files with 6 additions and 1 deletions

View File

@@ -450,6 +450,9 @@ func postCDRapiKube(client kubernetes.Clientset, ctx context.Context, path strin
return resp, nil
}
// Returns the Kubernetes' Node object corresponding to the executionID if it exists on this host
//
// The node is created when an admiralty Target (on host) can connect to an admiralty Source (on remote)
func (k *KubernetesService) GetOneNode(context context.Context,executionID string) (*v1.Node, error) {
res, err := k.Set.CoreV1().
Nodes().