diff --git a/build/config.go b/build/config.go index 912d046..f0816b3 100644 --- a/build/config.go +++ b/build/config.go @@ -59,7 +59,6 @@ func init() { if len(allVersions) == 0 { return } - fmt.Println("here0") for i, v := range allVersions { if i == len(allVersions)-1 { //only get AppVersion of latest chart version //Executing the below function for all versions is redundant and takes time on startup, we only want to know the latest app version of latest version. diff --git a/consul/install.go b/consul/install.go index 8a29cc0..ca37ba9 100644 --- a/consul/install.go +++ b/consul/install.go @@ -94,7 +94,7 @@ func (h *Consul) applyManifests(request adapter.OperationRequest, operation adap } } else { for _, template := range operation.Templates { - tpl := []byte(template) + tpl := []byte(template.String()) merged, err := utils.MergeToTemplate(tpl, map[string]string{"namespace": request.Namespace}) if err != nil { errMx.Lock() diff --git a/consul/operations.go b/consul/operations.go index 79c89d5..cad55be 100644 --- a/consul/operations.go +++ b/consul/operations.go @@ -74,7 +74,6 @@ func (h *Consul) ApplyOperation(ctx context.Context, request adapter.OperationRe config.HTTPBinOperation, config.ImageHubOperation, config.BookInfoOperation: - status, err := h.applyManifests(request, *operation, kubeconfigs) if err != nil { e.Summary = fmt.Sprintf("Error while %s %s", status, opDesc)