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

bug: installation scripts copies the extension to wrong folder #6

Open
odubajDT opened this issue Apr 9, 2024 · 1 comment
Open

Comments

@odubajDT
Copy link

odubajDT commented Apr 9, 2024

Description

The installation script in the install_extension() function copies the extension JS code to /tmp/extensions/resources directory.

This, according to the docs is wrong. The folder should be /tmp/extensions, since this is the folder, which argocd-server Deployment is searching for extensions.

Additionally, the installation script should check that the extension has the expected format of the JS script, as it says in the docs:

Extensions should be delivered as a javascript file in the argocd-server Pods that are placed in the /tmp/extensions directory and starts with extension prefix ( matches to ^extension(.*)\.js$ regex )
@DavidGevargizianAtFanatics
Copy link

DavidGevargizianAtFanatics commented Apr 18, 2024

Anyone who gets stuck due to this issue there is a simple workaround.

Update the mountPath on the initContainer to /tmp/extensions/resources/ and leave the mountPath on the agrocd-server container as /tmp/extensions/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants