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

How can I add custom environment variables to noobaa-core deployment through noobaa operator ? #1486

Open
NoOverflow opened this issue Dec 6, 2024 · 3 comments

Comments

@NoOverflow
Copy link

Hi,

I would like to modify NooBaa's default behaviour without having to build a new image with a modified config.js. (Would like to enable config.WORM_ENABLED to allow object lock).

Reading the code I found out that this can be done using environment variables prefixed with CONFIG_JS_ (https://github.com/noobaa/noobaa-core/blob/4847584ca6b10aeea6f596b30edaabf91a3ce7ae/config.js#L1015).

Unfortunately the NooBaa CR doesn't seem flexible enough to allow a user to specify custom environment variables (https://github.com/noobaa/noobaa-operator/blob/master/deploy/internal/statefulset-core.yaml)

Am I correct to assume that for now, building a new image is the only way for me to modify this ? Or am I missing something ?

Thanks

@nimrod-becker
Copy link
Contributor

@dannyzaken @jackyalbo

@NoOverflow
Copy link
Author

Any idea ? If not I'll see if I can open a PR to allow custom env vars in the operator CRDs

@NoOverflow
Copy link
Author

Started experimenting over at https://github.com/NoOverflow/noobaa-operator/commits/master/. Will open a PR once I've got something that works.

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