Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 60 for Unstructured (0.44 sec)

  1. 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 Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Jan 22 17:58:52 GMT 2024
    - 15K bytes
    - Viewed (0)
  2. istioctl/pkg/wait/wait_test.go

    			t.Fatalf("Unwanted exception for 'istioctl %s': %v", strings.Join(c.args, " "), fErr)
    		}
    	}
    }
    
    func newUnstructured(apiVersion, kind, namespace, name string, generation int64) *unstructured.Unstructured {
    	return &unstructured.Unstructured{
    		Object: map[string]any{
    			"apiVersion": apiVersion,
    			"kind":       kind,
    			"metadata": map[string]any{
    				"namespace":  namespace,
    				"name":       name,
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 08:28:50 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  3. 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 Apr 24 22:53:08 GMT 2024
    - Last Modified: Wed Apr 17 20:06:41 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  4. 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 Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Jul 25 08:08:36 GMT 2023
    - 21.5K 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 (0)
  6. 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)
  7. 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)
  8. common-protos/k8s.io/api/admission/v1beta1/generated.proto

      // +optional
      optional bytes patch = 4;
    
      // The type of Patch. Currently we only allow "JSONPatch".
      // +optional
      optional string patchType = 5;
    
      // AuditAnnotations is an unstructured key value map set by remote admission controller (e.g. error=image-blacklisted).
      // MutatingAdmissionWebhook and ValidatingAdmissionWebhook admission controller will prefix the keys with
    Plain Text
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  9. common-protos/k8s.io/api/admission/v1/generated.proto

      // +optional
      optional bytes patch = 4;
    
      // The type of Patch. Currently we only allow "JSONPatch".
      // +optional
      optional string patchType = 5;
    
      // AuditAnnotations is an unstructured key value map set by remote admission controller (e.g. error=image-blacklisted).
      // MutatingAdmissionWebhook and ValidatingAdmissionWebhook admission controller will prefix the keys with
    Plain Text
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  10. CHANGELOG/CHANGELOG-1.26.md

    - Moved `LocalStorageCapacityIsolationFSQuotaMonitoring` back to Alpha. ([#112076](https://github.com/kubernetes/kubernetes/pull/112076),...
    Plain Text
    - Registered: Fri Apr 26 09:05:10 GMT 2024
    - Last Modified: Thu Mar 14 16:24:51 GMT 2024
    - 425.7K bytes
    - Viewed (0)
Back to top