Skip to content

Commit

Permalink
fix: remove special chas for yaml (#4239)
Browse files Browse the repository at this point in the history
  • Loading branch information
vsukhin committed Aug 4, 2023
1 parent 62661af commit 1f69ab2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cmd/kubectl-testkube/commands/crds/tests_crds.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,20 +59,20 @@ func NewCRDTestsCmd() *cobra.Command {
cmd.Flags().Set("name", utils.SanitizeName(filepath.Base(path)))
options, err := tests.NewUpsertTestOptionsFromFlags(cmd)
if err != nil {
ui.Info("# getting test options for file", path, err.Error())
ui.Info("---")
fmt.Println("# getting test options for file", path, err.Error())
fmt.Println("---")
return nil
}
(*testkube.TestUpsertRequest)(&options).QuoteTestTextFields()
data, err := crd.ExecuteTemplate(crd.TemplateTest, options)
if err != nil {
ui.Info("# executing crd template for file", err.Error())
ui.Info("---")
fmt.Println("# executing crd template for file", err.Error())
fmt.Println("---")
return nil
}

ui.Info(data)
ui.Info("---")
fmt.Println(data)
fmt.Println("---")
return nil
})

Expand Down

0 comments on commit 1f69ab2

Please sign in to comment.