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

Image moved to media folder is removed after deployment #445

Closed
theNickMagee opened this issue Sep 19, 2024 · 1 comment · Fixed by #449
Closed

Image moved to media folder is removed after deployment #445

theNickMagee opened this issue Sep 19, 2024 · 1 comment · Fixed by #449

Comments

@theNickMagee
Copy link

theNickMagee commented Sep 19, 2024

Nautobot version: 2.2.9
Python 3.10

We are using the most resent helm chart (2.2.0) to deploy Nautobot. In the Docker build step, we copy our custom PNG logo to the /opt/nautobot/media directory, however it seems later in the process nautobot overwrites this directory with the folders devicetype-images, health_check_storage_test, and image-attchments.

Is there a workaround for this? The behavior started happening after several helm chart upgrades (most likely due to this PR)

Thanks.

@gertzakis
Copy link
Contributor

Never though of this use case tbh. I would try to create a PVC by enabling it and copy (kubectl cp) the logo to /opt/nautobot/media as a workaround.
In order to fix this though, changing the chart to only create a volumeMount in the deployment if persistenceMediaFiles is enabled will probably do the trick.

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

Successfully merging a pull request may close this issue.

2 participants