Using the right yaml library to marshal.

This commit is contained in:
Aleksandr Melnikov
2020-10-30 12:11:37 -07:00
parent cb7bb793e7
commit 2d45b0a015

View File

@@ -22,6 +22,7 @@ import (
"k8s.io/apimachinery/pkg/util/intstr" "k8s.io/apimachinery/pkg/util/intstr"
"k8s.io/apimachinery/pkg/watch" "k8s.io/apimachinery/pkg/watch"
"net/http" "net/http"
yaml2 "sigs.k8s.io/yaml"
"strconv" "strconv"
"strings" "strings"
"time" "time"
@@ -477,7 +478,7 @@ func (c *Client) createWorkflow(namespace string, workflowTemplateID uint64, wor
}, },
}, },
} }
serviceManifestBytes, err := yaml.Marshal(service) serviceManifestBytes, err := yaml2.Marshal(service)
if err != nil { if err != nil {
return nil, err return nil, err
} }
@@ -516,7 +517,7 @@ func (c *Client) createWorkflow(namespace string, workflowTemplateID uint64, wor
}, },
} }
virtualServiceManifestBytes, err := yaml.Marshal(virtualService) virtualServiceManifestBytes, err := yaml2.Marshal(virtualService)
if err != nil { if err != nil {
return nil, err return nil, err
} }