Merge pull request #4681 from iawia002/yaml

Unify the omitempty configuration of YAML annotation
This commit is contained in:
KubeSphere CI Bot
2022-02-24 11:33:41 +08:00
committed by GitHub
20 changed files with 68 additions and 70 deletions

View File

@@ -3,8 +3,8 @@ package terminal
import "github.com/spf13/pflag"
type Options struct {
Image string `json:"image,omitempty" yaml:"image"`
Timeout int `json:"timeout,omitempty" yaml:"timeout"`
Image string `json:"image,omitempty" yaml:"image,omitempty"`
Timeout int `json:"timeout,omitempty" yaml:"timeout,omitempty"`
}
func NewTerminalOptions() *Options {