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 authored Aug 4, 2023
1 parent 9137e20 commit 6c89ebf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 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
2 changes: 0 additions & 2 deletions cmd/kubectl-testkube/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ var RootCmd = &cobra.Command{
cfg, err := config.Load()
ui.ExitOnError("loading config", err)

common.UiContextHeader(cmd, cfg)

if err = validator.ValidateCloudContext(cfg); err != nil {
common.UiCloudContextValidationError(err)
}
Expand Down

0 comments on commit 6c89ebf

Please sign in to comment.