-
Notifications
You must be signed in to change notification settings - Fork 3
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
Added support for annotation substitutions #95
Conversation
Added websocket annotation for nginx ingress k8s
Hi, As mentioned in the issue you have referenced, this should be already possible by passing the annotations to the helm chart when installing. see: This change would always add the annotation no matter what ingress controller was used. Any solution needs to work for all possible installations and not add unnecessary annotations. If the proposed solution mentioned in #83 please add a comment explaining why. |
Sorry, I'd forgotten that the annotation needs the service name, which can't be set globally with that annotations from the helm chart. I will try and dig at the nginx ingress docs to see if there is more global solution, I know that the kubernetes version of the nginx ingress controller doesn't need these flags so hopefully there will be something we can set at a wider scope. |
I scoured the nginx docs (for a long while) and could not find a way to globally turn on websocket support, this is why I had to add it here. |
@hardillb annotations: |
mustache style replacement for annotations meta data
removed hardcoded nginx annotation
Hi, Nice idea, unfortunately it's not quiet that simple. The service name is not always just the Lines 336 and 344 So it can't just be a simple substitution, I'll have a look to see if we can expand on this. e.g. we could define a list of available substitutions and then we can do the specific mapping. |
We can change this to annotations: |
Sorry, I should have been clearer here, I think rather than expose the whole
We can document this simpler list in the helm chart README.md That way if/when we rename things like |
I've updated the PR with specific properties that would potentially be usable in annotations.
Which can then be used:
|
I think those are a sensible start to the token names. If you can fix up the lint errors (which should be flagged on the "Files Changed" page or the details page of the failed tests we can get this merged |
Need to make sure this gets documented in flowforge/helm before release |
Will also need to ensure the {{ replacements }} are accepted in the FlowForge Container as well. |
Ahhh, that is going to be a problem, as it will have to be done in the helm chart templating and I'm not sure we can do replacements there |
Added websocket annotation for nginx ingress k8s
Description
added the nginx annotation for websocket support in k8s
Related Issue(s)
(https://github.com/flowforge/flowforge-driver-k8s/issues/83)
Checklist
Labels
backport
labelarea:migration
label