Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for errcode (0.2 sec)

  1. istioctl/pkg/kubeinject/kubeinject.go

    					return err
    				}
    				reader = in
    				defer func() {
    					if errClose := in.Close(); errClose != nil {
    						log.Errorf("Error: close file from %s, %s", inFilename, errClose)
    
    						// don't overwrite the previous error
    						if err == nil {
    							err = errClose
    						}
    					}
    				}()
    			}
    
    			var writer io.Writer
    			if outFilename == "" {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 29 02:29:02 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  2. common-protos/k8s.io/api/apiserverinternal/v1alpha1/generated.proto

      // Spec is an empty spec. It is here to comply with Kubernetes API style.
      optional StorageVersionSpec spec = 2;
    
      // API server instances report the version they can decode and the version they
      // encode objects to when persisting objects in the backend.
      optional StorageVersionStatus status = 3;
    }
    
    // Describes the state of the storageVersion at a certain point.
    message StorageVersionCondition {
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  3. operator/cmd/mesh/profile-dump.go

    // Convert the generated YAML to pretty JSON.
    func yamlToPrettyJSON(yml string) (string, error) {
    	// YAML objects are not completely compatible with JSON
    	// objects. Let yaml.YAMLToJSON handle the edge cases and
    	// we'll re-encode the result to pretty JSON.
    	uglyJSON, err := yaml.YAMLToJSON([]byte(yml))
    	if err != nil {
    		return "", err
    	}
    	var decoded any
    	if uglyJSON[0] == '[' {
    		decoded = make([]any, 0)
    	} else {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  4. architecture/ambient/ztunnel.md

    Because Ztunnel can have Istio semantics baked in, we do not need to encode all this information on the wire.
    Instead, an Istio specific field like `ExpectedTLSIdentity: spiffe://foo.bar` can encode the same information, at a fraction of the cost.
    
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 25 22:35:16 GMT 2024
    - 16.6K bytes
    - Viewed (0)
  5. istioctl/pkg/admin/istiodconfig.go

    	}
    	return scopeInfos, nil
    }
    
    func (c *ControlzClient) PutScope(scope *ScopeInfo) error {
    	var jsonScopeInfo bytes.Buffer
    	err := json.NewEncoder(&jsonScopeInfo).Encode(scope)
    	if err != nil {
    		return fmt.Errorf("cannot serialize scope %+v", *scope)
    	}
    	req, err := http.NewRequest(http.MethodPut, c.baseURL.String()+"/"+scope.Name, &jsonScopeInfo)
    	if err != nil {
    		return err
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  6. 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 08 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 255.8K bytes
    - Viewed (0)
  7. common-protos/k8s.io/apimachinery/pkg/runtime/generated.proto

      // with a registered type. Most likely, nothing should be done with this
      // except for passing it through the system.
      optional bytes raw = 2;
    
      // ContentEncoding is encoding used to encode 'Raw' data.
      // Unspecified means no encoding.
      optional string contentEncoding = 3;
    
      // ContentType  is serialization method used to serialize 'Raw'.
      // Unspecified means ContentTypeJSON.
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  8. istioctl/pkg/multicluster/remote_secret.go

    	return c
    }
    
    func createRemoteServiceAccountSecret(kubeconfig *api.Config, clusterName, secName string) (*v1.Secret, error) { // nolint:interfacer
    	var data bytes.Buffer
    	if err := latest.Codec.Encode(kubeconfig, &data); err != nil {
    		return nil, err
    	}
    	key := clusterName
    	if secName == configSecretName {
    		key = configSecretKey
    	}
    	out := &v1.Secret{
    		ObjectMeta: metav1.ObjectMeta{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Oct 11 01:43:17 GMT 2023
    - 24K bytes
    - Viewed (0)
  9. istioctl/pkg/multicluster/remote_secret_test.go

    			wantErrStr: `no "token" data found`,
    		},
    		{
    			testName:          "fail to encode secret",
    			objs:              []runtime.Object{kubeSystemNamespace, sa, saSecret},
    			outputWriterError: errors.New("injected encode error"),
    			wantErrStr:        "injected encode error",
    		},
    		{
    			testName: "success",
    			objs:     []runtime.Object{kubeSystemNamespace, sa, saSecret},
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 20.6K bytes
    - Viewed (0)
  10. istioctl/pkg/tag/generate.go

    		if failurePolicy, ok := config.FailurePolicy[decodedWh.Webhooks[i].Name]; ok {
    			decodedWh.Webhooks[i].FailurePolicy = failurePolicy
    		}
    	}
    
    	whBuf := new(bytes.Buffer)
    	if err = serializer.Encode(decodedWh, whBuf); err != nil {
    		return "", err
    	}
    
    	return whBuf.String(), nil
    }
    
    func generateLabels(whLabels, curLabels, customLabels map[string]string, userManaged bool) map[string]string {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Jan 16 17:43:49 GMT 2024
    - 13.2K bytes
    - Viewed (0)
Back to top