Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #274 from hongweiliu17/STONEINTG-892
Browse files Browse the repository at this point in the history
feat(STONEINTG-892): update doc for override snapshot
  • Loading branch information
Chr1st1anSears authored Jun 26, 2024
2 parents bdc636f + 3ad5a33 commit 02d0229
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,14 @@ spec:
components:
- name: component-sample <2>
containerImage: quay.io/redhat-user-workloads/ws-sample-tenant/application-sample/component-sample@sha256:0db0a473a6abf5c15c424ab07cfbd5c40c06622fe648d4fe6a6b6abc224a0d0c <3>
source: <4>
git:
revision: fa8b89274a61ef0f1c257b7a84c37aa2ec844109
----
<1> The label `test.appstudio.openshift.io/type: override` that indicates this is an `override` snapshot.
<2> The component name you will reset its Global Candidate List.
<3> The container image with valid digest you will reset the component <2> to.
<4> Optional. The component source containing the git revision.


. Save the .yaml file and add the snapshot.yaml by running the following command:
Expand All @@ -61,7 +65,7 @@ status: "True"
type: AddedToGlobalCandidateList
----

. Browse to the component you are updating and select the **Component details** tab. The updated container image is shown under **Image** column.
. 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.

. Check component's `.Spec.ContainerImage` by the following command:
+
Expand All @@ -70,3 +74,11 @@ type: AddedToGlobalCandidateList
$ oc get component component-sample -n ws-sample-tenant -o yaml | yq .spec.containerImage
quay.io/redhat-user-workloads/ws-sample-tenant/application-sample/component-sample@sha256:0db0a473a6abf5c15c424ab07cfbd5c40c06622fe648d4fe6a6b6abc224a0d0c
----

. Check component's `.Status.LastBuiltCommit` by the following command:
+
[source,terminal]
----
$ oc get component component-sample -n ws-sample-tenant -o yaml | yq .status.lastBuiltCommit
fa8b89274a61ef0f1c257b7a84c37aa2ec844109
----

0 comments on commit 02d0229

Please sign in to comment.