prow/flagutil/kubernetes.go
func (o *KubernetesOptions) Validate(dryRun bool) error {
	if dryRun && o.DeckURI == "" {
		return errors.New("a dry-run was requested but required flag -deck-url was unset")
	}

	if o.DeckURI != "" {
		if _, err := url.ParseRequestURI(o.DeckURI); err != nil {
			return fmt.Errorf("invalid -deck-url URI: %q", o.DeckURI)
		}
	}

	return nil
}
func (o *KubernetesOptions) Validate(dryRun bool) error {
	if dryRun && o.DeckURI == "" {
		return errors.New("a dry-run was requested but required flag -deck-url was unset")
	}

	if o.DeckURI != "" {
		if _, err := url.ParseRequestURI(o.DeckURI); err != nil {
			return fmt.Errorf("invalid -deck-url URI: %q", o.DeckURI)
		}
	}

	return nil
}
func ( o * KubernetesOptions ) Validate ( dryRun bool ) error { if dryRun && o . DeckURI == " " { return errors . New ( " " ) } if o . DeckURI != " " { if _ , err := url . ParseRequestURI ( o . DeckURI ) ; err != nil { return fmt . Errorf ( " " , o . DeckURI ) } } return nil }
// Validate validates Kubernetes options.
Validate validates Kubernetes options .