Closed hinrichd closed 1 year ago
Hey @dirien,
like mentioned in the npm issue i have switched from extraEnV
to configMap
to install extraNodeModules
. When upgrading the helm values extraNodeModules
the node modules will be also updated. This was not the case with the extraEnv.
Also tried to update the readme docs with this new behaviour (..gotmpl).
The
k8s-sidecar
can also call thenode-red
api to install additional node modules (npm packages) before refreshing or importing the flow.json. You need to list your flows requiert 'NODE_MODULES' in thesidecar.extraNodeModules
: e.g.sidecar: extraNodeModules: - node-red-contrib-xkeys_setunitid - node-red-contrib-microsoft-teams-tasks - node-red-contrib-json
To install the node modules successfully, the node red pod needs access to the
npmrc.registry
to download the declaired modules/packages.
I hope this will help ✌️
Hey @hinrichd,
Thanks for the contribution! Let me have a look into the code!
Thank you for making
node-red ⚙
betterPlease reference the issue this PR is fixing. npm install from values file
New Feature: Install extra node modules via flow_refresh.py script
If your flows from the sidecar depend on nodes from modules that are not preinstalled in the node-red server, you can install them by declaring
sidecar.extraEnv: NODE_MODULES
(Comma separated list of node-modul names.)Also verify you have: