Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for destructured (1.19 sec)

  1. istioctl/pkg/workload/workload.go

    		return "", fmt.Errorf("could not retrieve global.multiCluster.clusterName from injection config")
    	}
    	return vs, nil
    }
    
    // Because we are placing into an Unstructured, place as a map instead
    // of structured Istio types.  (The go-client can handle the structured data, but the
    // fake go-client used for mocking cannot.)
    func unstructureIstioType(spec any) (map[string]any, error) {
    	b, err := yaml.Marshal(spec)
    	if err != nil {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Apr 17 20:06:41 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  2. istioctl/pkg/validate/validate.go

    )
    
    type validator struct{}
    
    func checkFields(un *unstructured.Unstructured) error {
    	var errs error
    	for key := range un.Object {
    		if _, ok := validFields[key]; !ok {
    			errs = multierror.Append(errs, fmt.Errorf("unknown field %q", key))
    		}
    	}
    	return errs
    }
    
    func (v *validator) validateResource(istioNamespace, defaultNamespace string, un *unstructured.Unstructured, writer io.Writer) (validation.Warning, error) {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Jan 22 17:58:52 GMT 2024
    - 15K bytes
    - Viewed (0)
  3. istioctl/pkg/validate/validate_test.go

      labels:
        service.istio.io/canonical-name: helloworld
        service.istio.io/canonical-revision: v1
    spec:
      replicas: 1
    `
    )
    
    func fromYAML(in string) *unstructured.Unstructured {
    	var un unstructured.Unstructured
    	if err := yaml.Unmarshal([]byte(in), &un); err != nil {
    		panic(err)
    	}
    	return &un
    }
    
    func TestValidateResource(t *testing.T) {
    	cases := []struct {
    		name  string
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Jul 25 08:08:36 GMT 2023
    - 21.5K bytes
    - Viewed (0)
  4. operator/cmd/mesh/manifest-generate_test.go

    		dobj = mustGetDeployment(g, objs, "ilb-gateway")
    		d = dobj.Unstructured()
    		c = dobj.Container("istio-proxy")
    		s := mustGetService(g, objs, "ilb-gateway").Unstructured()
    		g.Expect(d).Should(HavePathValueContain(PathValue{"metadata.labels", toMap("app:istio-ingressgateway,istio:ingressgateway,release: istio")}))
    		g.Expect(c).Should(HavePathValueEqual(PathValue{"resources.requests.cpu", "333m"}))
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Thu Feb 22 08:32:23 GMT 2024
    - 42K bytes
    - Viewed (0)
  5. operator/cmd/mesh/manifest_shared_test.go

    package mesh
    
    import (
    	"bytes"
    	"context"
    	"errors"
    	"fmt"
    	"os"
    	"path/filepath"
    	"strings"
    
    	kerrors "k8s.io/apimachinery/pkg/api/errors"
    	"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
    	"k8s.io/apimachinery/pkg/runtime/schema"
    	"k8s.io/apimachinery/pkg/types"
    	"k8s.io/client-go/kubernetes"
    	"k8s.io/client-go/kubernetes/scheme"
    	"sigs.k8s.io/controller-runtime/pkg/client"
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Tue Feb 20 22:39:28 GMT 2024
    - 11.7K bytes
    - Viewed (1)
  6. operator/cmd/mesh/test-util_test.go

    	for _, o := range objs {
    		if o.Kind == kind && o.Name == name {
    			return o
    		}
    	}
    	return nil
    }
    
    // mustGetValueAtPath returns the value at the given path in the unstructured tree t. Fails if the path is not found
    // in the tree.
    func mustGetValueAtPath(g *WithT, t map[string]any, path string) any {
    	got, f, err := tpath.GetPathContext(t, util.PathFromString(path), false)
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  7. architecture/environments/operator.md

    [default profile](../manifests/profiles/default.yaml) is used. Each profile is defined as a
    set of defaults for `IstioOperatorSpec`, for both the restructured fields (K8s settings, namespaces and enablement)
    and the Helm values (Istio behavior configuration).
    
    1. The fields defined in the user CR override any values defined in the configuration profile CR.  The
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Aug 09 22:09:18 GMT 2023
    - 13.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/graph/Graph.java

    import java.util.Collection;
    import java.util.Set;
    import javax.annotation.CheckForNull;
    
    /**
     * An interface for <a
     * href="https://en.wikipedia.org/wiki/Graph_(discrete_mathematics)">graph</a>-structured data,
     * whose edges are anonymous entities with no identity or information of their own.
     *
     * <p>A graph is composed of a set of nodes and a set of edges connecting pairs of nodes.
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/graph/ValueGraph.java

    import com.google.common.annotations.Beta;
    import java.util.Set;
    import javax.annotation.CheckForNull;
    
    /**
     * An interface for <a
     * href="https://en.wikipedia.org/wiki/Graph_(discrete_mathematics)">graph</a>-structured data,
     * whose edges have associated non-unique values.
     *
     * <p>A graph is composed of a set of nodes and a set of edges connecting pairs of nodes.
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 15K bytes
    - Viewed (0)
  10. CONTRIBUTING.md

    ```
    
    Here are the steps to resolve the issue:
    
    1. Open the failure report mentioned in the output.\
    If you don't see the report link in the output in the IDE, make sure to select the top-level node in the structured output panel.
    The report will explain the errors in detail.
    Perhaps, you forgot to add an `@Incubating` annotation or `@since` in the javadoc.
    
    2. Accept the changes.\
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Feb 09 15:30:53 GMT 2024
    - 15.6K bytes
    - Viewed (0)
Back to top