Skip to content

Commit 038d5ed

Browse files
authored
Enable var substitution
1 parent 0ff9e00 commit 038d5ed

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

documentation/modules/ROOT/pages/_partials/watching-build-logs.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ The Knative build creates an init container for each build step. The init contai
22

33
The following command can be used to watch the log of a specific container within a pod,
44

5-
[source,bash]
5+
[source,bash,subs="+macros,+attributes"]
66
----
77
kubectl logs -n {tutorial-namespace} <pod-name> -c <build-init-container-name>
88
----
99

1010
**(OR)**
1111

12-
[source,bash]
12+
[source,bash,subs="+macros,+attributes"]
1313
----
1414
oc logs -n {tutorial-namespace} <pod-name> -c <build-init-container-name>
1515
----
@@ -25,7 +25,7 @@ kubectl logs -n {tutorial-namespace} event-greeter-build-pod-2a271e -c build-ste
2525

2626
**(OR)**
2727

28-
[source,bash]
28+
[source,bash,subs="+macros,+attributes"]
2929
----
3030
oc logs -n {tutorial-namespace} event-greeter-build-pod-2a271e -c build-step-docker-push
3131
----
@@ -36,14 +36,14 @@ oc logs -n {tutorial-namespace} event-greeter-build-pod-2a271e -c build-step-doc
3636
3737
(e.g.) the following command lists all the init container names of the pod `event-greeter-build-pod-2986f2`
3838
39-
[source,bash]
39+
[source,bash,subs="+macros,+attributes"]
4040
----
4141
kubectl -n {tutorial-namespace} get pods event-greeter-build-pod-2986f2 -o yaml | yq r - spec.initContainers[*].name
4242
----
4343
4444
**(OR)**
4545
46-
[source,bash]
46+
[source,bash,subs="+macros,+attributes"]
4747
----
4848
oc -n {tutorial-namespace} get pods event-greeter-build-pod-2986f2 -o yaml | yq r - spec.initContainers[*].name
4949
----

0 commit comments

Comments
 (0)