From 2d45b0a01509c636df5c55a44c8e98e62aeffd30 Mon Sep 17 00:00:00 2001 From: Aleksandr Melnikov Date: Fri, 30 Oct 2020 12:11:37 -0700 Subject: [PATCH] Using the right yaml library to marshal. --- pkg/workflow_execution.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/workflow_execution.go b/pkg/workflow_execution.go index 56d84e1..86b81c5 100644 --- a/pkg/workflow_execution.go +++ b/pkg/workflow_execution.go @@ -22,6 +22,7 @@ import ( "k8s.io/apimachinery/pkg/util/intstr" "k8s.io/apimachinery/pkg/watch" "net/http" + yaml2 "sigs.k8s.io/yaml" "strconv" "strings" "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 { 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 { return nil, err }