1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-12 22:07:47 +02:00

Debugging

This commit is contained in:
Ben Toogood
2020-02-06 11:00:14 +00:00
parent 54371bba6a
commit 111126c780
3 changed files with 5 additions and 6 deletions

View File

@ -98,6 +98,9 @@ func serviceResource(s *client.Service) *client.Resource {
// Start starts the Kubernetes service. It creates new kubernetes deployment and service API objects
func (s *service) Start(k client.Client) error {
bytes, _ := json.Marshal(s.kdeploy)
log.Debug("kdeploy", string(bytes))
// create deployment first; if we fail, we dont create service
if err := k.Create(deploymentResource(s.kdeploy)); err != nil {
log.Debugf("Runtime failed to create deployment: %v", err)