Allow override of `CERTIFICATE_NAMESPACE` and `CERTIFICATE_NAME` through the GitLab Runner CRD
When deploying the GitLab Runner Operator in a Kubernetes Cluster, the CERTIFICATE_NAMESPACE
and CERTIFICATE_NAME
variables default to the values set in the kustomization.yaml
(namespace, name prefix).
However, if the certificate used is in a different namespace
and has a different name
, the operator installation fails with an error similar to the following:
kubectl create -f https://operatorhub.io/install/gitlab-runner-operator.yaml
Error from server (InternalError): error when retrieving the current configuration of:
Resource: "apps.gitlab.com/v1beta2, Resource=runners", GroupVersionKind: "apps.gitlab.com/v1beta2, Kind=Runner"
Name: "gitlab-runner", Namespace: "default"
from the server for: "gitlab-runner.yaml": Internal error occurred: error resolving resource
To avoid this issue, users should have the ability to configure the CERTIFICATE_NAMESPACE
and the CERTIFICATE_NAME
to be set in the CRDs
.