Skip to content
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

Change initContainer code to manipulate path for config.js #2487

Open
artntek opened this issue Jul 18, 2024 · 0 comments
Open

Change initContainer code to manipulate path for config.js #2487

artntek opened this issue Jul 18, 2024 · 0 comments
Assignees
Labels
k8s Kubernetes & Helm

Comments

@artntek
Copy link
Contributor

artntek commented Jul 18, 2024

Our attempt to use a relative path for config.js was unsuccessful - see #2454

The only viable alternative at this stage is to edit this line in index.html when installign metacatui:

    var appConfigPath = "/config/config.js";

Since this file is also used for non-k8s deployments, we can't add go templating.

We already have an initContainer defined in deployment.yaml, so it should be pretty straightforward to add code there in order to inser the root path before the beginning of the appConfigPath shown above.

@artntek artntek added the k8s Kubernetes & Helm label Jul 18, 2024
@artntek artntek added this to the 2.31.0 milestone Jul 18, 2024
@artntek artntek self-assigned this Jul 18, 2024
@robyngit robyngit removed this from the 2.31.0 milestone Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
k8s Kubernetes & Helm
Projects
None yet
Development

No branches or pull requests

2 participants