-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Enhancement]: Support configuring .spec.subdomain for OpenShift routes #11126
Comments
I think there are plenty workarounds (as you already listed yourself), so I don't think we want to support this:
All of these are pretty simple and if needed you can surely write some tooling to make sure it uses the correct domain etc. |
This small addition to Strimzi would save me (and others) a lot of time that I would have to spend on automation and maintenance. In my option a tool that creates Kubernetes resources should allow (almost) full customization of the generated resources. So, I hope you'll consider it anyway. I was thinking about creating a PR, but decided to start off with a feature-request as setting up the development/testing environment for myself would take me way more time than an existing contributor needs to copy-paste the host property implementation and rename it to subdomain (maybe I'm underestimating the work involved) 🙂 |
The issue will be triaged on one the community calls and that will decide if this feature would be accepted or not. So in general, you should wait with any PRs for that. If we decide that it would be accepted, we would of course welcome the PR from you (and possibly nobody else might do it anyway). As it would involve API changes, it would also likely require a proposal.
It is seemingly a small addition. But it is something like a sixth way to do essentially the same thing. All of these need to be tested, maintained, taken care of in every refactoring, etc. So the time you would spend on for example writing some super simple Helm Chart to template the host field would be just dumped on the community (and would likely be a much higher in reality). That makes sense when it is feature useful for many people. It does not make sense for every single niche idea someone might have. Unfortunately, we cannot please everyone - so the aim is to try to create the best path for most people and yet make things flexible enough for the outliers who need something special to be able to handle it as well - those are the workarounds you can use.
Every operator that manages Kubernetes resources and something like Kafka will be always opinionated. You might need to accept its opinions if you want to use it. |
Related problem
I recently started using Strimzi on OpenShift and configured it to create routes for external access. This worked perfectly fine before but now failed due to the generated routes exceeding the maximum DNS host (part) length of 63 characters.
I've searched the Strimzi docs and code trying to find a work-around (see alternatives) but none really fit my setup.
Suggested solution
OpenShift Route resources support setting the .spec.subdomain to define the first part of the host.
Example: If you set subdomain for your route to "test123" and the apps domain for your OpenShift cluster is set to "apps.example.com" the generated host would be test123.apps.example.com.
OpenShift Route specs:
https://docs.okd.io/latest/rest_api/network_apis/route-route-openshift-io-v1.html#spec
It would be great if, just like the "host" property, we could configure the "subdomain" property through the listener configuration block inside my Kafka resource spec.
Example spec:
Alternatives
Additional context
No response
The text was updated successfully, but these errors were encountered: