Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for multiError (0.26 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. pkg/test/framework/components/echo/deployment/builder.go

    // limitations under the License.
    
    package deployment
    
    import (
    	"context"
    	"fmt"
    	"strings"
    	"time"
    
    	"github.com/google/go-cmp/cmp"
    	"github.com/hashicorp/go-multierror"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    
    	"istio.io/api/annotation"
    	"istio.io/istio/pkg/kube/inject"
    	"istio.io/istio/pkg/test"
    	"istio.io/istio/pkg/test/framework/components/cluster"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 12K bytes
    - Viewed (0)
  6. pkg/webhooks/validation/controller/controller.go

    // Validate the options that exposed to end users
    func (o Options) Validate() error {
    	var errs *multierror.Error
    	if o.WatchedNamespace == "" || !labels.IsDNS1123Label(o.WatchedNamespace) {
    		errs = multierror.Append(errs, fmt.Errorf("invalid namespace: %q", o.WatchedNamespace))
    	}
    	if o.ServiceName == "" || !labels.IsDNS1123Label(o.ServiceName) {
    		errs = multierror.Append(errs, fmt.Errorf("invalid service name: %q", o.ServiceName))
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 28 16:52:19 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  7. pkg/test/framework/components/namespace/kube.go

    //  limitations under the License.
    
    package namespace
    
    import (
    	"context"
    	"fmt"
    	"io"
    	"math/rand"
    	"strings"
    	"sync"
    	"time"
    
    	"github.com/google/go-cmp/cmp"
    	"github.com/hashicorp/go-multierror"
    	corev1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/types"
    
    	"istio.io/api/label"
    	"istio.io/istio/pkg/log"
    	"istio.io/istio/pkg/test/framework/components/cluster"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 9K bytes
    - Viewed (0)
  8. pkg/test/framework/components/istio/configmap.go

    // limitations under the License.
    
    package istio
    
    import (
    	"context"
    	"crypto/md5"
    	"encoding/hex"
    	"fmt"
    	"io"
    	"sync"
    
    	"github.com/hashicorp/go-multierror"
    	corev1 "k8s.io/api/core/v1"
    	kerrors "k8s.io/apimachinery/pkg/api/errors"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/types"
    	"sigs.k8s.io/yaml"
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  9. pkg/test/framework/config.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package framework
    
    import (
    	"context"
    	"fmt"
    	"strings"
    
    	"github.com/hashicorp/go-multierror"
    	"go.uber.org/atomic"
    	"golang.org/x/sync/errgroup"
    
    	"istio.io/istio/pkg/test"
    	"istio.io/istio/pkg/test/framework/components/cluster"
    	"istio.io/istio/pkg/test/framework/components/istioctl"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  10. pkg/config/validation/validation.go

    	}
    	if len(rule.Issuer) == 0 {
    		errs = multierror.Append(errs, errors.New("issuer must be set"))
    	}
    	for _, audience := range rule.Audiences {
    		if len(audience) == 0 {
    			errs = multierror.Append(errs, errors.New("audience must be non-empty string"))
    		}
    	}
    
    	if len(rule.JwksUri) != 0 {
    		if _, err := security.ParseJwksURI(rule.JwksUri); err != nil {
    			errs = multierror.Append(errs, err)
    		}
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
Back to top