Skip to content

Commit

Permalink
Use custom image for node-red
Browse files Browse the repository at this point in the history
  • Loading branch information
th0th committed Jul 22, 2024
1 parent 85fd660 commit 57bab0c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
15 changes: 1 addition & 14 deletions charts/node-red/templates/configmap-node-red.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,4 @@ metadata:
{{- include "nodeRed.labels" . | nindent 4 }}
data:
settings.js: |
module.exports = {
adminAuth: {
type: "{{ required "A valid .Values.nodeRed.settings.adminAuth.type is required!" .Values.nodeRed.settings.adminAuth.type }}",
users: [
{{- range (.Values.nodeRed.settings.adminAuth.users | default list) }}
{
password: "{{ .password }}",
permissions: "{{ .permissions }}",
username: "{{ .username }}",
},
{{- end }}
],
},
};
module.exports = {{ toJson .Values.nodeRed.settings }};
9 changes: 6 additions & 3 deletions charts/node-red/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,26 @@ ingress:
nodeRed:
image:
# -- node-red image repository
repository: nodered/node-red
repository: th0th/node-red
# -- node-red image tag
tag: latest
persistence:
# -- enable persistence
enabled: true
# -- resources for the node-red statefulset
resources: { }
# -- node-red settings
# -- node-red settings (settings.js in YAML format). please refer to https://nodered.org/docs/user-guide/runtime/configuration
settings:
# -- admin authentication config
adminAuth:
type: credentials
# -- list of users
users: [ ]
# - password: "$2y$08$q7DQYqhJrLC0.NnLelnre.IUaE2wQX3/xBiQ1cyAuNva8i5A6760q"
# - password: "$2y$08$q7DQYqhJrLC0.NnLelnre.IUaE2wQX3/xBiQ1cyAuNva8i5A6760q" // encrypted "changeme"
# permissions: "*"
# username: admin
editorTheme:
projects:
enabled: false
# -- time zone
timeZone: America/New_York

0 comments on commit 57bab0c

Please sign in to comment.