Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 103 for multierror (0.24 sec)

  1. pkg/test/framework/components/jwt/kube.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package jwt
    
    import (
    	"fmt"
    	"os"
    	"path/filepath"
    	"time"
    
    	"github.com/hashicorp/go-multierror"
    
    	"istio.io/istio/pkg/test/env"
    	"istio.io/istio/pkg/test/framework/components/namespace"
    	"istio.io/istio/pkg/test/framework/resource"
    	"istio.io/istio/pkg/test/framework/resource/config/apply"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Sep 22 23:45:43 UTC 2022
    - 4K bytes
    - Viewed (0)
  2. tests/integration/pilot/mirror_test.go

    	deltaFromExpected := math.Abs(actualPercent - tc.percentage)
    
    	var merr *multierror.Error
    	if tc.threshold-deltaFromExpected < 0 {
    		err := fmt.Errorf("unexpected mirror traffic. Expected %g%%, got %.1f%% (threshold: %g%%, testID: %s)",
    			tc.percentage, actualPercent, tc.threshold, testID)
    		log.Infof("%v", err)
    		merr = multierror.Append(merr, err)
    	} else {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  3. pkg/config/schema/resource/schema.go

    	if !labels.IsDNS1123Label(s.Kind()) {
    		err = multierror.Append(err, fmt.Errorf("invalid kind: %s", s.Kind()))
    	}
    	if !labels.IsDNS1123Label(s.plural) {
    		err = multierror.Append(err, fmt.Errorf("invalid plural for kind %s: %s", s.Kind(), s.plural))
    	}
    	if s.reflectType == nil && getProtoMessageType(s.proto) == nil {
    		err = multierror.Append(err, fmt.Errorf("proto message or reflect type not found: %v", s.proto))
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 19 22:42:42 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  4. pkg/kube/inject/validate.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package inject
    
    import (
    	"fmt"
    	"net/netip"
    	"strconv"
    	"strings"
    
    	"github.com/hashicorp/go-multierror"
    
    	"istio.io/api/annotation"
    	meshconfig "istio.io/api/mesh/v1alpha1"
    	"istio.io/istio/pilot/pkg/model"
    	"istio.io/istio/pkg/config/mesh"
    	"istio.io/istio/pkg/config/validation/agent"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  5. pkg/test/framework/components/echo/kube/workload.go

    	return nil
    }
    
    func (w *workload) disconnect() (err error) {
    	if w.client != nil {
    		err = multierror.Append(err, w.client.Close()).ErrorOrNil()
    		w.client = nil
    	}
    	if w.forwarder != nil {
    		w.forwarder.Close()
    		w.forwarder = nil
    	}
    	if w.ctx.Settings().FailOnDeprecation && w.sidecar != nil {
    		err = multierror.Append(err, w.checkDeprecation()).ErrorOrNil()
    		w.sidecar = nil
    	}
    	return err
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Oct 25 19:46:28 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  6. 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)
  7. src/go/types/errors.go

    	// call the typechecker error handler for each sub-error.
    	// Otherwise, call it once, with a single combined message.
    	multiError := false
    	if !isTypes2 {
    		for i := 1; i < len(err.desc); i++ {
    			if err.desc[i].posn.Pos().IsValid() {
    				multiError = true
    				break
    			}
    		}
    	}
    
    	if multiError {
    		for i := range err.desc {
    			p := &err.desc[i]
    			check.handleError(i, p.posn, err.code, p.msg, err.soft)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 8.5K 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/config/crd/validator.go

    	var errs *multierror.Error
    	for _, item := range yml.SplitString(data) {
    		obj := &unstructured.Unstructured{}
    		if err := yaml.Unmarshal([]byte(item), obj); err != nil {
    			return err
    		}
    		if ignorer != nil && ignorer.ShouldIgnore(obj.GetNamespace(), obj.GetName()) {
    			continue
    		}
    		errs = multierror.Append(errs, v.ValidateCustomResource(obj))
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 17 15:38:40 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/errors.go

    	// call the typechecker error handler for each sub-error.
    	// Otherwise, call it once, with a single combined message.
    	multiError := false
    	if !isTypes2 {
    		for i := 1; i < len(err.desc); i++ {
    			if err.desc[i].pos.IsKnown() {
    				multiError = true
    				break
    			}
    		}
    	}
    
    	if multiError {
    		for i := range err.desc {
    			p := &err.desc[i]
    			check.handleError(i, p.pos, err.code, p.msg, err.soft)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 6.6K bytes
    - Viewed (0)
Back to top