Skip to content

Commit 93d2357

Browse files
committed
(fix): Add copy to clipboard
- added copy to clipboard to setup - added copy to clipboard to basics - added copy to clipboard to configs and routes - added copy to clipboard to scaling - added copy to clipboard to build - added copy to clipboard to eventing - made quarkus as default - fixes for revision pinning and traffic distribution - tutorial namespace made as asciidoc attribute - replaced yq with sed - fixed template names Fixes #42, #85, #66, #115 Fixes #42, #85, #66 (fix): Add clip to copy to build chapters
1 parent 7e2a047 commit 93d2357

37 files changed

Lines changed: 965 additions & 570 deletions

02-basics/knative/service-pinned-rev2.yaml

Lines changed: 0 additions & 21 deletions
This file was deleted.

02-basics/knative/service-pinned-rev1.yaml renamed to 02-basics/knative/service-pinned.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: greeter
55
spec:
66
release:
7-
revisions: ["greeter-00001"]
7+
revisions: $revision
88
configuration:
99
revisionTemplate:
1010
spec:

03-configs-and-routes/route/route_all_rev2.yaml

Lines changed: 0 additions & 8 deletions
This file was deleted.

03-configs-and-routes/route/route_all_rev1.yaml renamed to 03-configs-and-routes/route/route_all_to_revision.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ metadata:
44
name: greeter
55
spec:
66
traffic:
7-
- revisionName: greeter-00001
7+
- revisionName: $revision
88
percent: 100

03-configs-and-routes/route/route_rev1-10_rev2-90.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: greeter
55
spec:
66
traffic:
7-
- revisionName: greeter-00001
7+
- revisionName: $revision1
88
percent: 10
9-
- revisionName: greeter-00002
9+
- revisionName: $revision2
1010
percent: 90

03-configs-and-routes/route/route_rev1-50_rev2-50.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: greeter
55
spec:
66
traffic:
7-
- revisionName: greeter-00001
7+
- revisionName: $revision1
88
percent: 50
9-
- revisionName: greeter-00002
9+
- revisionName: $revision2
1010
percent: 50

03-configs-and-routes/route/route_rev1-75_rev2-25.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: greeter
55
spec:
66
traffic:
7-
- revisionName: greeter-00001
7+
- revisionName: $revision1
88
percent: 75
9-
- revisionName: greeter-00002
9+
- revisionName: $revision2
1010
percent: 25

05-build/knative/maven-build-template.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
- "/usr/local/bin/buildah.sh"
1616
env:
1717
- name: WORK_DIR
18-
value: /workspace/${CONTEXT_DIR}
18+
value: ${CONTEXT_DIR}
1919
- name: DESTINATION_NAME
2020
value: ${IMAGE}
2121
# uncomment this if you have MAVEN_MIRROR thats is reachable from your kube cluster
@@ -33,7 +33,7 @@ spec:
3333
name: m2-cache
3434
- mountPath: /var/lib/containers
3535
name: container-storage
36-
workingDir: /workspace/${CONTEXT_DIR}
36+
workingDir: ${CONTEXT_DIR}
3737
timeout: 60m
3838
volumes:
3939
- name: m2-cache

documentation/modules/ROOT/pages/01-setup.adoc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
= Setup
22
include::_attributes.adoc[]
33

4-
[#prerequisite]
4+
[[prerequisite]]
55
== Prerequisite CLI tools
66

77
The following CLI tools are required for running the exercises in this tutorial. Please have them installed and configured before you get started with any of the tutorial chapters.
@@ -64,10 +64,12 @@ The following CLI tools are required for running the exercises in this tutorial.
6464
== Download Tutorial Sources
6565
Before we start setting up the environment, let's clone the tutorial sources and set the `TUTORIAL_HOME` environment variable to point to the root directory of the tutorial:
6666

67-
[source,bash]
67+
[#cloneRepo]
68+
[source,bash,subs="+macros,+attributes"]
6869
----
69-
git clone https://github.com/redhat-developer-demos/knative-tutorial
70+
git clone https://github.com/redhat-developer-demos/knative-tutorial
7071
----
72+
copyToClipboard::cloneRepo[]
7173

7274
The `work` folder in `$TUTORIAL_HOME` can be used to download the demo application resources and refer to them during the exercises. The `work` folder has a README with instructions on the source code repo and git commands to clone the sources.
7375

0 commit comments

Comments
 (0)