Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for PrintBytesWithLinePrefix (0.2 sec)

  1. cmd/kubeadm/app/util/apiclient/dryrunclient.go

    			fmt.Println("[dryrun] Attached object:")
    			PrintBytesWithLinePrefix(w, objBytes, "\t")
    		}
    	}
    
    	patchAction, ok := action.(core.PatchAction)
    	if ok {
    		// Replace all occurrences of \" with a simple " when printing
    		fmt.Fprintf(w, "[dryrun] Attached patch:\n\t%s\n", strings.Replace(string(patchAction.GetPatch()), `\"`, `"`, -1))
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 21 09:49:59 UTC 2022
    - 10.3K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/util/dryrun/dryrun.go

    		outputFilePath := file.PrintPath
    		if len(outputFilePath) == 0 {
    			outputFilePath = file.RealPath
    		}
    
    		fmt.Fprintf(w, "[dryrun] Would write file %q with content:\n", outputFilePath)
    		apiclient.PrintBytesWithLinePrefix(w, fileBytes, "\t")
    	}
    	return errorsutil.NewAggregate(errs)
    }
    
    // Waiter is an implementation of apiclient.Waiter that should be used for dry-running
    type Waiter struct{}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 07:10:31 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/phases/addons/proxy/proxy.go

    	}
    
    	proxyBytes, err := kubeProxyCfg.Marshal()
    	if err != nil {
    		return []byte(""), errors.Wrap(err, "error when marshaling")
    	}
    	var prefixBytes bytes.Buffer
    	apiclient.PrintBytesWithLinePrefix(&prefixBytes, proxyBytes, "    ")
    	configMapBytes, err := kubeadmutil.ParseTemplate(KubeProxyConfigMap19,
    		struct {
    			ControlPlaneEndpoint string
    			ProxyConfig          string
    			ProxyConfigMap       string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 26 13:23:44 UTC 2023
    - 8.1K bytes
    - Viewed (0)
Back to top