netbox-chart icon indicating copy to clipboard operation
netbox-chart copied to clipboard

add ability to extend configuration.py

Open rsmithcooper opened this issue 2 years ago • 2 comments

This gives the ability to extend the configuration.py file populated by the configMap.

Use case: adding an Okta OIDC integration using the social-auth library.

current workaround: editing the configmap manually after helm install and then redeploying the deployment

rsmithcooper avatar Jun 27 '23 03:06 rsmithcooper

I don't have an issue with adding a mechanism for adding Python config code, but you shouldn't need this to add static configuration values—you can do that with the extraConfig setting. Do you need to be able to run actual Python code rather than just setting static values? If so you'd probably be better off using extraVolumeMounts and extraVolumes to mount your Python script into /etc/netbox/config/...

bootc avatar Oct 31 '23 18:10 bootc

@rsmithcooper Hey I'm just checking in on old issues as we get ready for a 5.0.0 chart release. Do you have feedback on @bootc's comments?

RangerRick avatar Jun 06 '24 15:06 RangerRick

I'm closing this pull request as per lack of contributor reply. As mentioned by @bootc, this seems to be mostly, if not all, doable with a proper use of available attributes. Don't hesitate to continue the discussion below if the topic is still relevant.

LeoColomb avatar Jul 27 '24 21:07 LeoColomb