Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for MarshalToYaml (0.5 sec)

  1. cmd/kubeadm/app/util/staticpod/utils.go

    	if bytes.Equal(hash1, hash2) {
    		return true, "", nil
    	}
    
    	manifest1, err := kubeadmutil.MarshalToYaml(pod1, v1.SchemeGroupVersion)
    	if err != nil {
    		return false, "", errors.Wrapf(err, "failed to marshal Pod manifest for %q to YAML", path1)
    	}
    
    	manifest2, err := kubeadmutil.MarshalToYaml(pod2, v1.SchemeGroupVersion)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 14 13:07:56 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/util/apiclient/dryrunclient.go

    // DefaultMarshalFunc is the default MarshalFunc used; uses YAML to print objects to the user
    func DefaultMarshalFunc(obj runtime.Object, gv schema.GroupVersion) ([]byte, error) {
    	return kubeadmutil.MarshalToYaml(obj, gv)
    }
    
    // DryRunClientOptions specifies options to pass to NewDryRunClientWithOpts in order to get a dryrun clientset
    type DryRunClientOptions struct {
    	Writer          io.Writer
    	Getter          DryRunGetter
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 21 09:49:59 UTC 2022
    - 10.3K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/util/marshal_test.go

    			Namespace: "testNamespace",
    			Labels: map[string]string{
    				"test": "yes",
    			},
    		},
    		Spec: corev1.PodSpec{
    			RestartPolicy: corev1.RestartPolicyAlways,
    		},
    	}
    
    	bytes, err := MarshalToYaml(pod, corev1.SchemeGroupVersion)
    	if err != nil {
    		t.Fatalf("unexpected error marshalling: %v", err)
    	}
    
    	t.Logf("\n%s", bytes)
    
    	obj2, err := UniversalUnmarshal(bytes)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 05:14:21 UTC 2024
    - 11.6K bytes
    - Viewed (0)
Back to top