Customizing Base URL in Argo Workflows API #14733
Unanswered
martin-morales
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, in the API docs the
Base URLis set tolocalhost:2746coming from/assets/openapi-spec/swagger.json.Anytime I try to use the swagger page I get the error "Failed to fetch. Possible Reasons: CORS, Network Failure, URL schema must be "http" or "https" for CORS request." If I take the same curl command the replace the
https://localhost:2746with my hostnamehttps://my-company-hostname.comit works fine.How can I customize that base URL to be my custom hostname? Is there a server flag or environment variable to override the swagger.json host? If not are there plans to make this configurable in future versions?
I've tried changing the baseHref value, putting assets in a shared volume and using a sidecar to sed all the locations of localhost, nginx proxy sidecar to intercept and proxy all requests, etc. Looking through the compiled source code from my browser it looks like the swagger.json file is coming from an API call and I'm not sure how to modify that compiled source code. I don't see any other flags besides baseHref which would be suitable, but maybe I missed it.
Here's my current Helm resources in K8s managed via Rancher.
Beta Was this translation helpful? Give feedback.
All reactions