"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pkg/test/framework/resource/flags.go" between
istio-1.10.0.tar.gz and istio-1.10.1.tar.gz

About: Istio is a platform-independent service mesh that provides a uniform way to connect, secure, control, and observe microservices.

flags.go  (istio-1.10.0):flags.go  (istio-1.10.1)
skipping to change at line 55 skipping to change at line 55
if err != nil { if err != nil {
return nil, err return nil, err
} }
if s.FailOnDeprecation && s.NoCleanup { if s.FailOnDeprecation && s.NoCleanup {
return nil, return nil,
fmt.Errorf("checking for deprecation occurs at cleanup le vel, thus flags -istio.test.nocleanup and" + fmt.Errorf("checking for deprecation occurs at cleanup le vel, thus flags -istio.test.nocleanup and" +
" -istio.test.deprecation_failure must not be use d at the same time") " -istio.test.deprecation_failure must not be use d at the same time")
} }
if s.Revision != "" && s.IstioVersions != nil { if s.Revision != "" && s.Revisions != nil {
return nil, return nil,
fmt.Errorf("cannot use --istio.test.revision and --istio. fmt.Errorf("cannot use --istio.test.revision and --istio.
test.versions at the same time," + test.revisions at the same time," +
" --istio.test.versions will take precedence and " --istio.test.revisions will take precedence and
--istio.test.revision will be ignored") --istio.test.revision will be ignored")
} }
return s, nil return s, nil
} }
// init registers the command-line flags that we can exposed for "go test". // init registers the command-line flags that we can exposed for "go test".
func init() { func init() {
flag.StringVar(&settingsFromCommandLine.BaseDir, "istio.test.work_dir", o s.TempDir(), flag.StringVar(&settingsFromCommandLine.BaseDir, "istio.test.work_dir", o s.TempDir(),
"Local working directory for creating logs/temp files. If left em pty, os.TempDir() is used.") "Local working directory for creating logs/temp files. If left em pty, os.TempDir() is used.")
skipping to change at line 99 skipping to change at line 99
flag.BoolVar(&settingsFromCommandLine.FailOnDeprecation, "istio.test.depr ecation_failure", settingsFromCommandLine.FailOnDeprecation, flag.BoolVar(&settingsFromCommandLine.FailOnDeprecation, "istio.test.depr ecation_failure", settingsFromCommandLine.FailOnDeprecation,
"Make tests fail if any usage of deprecated stuff (e.g. Envoy fla gs) is detected.") "Make tests fail if any usage of deprecated stuff (e.g. Envoy fla gs) is detected.")
flag.StringVar(&settingsFromCommandLine.Revision, "istio.test.revision", settingsFromCommandLine.Revision, flag.StringVar(&settingsFromCommandLine.Revision, "istio.test.revision", settingsFromCommandLine.Revision,
"If set to XXX, overwrite the default namespace label (istio-inje ction=enabled) with istio.io/rev=XXX.") "If set to XXX, overwrite the default namespace label (istio-inje ction=enabled) with istio.io/rev=XXX.")
flag.BoolVar(&settingsFromCommandLine.SkipVM, "istio.test.skipVM", settin gsFromCommandLine.SkipVM, flag.BoolVar(&settingsFromCommandLine.SkipVM, "istio.test.skipVM", settin gsFromCommandLine.SkipVM,
"Skip VM related parts in all tests.") "Skip VM related parts in all tests.")
flag.Var(&settingsFromCommandLine.IstioVersions, "istio.test.versions", " Istio CP versions available to the test framework and their corresponding revisi ons.") flag.Var(&settingsFromCommandLine.Revisions, "istio.test.revisions", "Ist io CP revisions available to the test framework and their corresponding versions .")
} }
type arrayFlags []string type arrayFlags []string
func (i *arrayFlags) String() string { func (i *arrayFlags) String() string {
return fmt.Sprint([]string(*i)) return fmt.Sprint([]string(*i))
} }
func (i *arrayFlags) Set(value string) error { func (i *arrayFlags) Set(value string) error {
*i = append(*i, value) *i = append(*i, value)
 End of changes. 3 change blocks. 
6 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)