Pre-requisites
Pull Secret
At product subscription, a token has been provided for your company, use it to create 2 secrets (one in openshift-marketplace and the other one in the namespace where the operator will be installed):
oc create secret docker-registry dojo-pull-secret \
--docker-server=docker.io \
--docker-username=feeshch \
--docker-password=<your_token> \
--docker-email=fred.legrand@feesh.ch \
-n openshift-marketplace
oc create secret docker-registry dojo-pull-secret \
--docker-server=docker.io \
--docker-username=feeshch \
--docker-password=<your_token> \
--docker-email=fred.legrand@feesh.ch \
-n dojo
=> This token allows to pull the images from the external private registry
Catalog Source
Create the catalog source with the latest version of dojo-operator-index to set first (example 1.1.38):
oc apply -f - << EOF
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
name: dojo-catalog
namespace: openshift-marketplace
spec:
sourceType: grpc
image: docker.io/feeshch/dojo-operator-index:1.1.32
secrets:
- dojo-pull-secret
displayName: Dojo Catalog
publisher: Feesh
updateStrategy:
registryPoll:
interval: 1m
grpcPodConfig:
EOF
The Dojo operator appears in the OperatorHub:
Operator Deployment
Installation
Install the operator:
Install it in a new namespace:
=> If you don’t install the latest version, “Manual Update approval” must be chosen
DojoApp instance
Create a DojoApp instance
=> The instance will deploy all the objects
=> Check the pods are up and running in the dojo project and connect to the front end
Operator update
As dojo-catalog is a private catalogsource, when a new tagged version is available, you need to patch is manually with the following command:
oc patch catalogsource dojo-catalog -n openshift-marketplace \
--type=merge \
-p '{"spec":{"image":"docker.io/feeshch/dojo-operator-index:1.1.34"}}'
=> After a fes minutes, the operator will be updated in the cluster with this new version