Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions charts/netbox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ The following table lists the configurable parameters for this chart and their d
| `dateTimeFormat` | Django date format for long-form date and time strings | `"N j, Y g:i a"` |
| `shortDateTimeFormat` | Django date format for short-form date and time strongs | `"Y-m-d H:i"` |
| `extraConfig` | Additional NetBox configuration (see `values.yaml`) | `[]` |
| `extraBootstrapConfig` | Additional config to add to configuration.py. Normally used for config that is required before Plugins are imported. | `""` |
| `secretKey` | Django secret key used for sessions and password reset tokens | `""` (generated) |
| `existingSecret` | Use an existing Kubernetes `Secret` for secret values (see below) | `""` (use individual chart values) |
| `postgresql.enabled` | Deploy PostgreSQL using bundled Bitnami PostgreSQL chart | `true` |
Expand Down
3 changes: 3 additions & 0 deletions charts/netbox/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ metadata:
data:
configuration.py: |-
{{ .Files.Get "files/configuration.py" | nindent 4 }}
{{- if .Values.extraBootstrapConfig }}
{{ tpl .Values.extraBootstrapConfig . | nindent 4 }}
{{- end }}

netbox.yaml: |-
ALLOWED_HOSTS: {{ toJson .Values.allowedHosts }}
Expand Down
4 changes: 4 additions & 0 deletions charts/netbox/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,10 @@
"extraConfig": {
"type": "array"
},
"extraBootstrapConfig": {
"type": "string",
"default": ""
},
"extraDeploy": {
"type": ["array", "string"]
},
Expand Down
7 changes: 7 additions & 0 deletions charts/netbox/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,13 @@ shortDateTimeFormat: "Y-m-d H:i"
# optional: false
extraConfig: []

## Extra Bootstrap configuration
# This is additional configuration to be added to the configuration.py file before plugins are imported.
# This is useful for bootstrapping NetBox with custom settings that may be required by plugins.
# The values is evaluated as a template, so you can use it to load values from ConfigMaps and Secrets.
# The value is appended to the configuration.py file, and needs to contain valid python code.
extraBootstrapConfig: ""

# If provided, this should be a 50+ character string of random characters. It
# will be randomly generated if left blank.
# You can also use an existing secret with "secret_key" instead of "secretKey"
Expand Down