Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for decoders (0.18 sec)

  1. istioctl/pkg/tag/util.go

    // switch back to it. This is a hack but it is meant to cover a corner case where a user wants to migrate from a non-revisioned
    // old version and then later decides to switch back to the old revision again.
    func DeactivateIstioInjectionWebhook(ctx context.Context, client kubernetes.Interface) error {
    	whs, err := GetWebhooksWithRevision(ctx, client, DefaultRevisionName)
    	if err != nil {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Jan 16 17:43:42 GMT 2024
    - 5.4K bytes
    - Viewed (1)
  2. istioctl/pkg/waypoint/waypoint.go

    			kubeClient, err := ctx.CLIClientWithRevision(revision)
    			if err != nil {
    				return fmt.Errorf("failed to create Kubernetes client: %v", err)
    			}
    			ns := ctx.NamespaceOrDefault(ctx.Namespace())
    			// If a user decides to enroll their namespace with a waypoint, verify that they have labeled their namespace as ambient.
    			// If they don't, the user will be warned and be presented with the command to label their namespace as ambient if they
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed May 01 16:16:40 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. common-protos/k8s.io/api/core/v1/generated.proto

      // +featureGate=InPlacePodVerticalScaling
      // +optional
      optional string resize = 14;
    }
    
    // PodStatusResult is a wrapper for PodStatus returned by kubelet that can be encode/decoded
    message PodStatusResult {
      // Standard object's metadata.
      // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
      // +optional
    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)
Back to top