This is the gitops config repo for the project light-control.
It is currently only tested for Red Hat OpenShift, which you could get either
To use the content in this repository, you need to have setup your OpenShift Cluster to use the following Operators:
- OpenShift Pipelines (or Tekton)
- OpenShift GitOps (or argocd)
- Crunchy Data PostgreSQL Cluster
To install the CI environment, simply log into your OpenShift cluster and execute the following script
$ oc login -u <user> -p <pass> https://api.crc.testing:6443
$ ./tekton/pipeline.sh init --git-user <git user> \
--git-password <git-pwd> \
--repo-user <image repo user> \
--repo-password <image repo pwd> This will - behind the scenes - do a
$ oc apply -k tekton/And will then apply the secrets in the lights-ci namespace with your user/password combinations to access GitHub and Quay.io. If you do use other repositories, please feel free to edit the secrets accordingly.
To install the ArgoCD apps which will then install the current versions for Dev and Stage, please issue the following command:
$ oc apply -k argocdAfter this call, you have a light-dev and a light-stage namespace properly setup with the current config you find in the config folder.