diff --git a/workflow_builder/admiralty_setter.go b/workflow_builder/admiralty_setter.go index 70743b5..97c8fd6 100644 --- a/workflow_builder/admiralty_setter.go +++ b/workflow_builder/admiralty_setter.go @@ -50,23 +50,23 @@ func (s *AdmiraltySetter) InitializeAdmiralty(localPeerID string,remotePeerID st tools.POST:"/:id", }, tools.ADMIRALTY_TARGET: { - tools.POST:"/:id", + tools.POST:"/:id/"+remotePeerID, }, tools.ADMIRALTY_NODES: { tools.GET:"/:id", }, }, ) - - logger.Info().Msg(" Creating the Admiralty Source on " + remotePeerID + " ns-" + s.Id + "\n\n") + + logger.Info().Msg("\n\n Creating the Admiralty Source on " + remotePeerID + " ns-" + s.Id) _ = s.callRemoteExecution(remotePeer, []int{http.StatusCreated, http.StatusConflict},caller, s.Id, tools.ADMIRALTY_SOURCE, tools.POST, nil, true) - logger.Info().Msg(" Retrieving kubeconfig with the secret on " + remotePeerID + " ns-" + s.Id + "\n\n") + logger.Info().Msg("\n\n Retrieving kubeconfig with the secret on " + remotePeerID + " ns-" + s.Id) kubeconfig := s.getKubeconfig(remotePeer, caller) - logger.Info().Msg(" Creating a secret from the kubeconfig " + localPeerID + " ns-" + s.Id + "\n\n") + logger.Info().Msg("\n\n Creating a secret from the kubeconfig " + localPeerID + " ns-" + s.Id) _ = s.callRemoteExecution(localPeer, []int{http.StatusCreated}, caller,s.Id, tools.ADMIRALTY_SECRET, tools.POST,kubeconfig, true) - logger.Info().Msg(" Creating the Admiralty Target on " + localPeerID + " ns-" + s.Id + "\n\n") + logger.Info().Msg("\n\n Creating the Admiralty Target on " + localPeerID + " ns-" + s.Id ) _ = s.callRemoteExecution(localPeer,[]int{http.StatusCreated, http.StatusConflict},caller,s.Id,tools.ADMIRALTY_TARGET,tools.POST, nil, true) - logger.Info().Msg(" Checking for the creation of the admiralty node on " + localPeerID + " ns-" + s.Id + "\n\n") + logger.Info().Msg("\n\n Checking for the creation of the admiralty node on " + localPeerID + " ns-" + s.Id) s.checkNodeStatus(localPeer,caller) return nil