OpenShift - Install gitops-primer Operator on the command line

by
Jeremy Canfield |
Updated: November 25 2024
| OpenShift articles
Here is the URL for the GitHub repo that contains the gitops-primer Operator.
https://github.com/migtools/gitops-primer
You will need to have the go CLI installed on your system in order to install the gitops-primer Operator. Check out my article FreeKB - Go - Download and Install the Go CLI on Linux. In this example, I have version 1.23.3 of the go CLI installed.
~]$ go version
go version go1.23.3 linux/amd64
On your OpenShift server, let's use the git clone command to clone this repo.
git clone https://github.com/migtools/gitops-primer.git
And then move into the gitops-primer directory.
cd gitops-primer
At this point, the gitops-primer directory should contain something like this.
~]$ ls -l
drwxr-xr-x. 3 john.doe users 22 Dec 2 20:23 api
drwxr-xr-x. 5 john.doe users 52 Dec 2 20:23 bundle
-rw-r--r--. 1 john.doe users 918 Dec 2 20:23 bundle.Dockerfile
drwxr-xr-x. 12 john.doe users 160 Dec 2 20:23 config
drwxr-xr-x. 2 john.doe users 55 Dec 2 20:23 controllers
-rw-r--r--. 1 john.doe users 986 Dec 2 20:23 Dockerfile
drwxr-xr-x. 2 john.doe users 40 Dec 2 20:23 downloader
drwxr-xr-x. 2 john.doe users 60 Dec 2 20:23 examples
drwxr-xr-x. 3 john.doe users 75 Dec 2 20:23 export
-rw-r--r--. 1 john.doe users 3680 Dec 2 20:23 go.mod
-rw-r--r--. 1 john.doe users 88985 Dec 2 20:23 go.sum
drwxr-xr-x. 2 john.doe users 77 Dec 2 20:23 hack
-rw-r--r--. 1 john.doe users 6884 Dec 2 20:23 main.go
-rw-r--r--. 1 john.doe users 10258 Dec 2 20:23 Makefile
-rw-r--r--. 1 john.doe users 491 Dec 2 20:23 PROJECT
-rw-r--r--. 1 john.doe users 1979 Dec 2 20:23 README.md
drwxr-xr-x. 3 john.doe users 40 Dec 2 20:23 test-kuttl
drwxr-xr-x. 3 john.doe users 94 Dec 2 20:23 webhook
Then make install.
make install
And make run.
make run
And make deploy.
make deploy
Did you find this article helpful?
If so, consider buying me a coffee over at