Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for decoder (0.23 sec)

  1. istioctl/pkg/validate/validate.go

    ) (validation.Warning, error) {
    	decoder := yaml.NewDecoder(reader)
    	decoder.SetStrict(true)
    	var errs error
    	var warnings validation.Warning
    	for {
    		// YAML allows non-string keys and the produces generic keys for nested fields
    		raw := make(map[any]any)
    		err := decoder.Decode(&raw)
    		if err == io.EOF {
    			return warnings, errs
    		}
    		if err != nil {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Jan 22 17:58:52 GMT 2024
    - 15K bytes
    - Viewed (0)
  2. common-protos/k8s.io/api/core/v1/generated.proto

      // scheduled right away as preemption victims receive their graceful termination periods.
      // This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide
      // to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to
      // give the resources on this node to a higher priority pod that is created after preemption.
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 255.8K bytes
    - Viewed (0)
  3. common-protos/k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto

      // or duplicate fields. Valid values are:
      // - Ignore: This will ignore any unknown fields that are silently
      // dropped from the object, and will ignore all but the last duplicate
      // field that the decoder encounters. This is the default behavior
      // prior to v1.23.
      // - Warn: This will send a warning via the standard warning response
      // header for each unknown field that is dropped from the object, and
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 53.3K bytes
    - Viewed (0)
  4. operator/cmd/mesh/profile-dump.go

    	uglyJSON, err := yaml.YAMLToJSON([]byte(yml))
    	if err != nil {
    		return "", err
    	}
    	var decoded any
    	if uglyJSON[0] == '[' {
    		decoded = make([]any, 0)
    	} else {
    		decoded = map[string]any{}
    	}
    	if err := json.Unmarshal(uglyJSON, &decoded); err != nil {
    		return "", err
    	}
    	prettyJSON, err := json.MarshalIndent(decoded, "", "    ")
    	if err != nil {
    		return "", err
    	}
    	return string(prettyJSON), nil
    }
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  5. istioctl/pkg/kubeinject/kubeinject.go

    		return nil, err
    	}
    	var obj runtime.Object
    	var ar *kube.AdmissionReview
    	out, _, err := deserializer.Decode(body, nil, obj)
    	if err != nil {
    		return nil, fmt.Errorf("could not decode body: %v", err)
    	}
    	ar, err = kube.AdmissionReviewKubeToAdapter(out)
    	if err != nil {
    		return nil, fmt.Errorf("could not decode object: %v", err)
    	}
    
    	return ar.Response.Patch, nil
    }
    
    var (
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Mar 29 02:29:02 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  6. istioctl/pkg/admin/istiodconfig.go

    	if err != nil {
    		return nil, err
    	}
    	defer resp.Body.Close()
    	if resp.StatusCode != http.StatusOK {
    		return nil, fmt.Errorf("request not successful %s", resp.Status)
    	}
    
    	err = json.NewDecoder(resp.Body).Decode(&scopeInfos)
    	if err != nil {
    		return nil, fmt.Errorf("cannot deserialize response %s", err)
    	}
    	return scopeInfos, nil
    }
    
    func (c *ControlzClient) PutScope(scope *ScopeInfo) error {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  7. common-protos/k8s.io/api/apiserverinternal/v1alpha1/generated.proto

    // Package-wide variables from generator "generated".
    option go_package = "k8s.io/api/apiserverinternal/v1alpha1";
    
    // An API server instance reports the version it can decode and the version it
    // encodes objects to when persisting objects in the backend.
    message ServerStorageVersion {
      // The ID of the reporting API server.
      optional string apiServerID = 1;
    
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  8. common-protos/k8s.io/api/admissionregistration/v1/generated.proto

      // a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
      //
      // Defaults to "Equivalent"
      // +optional
      optional string matchPolicy = 9;
    
      // NamespaceSelector decides whether to run the webhook on an object based
      // on whether the namespace for that object matches the selector. If the
      // object itself is a namespace, the matching is performed on
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 24.4K bytes
    - Viewed (0)
  9. common-protos/k8s.io/api/admissionregistration/v1beta1/generated.proto

      // a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
      //
      // Defaults to "Exact"
      // +optional
      optional string matchPolicy = 9;
    
      // NamespaceSelector decides whether to run the webhook on an object based
      // on whether the namespace for that object matches the selector. If the
      // object itself is a namespace, the matching is performed on
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  10. istioctl/pkg/tag/generate_test.go

    			}
    			webhookYAML, err := generateValidatingWebhook(webhookConfig, opts)
    			if err != nil {
    				t.Fatalf("tag webhook YAML generation failed with error: %v", err)
    			}
    
    			vwhObject, _, err := deserializer.Decode([]byte(webhookYAML), nil, &admitv1.ValidatingWebhookConfiguration{})
    			if err != nil {
    				t.Fatalf("could not parse webhook from generated YAML: %s", vwhObject)
    			}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Jan 16 17:43:49 GMT 2024
    - 12.1K bytes
    - Viewed (0)
Back to top