Skip to content

Commit 136915c

Browse files
committed
feat(STONEINTG-892): update doc for override snapshot
* update doc to add snapshotComponent's source for override snapshot Signed-off-by: Hongwei Liu <[email protected]>
1 parent 00a6d87 commit 136915c

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

docs/modules/ROOT/pages/how-tos/testing/integration/creatingoverridesnapshot.adoc

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,22 @@ spec:
3030
components:
3131
- name: component-sample <2>
3232
containerImage: quay.io/redhat-user-workloads/ws-sample-tenant/application-sample/component-sample@sha256:0db0a473a6abf5c15c424ab07cfbd5c40c06622fe648d4fe6a6b6abc224a0d0c <3>
33+
source: <4>
34+
git:
35+
revision: fa8b89274a61ef0f1c257b7a84c37aa2ec844109
3336
----
3437
<1> The label `test.appstudio.openshift.io/type: override` that indicates this is an `override` snapshot.
3538
<2> The component name you will reset its Global Candidate List.
3639
<3> The container image with valid digest you will reset the component <2> to.
37-
40+
<4> Optional. The component source containing the git revision.
3841

3942
. Save the .yaml file and add the snapshot.yaml by running the following command:
4043
+
4144
[source,terminal]
4245
----
4346
$ oc create -f snapshot.yaml -n ws-sample-tenant
4447
----
45-
This command adds the `override` snapshot to your workspace and Integration service will processe the `override` snapshot and update the component `component-sample`'s `.Spec.ContainerImage` to `quay.io/redhat-user-workloads/ws-sample-tenant/application-sample/component-sample@sha256:0db0a473a6abf5c15c424ab07cfbd5c40c06622fe648d4fe6a6b6abc224a0d0c`
48+
This command adds the `override` snapshot to your workspace and integration service will processe the `override` snapshot and update the component `component-sample` 's `.Spec.ContainerImage` to `quay.io/redhat-user-workloads/ws-sample-tenant/application-sample/component-sample@sha256:0db0a473a6abf5c15c424ab07cfbd5c40c06622fe648d4fe6a6b6abc224a0d0c`
4649

4750
== Verification
4851
After integration service processes the created `override` snapshot, you may verify snapshot and component by the following steps:
@@ -59,7 +62,7 @@ status: "True"
5962
type: AddedToGlobalCandidateList
6063
----
6164

62-
. Browse to the component you are updating and select the **Component details** tab. The updated container image is shown under **Image** column.
65+
. Browse to the component you are updating and select the **Component details** tab. The updated container image is shown under **Image** column. The updated source is shown under **Source code** column.
6366

6467
. Check component's `.Spec.ContainerImage` by the following command:
6568
+
@@ -68,3 +71,11 @@ type: AddedToGlobalCandidateList
6871
$ oc get component component-sample -n ws-sample-tenant -o yaml | yq .spec.containerImage
6972
quay.io/redhat-user-workloads/ws-sample-tenant/application-sample/component-sample@sha256:0db0a473a6abf5c15c424ab07cfbd5c40c06622fe648d4fe6a6b6abc224a0d0c
7073
----
74+
75+
. Check component's `.Status.LastBuiltCommit` by the following command:
76+
+
77+
[source,terminal]
78+
----
79+
$ oc get component component-sample -n ws-sample-tenant -o yaml | yq .status.lastBuiltCommit
80+
fa8b89274a61ef0f1c257b7a84c37aa2ec844109
81+
----

0 commit comments

Comments
 (0)