Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove special chars for yaml #4239

Merged
merged 1 commit into from
Aug 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading