-
Notifications
You must be signed in to change notification settings - Fork 4
Deploying a Grafana CR without ingress configuration provisions invalid Ingress resource #78
Comments
Hi @tamcore , thanks once again for trying things out. I wrote a small note about it in slack https://kubernetes.slack.com/archives/C019A1KTYKC/p1678293324043159 but I understand it's easy to not read everything that is posted there. I think enabling and disabling ingress by a correct We can't do any of the assumptions that we do in OCP any way so why create one at all? Is it something that you would be willing to do as well? |
@tamcore, saw that I forgot to ping you in my response. |
Sure, I'll happily have a look at it :)
Probably the best way. But if we simply don't provision something unless the user explicitly provides So I somewhat feel like, the user should be able to get away with just defining the ingress host (+ ingress labels/annotations, if he wishes) OR defining the full ingress object. |
That is a very good point. But that should be solvable with us providing decent defaults. So if So just as you say, more or less the only thing need to write is the host URL and then they will be good. For using https they of course have to define tls:
- hosts:
- example.com
secretName: core-cert |
When deploying a Grafana CR without having any Ingress configuration specified, the Operator will create an Ingress object without any host attached to it.
Expected behaviour should be to not provision an Ingress CR, as long as there's no valid host defined. One use case (our's, actually), where an Ingress is unwanted, is when Grafana is behind a separate proxy application and authentication is done via JWT for example.
Example Grafana CR
Resulting Ingress
The text was updated successfully, but these errors were encountered: