Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 28 of 28 for Marshall (0.14 sec)

  1. common-protos/k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto

      // - All: all dry run stages will be processed
      // +optional
      repeated string dryRun = 5;
    }
    
    // Duration is a wrapper around time.Duration which supports correct
    // marshaling to YAML and JSON. In particular, it marshals into strings, which
    // can be used as map keys in json.
    message Duration {
      optional int64 duration = 1;
    }
    
    // FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.
    //
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 53.3K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/cni-watcher_test.go

    	}
    
    	payload, _ := json.Marshal(valid)
    
    	addEvent, err := processAddEvent(payload)
    
    	assert.NoError(t, err)
    	assert.Equal(t, valid, addEvent)
    }
    
    func TestProcessAddEventBadPayload(t *testing.T) {
    	valid := CNIPluginAddEvent{
    		Netns:        "/var/netns/foo",
    		PodName:      "pod-bingo",
    		PodNamespace: "funkyns",
    	}
    
    	payload, _ := json.Marshal(valid)
    
    	invalid := string(payload) + "funkyjunk"
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu May 02 21:29:40 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  3. cni/pkg/install/kubeconfig.go

    	}
    
    	lcfg, err := latest.Scheme.ConvertToVersion(kcfg, latest.ExternalVersion)
    	if err != nil {
    		return kubeconfig{}, err
    	}
    	// Convert to v1 schema which has proper encoding
    	fullYaml, err := yaml.Marshal(lcfg)
    	if err != nil {
    		return kubeconfig{}, err
    	}
    
    	// Log with redaction
    	if err := api.RedactSecrets(kcfg); err != nil {
    		return kubeconfig{}, err
    	}
    	for _, c := range kcfg.Clusters {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Aug 11 01:19:03 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  4. istioctl/pkg/workload/workload.go

    	iSpec, err := unstructureIstioType(spec)
    	if err != nil {
    		return nil, err
    	}
    	u.Object["spec"] = iSpec
    
    	wgYAML, err := yaml.Marshal(u.Object)
    	if err != nil {
    		return nil, err
    	}
    	return wgYAML, nil
    }
    
    func configureCommand(ctx cli.Context) *cobra.Command {
    	var opts clioptions.ControlPlaneOptions
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Apr 17 20:06:41 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  5. cni/pkg/plugin/cnieventclient.go

    	}
    	// Currently we only use the netns from the original CNI event
    	addEvent := nodeagent.CNIPluginAddEvent{Netns: event.Netns, PodName: podName, PodNamespace: podNamespace, IPs: ncconfigs}
    	eventData, err := json.Marshal(addEvent)
    	if err != nil {
    		return err
    	}
    	var response *http.Response
    	response, err = cniClient.client.Post(cniClient.url, "application/json", bytes.NewBuffer(eventData))
    	if err != nil {
    		return err
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  6. cni/pkg/util/pluginutil.go

    	plugin, ok := rawPlugin.(map[string]any)
    	if !ok {
    		err = fmt.Errorf("error reading plugin from CNI config plugin list")
    		return
    	}
    	return
    }
    
    // Marshal the CNI config map and append a new line
    func MarshalCNIConfig(cniConfigMap map[string]any) ([]byte, error) {
    	cniConfig, err := json.MarshalIndent(cniConfigMap, "", "  ")
    	if err != nil {
    		return nil, err
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  7. istioctl/pkg/wait/wait_test.go

    	cannedResponseObj := []xds.SyncedVersions{
    		{
    			ProxyID:         "foo",
    			ClusterVersion:  "1",
    			ListenerVersion: "1",
    			RouteVersion:    "1",
    			EndpointVersion: "1",
    		},
    	}
    	cannedResponse, _ := json.Marshal(cannedResponseObj)
    	cannedResponseMap := map[string][]byte{"onlyonepilot": cannedResponse}
    
    	distributionTrackingDisabledResponse := xds.DistributionTrackingDisabledMessage
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 08:28:50 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  8. operator/cmd/mesh/manifest-generate_test.go

    }
    
    func mustGetWebhook(t test.Failer, obj object.K8sObject) []v1.MutatingWebhook {
    	t.Helper()
    	path := mustGetPath(t, obj, "webhooks")
    	by, err := json.Marshal(path)
    	if err != nil {
    		t.Fatal(err)
    	}
    	var mwh []v1.MutatingWebhook
    	if err := json.Unmarshal(by, &mwh); err != nil {
    		t.Fatal(err)
    	}
    	return mwh
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 18 18:16:49 GMT 2024
    - 43.5K bytes
    - Viewed (0)
Back to top