Skip to content

Instantly share code, notes, and snippets.

@evanshortiss
Last active August 11, 2020 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save evanshortiss/d84f39b2e0657c9839b85c5f0cecf9ad to your computer and use it in GitHub Desktop.
Save evanshortiss/d84f39b2e0657c9839b85c5f0cecf9ad to your computer and use it in GitHub Desktop.
# Note you must have golang installled and configured to do this!
# Login as a cluster admin
oc login $CLUSTER_URL
# install moq
# (make sure $GOPATH/bin/ is on your $PATH so moq can be found)
go get github.com/matryer/moq
# setup the operator repo
mkdir -p $GOPATH/src/github.com/integr8ly
cd $GOPATH/src/github.com/integr8ly
git clone https://github.com/integr8ly/integreatly-operator
cd integreatly-operator
make cluster/prepare/project
make cluster/prepare/crd
make cluster/prepare/smtp
# At this point you could change the containers.image key in deploy/operator.yaml to
# quay.io/pb82/integreatly-operator:v2.3.0 though it might no longer work or be necessary
oc create -f deploy/crds/examples/rhmi.cr.yaml
# This command will output many logs, and sometimes errors that will eventually resolve.
# It can run indefinitely since it logs operator logs
make code/run
# Now you can check status via this command in another terminal
# After about 45 mins to 1 hour you will see the solution explorer (webapp) URL appear
# Once this URL appears the installation is usually complete and successful!
oc get rhmi -n redhat-rhmi-operator -o yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment