Namespace CR ingress routes for testing
Currently we test that the CR is running and working by curl
ing the GitLab endpoint from the task-runner pod. Once we have ingresses working correctly, https://gitlab.com/gitlab-org/gl-openshift/gitlab-operator/-/issues/105, we need to figure out how to namespace these ingress URLs so external users like gitlab-qa can reach the GitLab ingress endpoint.
---
apiVersion: apps.gitlab.com/v1beta1
kind: GitLab
metadata:
name: gitlab
spec:
chart:
version: CHART_VERSION
values:
global:
hosts:
domain: apps.ocp-ci-4623.k8s-ft.win
This CR will create URLs like https://gitlab.apps.ocp-ci-4623.k8s-ft.win
.
To facilitate parallel testing we should suffix these hostnames with the git short SHA, like https://gitlab-ab5c7d86.apps.ocp-ci-4623.k8s-ft.win
. In scripts/test.sh
we should also update the logic in the verify_gitlab_is_running
function to curl the ingress route so we are testing this.
Edited by Dustin Collins