Skip to content

Commit 167e110

Browse files
committed
describe build config
1 parent 44b08a1 commit 167e110

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkg/oc/cli/describe/describer.go

+8
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,14 @@ func describeCommonSpec(p buildapi.CommonSpec, out *tabwriter.Writer) {
344344
}
345345
formatString(out, "Build Secrets", strings.Join(result, ","))
346346
}
347+
if len(p.Source.ConfigMaps) > 0 {
348+
result := []string{}
349+
for _, c := range p.Source.ConfigMaps {
350+
result = append(result, fmt.Sprintf("%s->%s", c.ConfigMap.Name, filepath.Clean(c.DestinationDir)))
351+
}
352+
formatString(out, "Build ConfigMaps", strings.Join(result, ","))
353+
}
354+
347355
if len(p.Source.Images) == 1 && len(p.Source.Images[0].Paths) == 1 {
348356
noneType = false
349357
image := p.Source.Images[0]

0 commit comments

Comments
 (0)