Skip to content

Commit 3d5388b

Browse files
add preflight testing steps (#199)
1 parent 229c994 commit 3d5388b

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

fbc/fbc-preflight-testing-steps

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# STEPS:
2+
# Caveat: Run these commands from a FBC overlay (ex: v4.14)
3+
# 1. run the container: FBC_VERSION="v4.14" && CONTAINER_ID=$(docker run -u root -d registry.redhat.io/redhat/redhat-operator-index:$FBC_VERSION)
4+
# 2. copy the catalog file in: docker cp $(pwd)/catalog/rhtas-operator/catalog.json $CONTAINER_ID:/configs/rhtas-operator/catalog.json
5+
# 3. re-serve: docker exec -u root -it $CONTAINER_ID opm serve --pprof-addr="" --cache-only /configs
6+
# 4. commit the image: docker commit $CONTAINER_ID quay.io/grpereir/redhat-operator-index:$FBC_VERSION
7+
# 5 push the image: docker push quay.io/grpereir/redhat-operator-index:$FBC_VERSION
8+
# NOTE: if you are using your own repo, you will have to switch this to public so it is pullable by testing cluster
9+
# 6. create catalog source (see below):
10+
: '
11+
apiVersion: operators.coreos.com/v1alpha1
12+
kind: CatalogSource
13+
metadata:
14+
name: rhtas-operator
15+
namespace: openshift-marketplace
16+
spec:
17+
sourceType: grpc
18+
grpcPodConfig:
19+
securityContextConfig: legacy
20+
publisher: Red Hat
21+
image: quay.io/grpereir/redhat-operator-index:$FBC_VERSION
22+
displayName: TAS Operator
23+
'
24+
# 7. apply the CS: oc apply -f ./catalogSource.yaml
25+
# 8. delete the catalog-operator pod: CATALOG_OPERATOR_POD=$oc get pods -n openshift-operator-lifecycle-manager | grep catalog-operator | awk '{print $1}') && oc delete pod $CATALOG_OPERATOR_POD -n openshift-operator-lifecycle-manage

0 commit comments

Comments
 (0)