You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updates are made to the [basic-template.yaml](catalog-templates/basic-template.yaml) file and then a catalog is generated from the template. The template can be updated with a Make command.
21
21
22
22
1. in the [Makefile](Makefile), update `VERSION`, `PREVIOUS_VERSION`, and `REGISTRY_SHA` to the latest values:
3. Rebuild the FBC (this will be very slow, especially the first time running this command). This command also validates the outputted FBC and perform post-processing to replace the `quay.io/redhat-user-workloads` test repo with the correct `registry.redhat.io/costmanagement` bundle repo in the FBCs and basic-template:
48
-
```
49
-
$ make catalog
50
-
```
48
+
```
49
+
$ make catalog
50
+
```
51
51
52
52
4. (optional) In case you need to rebuild the bundle after you've already generated the FBC, run `make remove-new-version` to remove the added versions, THEN update the `REGISTRY_SHA` with the new bundle and redo the above steps.
53
53
54
54
## Gather FBC for QE
55
55
56
-
1. Get the releases associated with the commit sha for the PR which updated the FBCs:
57
-
```
58
-
$ KUBECONFIG=~/.kube/konflux kubectl get release -l pac.test.appstudio.openshift.io/sha=239a845fb3b253c0dafbeae07e4144c2832d5735
> To prevent snapshots from being pruned by [konflux's garbage collection](https://konflux-ci.dev/docs/testing/integration/snapshots/#snapshot-garbage-collection-gc), add the annotation below to all snapshots that will be passed on to QE for testing.
4. These are the `CatalogSource` images and are passed to QE for testing.
82
98
83
99
## Configuring a cluster with FBC
84
100
85
101
1. install python dependencies:
86
-
```
87
-
pipenv install --deploy
88
-
```
102
+
```sh
103
+
pipenv install --deploy
104
+
```
89
105
90
106
2. run the `configure_cluster.py`, providing the image corresponding to the OCP verison under test. For example, on an OCP v4.16 clsuter:
91
-
```
92
-
pipenv run ./configure_cluster.py -i quay.io/redhat-user-workloads/cost-mgmt-dev-tenant/costmanagement-metrics-operator-fbc-component-v4-16@sha256:4edbd45925c170b43a60441f2693a3e07f8bfc7e635f5cecf96bea2a185be8d5
93
-
```
107
+
```sh
108
+
pipenv run ./configure_cluster.py -i quay.io/redhat-user-workloads/cost-mgmt-dev-tenant/costmanagement-metrics-operator-fbc-component-v4-16@sha256:4edbd45925c170b43a60441f2693a3e07f8bfc7e635f5cecf96bea2a185be8d5
109
+
```
94
110
95
111
This will configure the cluster to:
96
-
a. disable default OperatorHub sources
97
-
b. install an ImageDigestMirrorSet which allows the cluster to pull the operator images which have not landed in registry.readhat.io yet.
98
-
c. install the CatalogSource to make the operater installable through Operator Hub.
112
+
1. disable default OperatorHub sources
113
+
2. install an ImageDigestMirrorSet which allows the cluster to pull the operator images which have not landed in registry.readhat.io yet.
114
+
3. install the CatalogSource to make the operater installable through Operator Hub.
0 commit comments