Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for multierror (0.15 sec)

  1. pkg/util/istiomultierror/util.go

    package istiomultierror
    
    import (
    	"fmt"
    	"strings"
    
    	"github.com/hashicorp/go-multierror"
    )
    
    // MultiErrorFormat provides a format for multierrors. This matches the default format, but if there
    // is only one error we will not expand to multiple lines.
    func MultiErrorFormat() multierror.ErrorFormatFunc {
    	return func(es []error) string {
    		if len(es) == 1 {
    			return es[0].Error()
    		}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 09 05:07:21 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  2. pilot/pkg/model/validation.go

    	if len(s.Hostname) == 0 {
    		errs = multierror.Append(errs, fmt.Errorf("invalid empty hostname"))
    	}
    	parts := strings.Split(string(s.Hostname), ".")
    	for _, part := range parts {
    		if !labels.IsDNS1123Label(part) {
    			errs = multierror.Append(errs, fmt.Errorf("invalid hostname part: %q", part))
    		}
    	}
    
    	// Require at least one port
    	if len(s.Ports) == 0 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. pkg/test/framework/components/istio/cleanup.go

    		return nil
    	})
    }
    
    func (i *istioImpl) cleanupCluster(c cluster.Cluster, errG *multierror.Group) {
    	scopes.Framework.Infof("clean up cluster %s", c.Name())
    	errG.Go(func() (err error) {
    		if e := i.installer.Close(c); e != nil {
    			err = multierror.Append(err, e)
    		}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 5K bytes
    - Viewed (0)
  4. pkg/config/analysis/analyzers/schema/validation.go

    		})
    		if err != nil {
    			if multiErr, ok := err.(*multierror.Error); ok {
    				for _, err := range multiErr.WrappedErrors() {
    					ctx.Report(gv, morePreciseMessage(r, err, true))
    				}
    			} else {
    				ctx.Report(gv, morePreciseMessage(r, err, true))
    			}
    		}
    		if warnings != nil {
    			if multiErr, ok := warnings.(*multierror.Error); ok {
    				for _, err := range multiErr.WrappedErrors() {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jan 08 07:38:28 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. tests/integration/pilot/revisioned_upgrade_test.go

    // enableDefaultInjection takes a namespaces and relabels it such that it will have a default sidecar injected
    func enableDefaultInjection(ns namespace.Instance) error {
    	var errs *multierror.Error
    	errs = multierror.Append(errs, ns.SetLabel("istio-injection", "enabled"))
    	errs = multierror.Append(errs, ns.RemoveLabel("istio.io/rev"))
    	return errs.ErrorOrNil()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  6. pkg/test/framework/components/environment/kube/kube.go

    	var clusters cluster.Clusters
    	for i, cfg := range configs {
    		c, err := buildCluster(cfg, allClusters)
    		if err != nil {
    			errs = multierror.Append(errs, fmt.Errorf("failed building cluster from config %d: %v", i, err))
    			continue
    		}
    		if _, ok := allClusters[c.Name()]; ok {
    			errs = multierror.Append(errs, fmt.Errorf("more than one cluster named %s", c.Name()))
    			continue
    		}
    		allClusters[c.Name()] = c
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  7. pkg/config/security/security.go

    }
    
    func ValidateIPs(ips []string) error {
    	var errs *multierror.Error
    	for _, v := range ips {
    		if strings.Contains(v, "/") {
    			if _, err := netip.ParsePrefix(v); err != nil {
    				errs = multierror.Append(errs, fmt.Errorf("bad CIDR range (%s): %v", v, err))
    			}
    		} else {
    			if _, err := netip.ParseAddr(v); err != nil {
    				errs = multierror.Append(errs, fmt.Errorf("bad IP address (%s)", v))
    			}
    		}
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 07 04:43:34 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  8. istioctl/pkg/metrics/metrics.go

    	var me *multierror.Error
    	var err error
    	sm := workloadMetrics{workload: workload}
    	sm.totalRPS, err = vectorValue(promAPI, rpsQuery)
    	if err != nil {
    		me = multierror.Append(me, err)
    	}
    
    	sm.errorRPS, err = vectorValue(promAPI, errRPSQuery)
    	if err != nil {
    		me = multierror.Append(me, err)
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  9. pkg/test/framework/components/echo/kube/builder.go

    package kube
    
    import (
    	"github.com/hashicorp/go-multierror"
    
    	"istio.io/istio/pkg/test/framework/components/echo"
    	"istio.io/istio/pkg/test/framework/resource"
    )
    
    func Build(ctx resource.Context, configs []echo.Config) (echo.Instances, error) {
    	instances := make([]echo.Instance, len(configs))
    
    	g := multierror.Group{}
    	for i, cfg := range configs {
    		i, cfg := i, cfg
    		g.Go(func() (err error) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  10. pkg/webhooks/validation/server/server.go

    // limitations under the License.
    
    package server
    
    import (
    	"bytes"
    	"encoding/json"
    	"errors"
    	"fmt"
    	"net/http"
    
    	multierror "github.com/hashicorp/go-multierror"
    	admissionv1 "k8s.io/api/admission/v1"
    	kubeApiAdmissionv1beta1 "k8s.io/api/admission/v1beta1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/runtime"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat May 04 06:13:56 UTC 2024
    - 9.3K bytes
    - Viewed (0)
Back to top