MCPcopy
hub / github.com/kubernetes/kubectl / printTemplate

Function printTemplate

pkg/polymorphichelpers/history.go:181–186  ·  view source on GitHub ↗
(template *corev1.PodTemplateSpec)

Source from the content-addressed store, hash-verified

179}
180
181func printTemplate(template *corev1.PodTemplateSpec) (string, error) {
182 buf := bytes.NewBuffer([]byte{})
183 w := describe.NewPrefixWriter(buf)
184 describe.DescribePodTemplate(template, w)
185 return buf.String(), nil
186}
187
188type DaemonSetHistoryViewer struct {
189 c kubernetes.Interface

Callers 4

ViewHistoryMethod · 0.85
printHistoryFunction · 0.85
RollbackMethod · 0.85
printPodTemplateFunction · 0.85

Calls 3

NewPrefixWriterFunction · 0.92
DescribePodTemplateFunction · 0.92
StringMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…