openshift-routes
openshift-routes copied to clipboard
Installation is only possible in the default `cert-manager` NS
What's happening
It is not possible to install openshift-routes
in another namespace than cert-manager
because the namespace value is hard coded in internal/cmd/app/options/options.go.
What should be the expected behaviour
It should be possible to install openshift-routes
in an user defined namespace.
Proposed solution
Get the namespace via an environment variable defined by the user during the installation process. I'm working on it and I will release a PR soon.
You can get it to work by modifying the suggested cert-manager-openshift-routes.yaml
:
--- cert-manager-openshift-routes.yaml.orig 2023-06-23 01:01:02.427271831 -0400
+++ cert-manager-openshift-routes.yaml 2023-06-23 00:58:34.249364263 -0400
@@ -65,7 +65,7 @@
kind: ServiceAccount
metadata:
name: cert-manager-openshift-routes
- namespace: cert-manager
+ namespace: openshift-operators
automountServiceAccountToken: false
---
apiVersion: rbac.authorization.k8s.io/v1
@@ -79,13 +79,13 @@
subjects:
- kind: ServiceAccount
name: cert-manager-openshift-routes
- namespace: cert-manager
+ namespace: openshift-operators
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: cert-manager-openshift-routes
- namespace: cert-manager
+ namespace: openshift-operators
labels:
app.kubernetes.io/name: cert-manager-openshift-routes
app.kubernetes.io/version: "0.2.0"
@@ -114,6 +114,7 @@
image: "ghcr.io/cert-manager/cert-manager-openshift-routes:0.2.0"
args:
- -v=5
+ - --leader-election-namespace=openshift-operators
ports:
- containerPort: 6060
name: readiness
It would then seem like a documentation issue. Or perhaps, have I missed some info about the --leader-election-namespace
flag somewhere?
Anyway, I found out that openshift-routes
doesn't work as expected, I opened another issue #34.
I believe this can be closed since the Helm chart allows configuring the namespace: https://github.com/cert-manager/openshift-routes/pull/41
Thank you for fixing this issue @jacksgt. fixed in https://github.com/cert-manager/openshift-routes/pull/41