diff --git a/charts/netbox/Chart.yaml b/charts/netbox/Chart.yaml index 716ac88c..84ec532a 100644 --- a/charts/netbox/Chart.yaml +++ b/charts/netbox/Chart.yaml @@ -4,7 +4,7 @@ annotations: - name: netbox image: docker.io/netboxcommunity/netbox:v3.7-2.8.0 apiVersion: v2 -appVersion: v3.7.1 +appVersion: v3.7.2 name: netbox kubeVersion: ">=1.25.0" description: IP address management (IPAM) and data center infrastructure management (DCIM) tool @@ -40,4 +40,4 @@ keywords: - ipam - netbox type: application -version: 5.0.4 \ No newline at end of file +version: 5.0.5 \ No newline at end of file diff --git a/charts/netbox/docs/auth.md b/charts/netbox/docs/auth.md index 120c309f..b50aa877 100644 --- a/charts/netbox/docs/auth.md +++ b/charts/netbox/docs/auth.md @@ -48,52 +48,53 @@ extraVolumeMounts: readOnly: true ``` -Additional resources are necessary (please note that the client ID is necessary in the custom pipeline script): +Put additional necessary resources on `extraDeploy` parameter. +Note: Client ID is necessary in the custom pipeline script ```yaml -apiVersion: v1 -kind: Secret -metadata: - name: keycloak-client - namespace: netbox -type: Opaque -data: - oidc-keycloak.yaml: | - SOCIAL_AUTH_KEYCLOAK_KEY: - SOCIAL_AUTH_KEYCLOAK_SECRET: - SOCIAL_AUTH_KEYCLOAK_PUBLIC_KEY: MIIB...AB - SOCIAL_AUTH_KEYCLOAK_AUTHORIZATION_URL: "https://keycloak.example.com/auth/realms/master/protocol/openid-connect/auth" - SOCIAL_AUTH_KEYCLOAK_ACCESS_TOKEN_URL: "https://keycloak.example.com/auth/realms/master/protocol/openid-connect/token" - SOCIAL_AUTH_JSONFIELD_ENABLED: true - ---- -apiVersion: v1 -kind: ConfigMap -metadata: - name: sso-pipeline-roles - namespace: netbox -data: - sso_pipeline_roles.py: | - from django.contrib.auth.models import Group - def set_role(response, user, backend, *args, **kwargs): - client_id = '' - roles = [] - try: - roles = response['resource_access'][client_id]['roles'] - except KeyError: - pass - user.is_staff = ('admin' in roles) - user.is_superuser = ('superuser' in roles) - user.save() - groups = Group.objects.all() - for group in groups: - try: - if group.name in roles: - group.user_set.add(user) - else: - group.user_set.remove(user) - except Group.DoesNotExist: - continue +extraDeploy: + - apiVersion: v1 + kind: Secret + metadata: + name: keycloak-client + namespace: netbox + type: Opaque + stringData: + oidc-keycloak.yaml: | + SOCIAL_AUTH_KEYCLOAK_KEY: + SOCIAL_AUTH_KEYCLOAK_SECRET: + SOCIAL_AUTH_KEYCLOAK_PUBLIC_KEY: MIIB...AB + SOCIAL_AUTH_KEYCLOAK_AUTHORIZATION_URL: "https://keycloak.example.com/realms/master/protocol/openid-connect/auth" + SOCIAL_AUTH_KEYCLOAK_ACCESS_TOKEN_URL: "https://keycloak.example.com/realms/master/protocol/openid-connect/token" + SOCIAL_AUTH_JSONFIELD_ENABLED: true + + - apiVersion: v1 + kind: ConfigMap + metadata: + name: sso-pipeline-roles + namespace: netbox + data: + sso_pipeline_roles.py: | + from django.contrib.auth.models import Group + def set_role(response, user, backend, *args, **kwargs): + client_id = '' + roles = [] + try: + roles = response['resource_access'][client_id]['roles'] + except KeyError: + pass + user.is_staff = ('admin' in roles) + user.is_superuser = ('superuser' in roles) + user.save() + groups = Group.objects.all() + for group in groups: + try: + if group.name in roles: + group.user_set.add(user) + else: + group.user_set.remove(user) + except Group.DoesNotExist: + continue ``` ### Example config for GitLab backend @@ -201,8 +202,10 @@ For example: ```yaml remoteAuth: enabled: true - backend: netbox.authentication.LDAPBackend + backends: + - netbox.authentication.LDAPBackend ldap: + enabled: true serverUri: 'ldap://domain.com' startTls: true ignoreCertErrors: true diff --git a/charts/netbox/templates/Certificate.yaml b/charts/netbox/templates/Certificate.yaml index a96eab82..738117c8 100644 --- a/charts/netbox/templates/Certificate.yaml +++ b/charts/netbox/templates/Certificate.yaml @@ -1,4 +1,4 @@ -{{- if .Values.tls.enabled }} +{{- if .Values.tls.enabled -}} {{- if (include "common.capabilities.certManager.apiVersion" .) }} apiVersion: {{ include "common.capabilities.certManager.apiVersion" . }} kind: Certificate @@ -64,4 +64,4 @@ spec: {{- end }} {{- end }} {{- end }} -{{- end }} \ No newline at end of file +{{- end -}} \ No newline at end of file diff --git a/charts/netbox/templates/ConfigMap/env-vars.yaml b/charts/netbox/templates/ConfigMap/env-vars.yaml index 949795bc..f0f9c82f 100644 --- a/charts/netbox/templates/ConfigMap/env-vars.yaml +++ b/charts/netbox/templates/ConfigMap/env-vars.yaml @@ -20,4 +20,13 @@ data: {{- end }} {{- if not .Values.externalDatabase.existingSecretUserKey }} NETBOX_DATABASE_USER: {{ include "netbox.databaseUser" . | quote }} - {{- end }} \ No newline at end of file + {{- end }} + test.txt: |- + extraConfig.volume + {{- include "netbox.extraConfig.volumes" . | nindent 8 }} + + extraConfig.volumevolumeMounts + {{- include "netbox.extraConfig.volumeMounts" . | nindent 12 }} + + extraConfig.volumevolumeMounts tpl + {{- include "common.tplvalues.render" (dict "value" (include "netbox.extraConfig.volumeMounts" .) "context" $) | nindent 12 }} diff --git a/charts/netbox/templates/CronJob.yaml b/charts/netbox/templates/CronJob.yaml index 739fea0d..4d317223 100644 --- a/charts/netbox/templates/CronJob.yaml +++ b/charts/netbox/templates/CronJob.yaml @@ -3,6 +3,7 @@ apiVersion: batch/v1 kind: CronJob metadata: name: {{ template "netbox.housekeeping.fullname" . }} + namespace: {{ include "common.names.namespace" . | quote }} {{- $versionLabel := dict "app.kubernetes.io/version" ( include "common.images.version" ( dict "imageRoot" .Values.housekeeping.image "chart" .Chart ) ) }} {{- $labels := include "common.tplvalues.merge" ( dict "values" ( list .Values.commonLabels $versionLabel ) "context" . ) }} labels: {{- include "common.labels.standard" ( dict "customLabels" $labels "context" $ ) | nindent 4 }} @@ -93,6 +94,9 @@ spec: name: {{ include "common.tplvalues.render" (dict "value" .Values.extraEnvVarsSecret "context" $) }} {{- end }} {{- end }} + {{- if .Values.housekeeping.resources }} + resources: {{- toYaml .Values.housekeeping.resources | nindent 14 }} + {{- end }} volumeMounts: - name: config mountPath: /etc/netbox/config/configuration.py @@ -110,7 +114,6 @@ spec: - name: secrets mountPath: /run/secrets/netbox readOnly: true - {{- include "netbox.extraConfig.volumeMounts" . | nindent 12 -}} - name: netbox-tmp mountPath: /tmp - name: media @@ -126,12 +129,10 @@ spec: mountPath: {{ .Values.scriptsPersistence.path }} subPath: {{ .Values.scriptsPersistence.subPath | default "" | quote }} {{- end }} + {{- include "netbox.extraConfig.volumeMounts" . | nindent 12 }} {{- if .Values.housekeeping.extraVolumeMounts }} {{- include "common.tplvalues.render" ( dict "value" .Values.housekeeping.extraVolumeMounts "context" $ ) | nindent 12 }} {{- end }} - {{- if .Values.housekeeping.resources }} - resources: {{- toYaml .Values.housekeeping.resources | nindent 14 }} - {{- end }} {{- if .Values.sidecars }} {{- include "common.tplvalues.render" ( dict "value" .Values.sidecars "context" $) | nindent 10 }} {{- end }} @@ -174,7 +175,6 @@ spec: items: - key: {{ include "netbox.cachingRedis.secretPasswordKey" . | quote }} path: redis_cache_password - {{- include "netbox.extraConfig.volumes" . | nindent 10 -}} - name: netbox-tmp emptyDir: medium: Memory @@ -200,6 +200,7 @@ spec: emptyDir: {} {{- end }} {{- if .Values.extraVolumes }} - {{- include "common.tplvalues.render" (dict "value" .Values.extraVolumes "context" $) | nindent 8 }} + {{- include "common.tplvalues.render" (dict "value" .Values.extraVolumes "context" $) | nindent 10 }} {{- end }} + {{- include "netbox.extraConfig.volumes" . | nindent 10 -}} {{- end -}} \ No newline at end of file diff --git a/charts/netbox/templates/Deployment.yaml b/charts/netbox/templates/Deployment.yaml index bd077ef2..3394559b 100644 --- a/charts/netbox/templates/Deployment.yaml +++ b/charts/netbox/templates/Deployment.yaml @@ -2,6 +2,7 @@ apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} kind: Deployment metadata: name: {{ include "netbox.fullname" . }} + namespace: {{ include "common.names.namespace" . | quote }} {{- $versionLabel := dict "app.kubernetes.io/version" ( include "common.images.version" ( dict "imageRoot" .Values.image "chart" .Chart ) ) }} {{- $labels := include "common.tplvalues.merge" ( dict "values" ( list .Values.commonLabels $versionLabel ) "context" . ) }} labels: {{- include "common.labels.standard" ( dict "customLabels" $labels "context" $ ) | nindent 4 }} @@ -177,7 +178,6 @@ spec: - name: secrets mountPath: /run/secrets/netbox readOnly: true - {{- include "netbox.extraConfig.volumeMounts" . | nindent 12 -}} - name: netbox-tmp mountPath: /tmp - name: media @@ -213,6 +213,7 @@ spec: - name: custom-init-scripts mountPath: /docker-entrypoint-initdb.d {{- end }} + {{- include "netbox.extraConfig.volumeMounts" . | nindent 12 }} {{- if .Values.extraVolumeMounts }} {{- include "common.tplvalues.render" (dict "value" .Values.extraVolumeMounts "context" $) | nindent 12 }} {{- end }} @@ -329,7 +330,6 @@ spec: items: - key: {{ include "netbox.cachingRedis.secretPasswordKey" . | quote }} path: redis_cache_password - {{- include "netbox.extraConfig.volumes" . | nindent 8 -}} - name: netbox-tmp emptyDir: medium: Memory @@ -366,6 +366,7 @@ spec: configMap: name: {{ include "netbox.initdbScriptsCM" . }} {{- end }} + {{- include "netbox.extraConfig.volumes" . | nindent 8 }} {{- if .Values.extraVolumes }} {{- include "common.tplvalues.render" (dict "value" .Values.extraVolumes "context" $) | nindent 8 }} {{- end }} \ No newline at end of file diff --git a/charts/netbox/templates/Secret/external-db.yaml b/charts/netbox/templates/Secret/external-db.yaml index 1f243898..f22379f4 100644 --- a/charts/netbox/templates/Secret/external-db.yaml +++ b/charts/netbox/templates/Secret/external-db.yaml @@ -3,7 +3,7 @@ apiVersion: v1 kind: Secret metadata: name: {{ printf "%s-external-db" .Release.Name }} - namespace: {{ .Release.Namespace | quote }} + namespace: {{ include "common.names.namespace" . | quote }} labels: {{- include "common.labels.standard" (dict "customLabels" .Values.commonLabels "context" $) | nindent 4 }} {{- if or .Values.externalDatabase.annotations .Values.commonAnnotations }} annotations: {{- include "common.tplvalues.merge" (dict "values" (list .Values.externalDatabase.annotations .Values.commonAnnotations) "context" $) | nindent 4 }} diff --git a/charts/netbox/templates/Secret/external-redis.yaml b/charts/netbox/templates/Secret/external-redis.yaml index 010e7547..b38a1db0 100644 --- a/charts/netbox/templates/Secret/external-redis.yaml +++ b/charts/netbox/templates/Secret/external-redis.yaml @@ -1,4 +1,4 @@ -{{- if and (not .Values.redis.enabled) (not .Values.tasksRedis.existingSecretName) (not .Values.cachingRedis.existingSecretName) (not .Values.redis.existingSecret) }} +{{- if and (not .Values.redis.enabled) (not .Values.externalRedis.existingSecretName) (not .Values.tasksRedis.existingSecretName) (not .Values.cachingRedis.existingSecretName) (not .Values.redis.existingSecret) }} apiVersion: v1 kind: Secret metadata: @@ -10,6 +10,6 @@ metadata: {{- end }} type: Opaque data: - redis-cache-password: {{ include "common.secrets.passwords.manage" (dict "secret" (printf "%s-external-redis" .Release.Name) "key" "redis-cache-password" "length" 12 "providedValues" (list "cachingRedis.password") "context" $) }} - redis-tasks-password: {{ include "common.secrets.passwords.manage" (dict "secret" (printf "%s-external-redis" .Release.Name) "key" "redis-tasks-password" "length" 12 "providedValues" (list "tasksRedis.password") "context" $) }} + {{ include "netbox.cachingRedis.secretPasswordKey" . }}: {{ include "common.secrets.passwords.manage" (dict "secret" (printf "%s-external-redis" .Release.Name) "key" "redis-cache-password" "length" 12 "providedValues" (list "cachingRedis.password") "context" $) }} + {{ include "netbox.tasksRedis.secretPasswordKey" . }}: {{ include "common.secrets.passwords.manage" (dict "secret" (printf "%s-external-redis" .Release.Name) "key" (include "netbox.tasksRedis.secretPasswordKey" .) "length" 12 "providedValues" (list "tasksRedis.password") "context" $) }} {{- end }} \ No newline at end of file diff --git a/charts/netbox/templates/Secret/netbox.yaml b/charts/netbox/templates/Secret/netbox.yaml index 16880974..f3332989 100644 --- a/charts/netbox/templates/Secret/netbox.yaml +++ b/charts/netbox/templates/Secret/netbox.yaml @@ -3,6 +3,7 @@ apiVersion: v1 kind: Secret metadata: name: {{ printf "%s" (include "netbox.fullname" .) }} + namespace: {{ include "common.names.namespace" . | quote }} labels: {{- include "common.labels.standard" (dict "customLabels" .Values.commonLabels "context" $) | nindent 4 }} {{- if .Values.commonAnnotations }} annotations: {{- include "common.tplvalues.render" (dict "value" .Values.commonAnnotations "context" $) | nindent 4 }} diff --git a/charts/netbox/templates/Secret/tls.yaml b/charts/netbox/templates/Secret/tls.yaml index 99798fd9..c0b3cadf 100644 --- a/charts/netbox/templates/Secret/tls.yaml +++ b/charts/netbox/templates/Secret/tls.yaml @@ -1,4 +1,4 @@ -{{- if .Values.ingress.enabled }} +{{- if .Values.ingress.enabled -}} {{- if .Values.ingress.secrets }} {{- range .Values.ingress.secrets }} apiVersion: v1 @@ -62,4 +62,4 @@ data: tls.crt: {{ include "common.secrets.lookup" (dict "secret" $secretName "key" "tls.crt" "defaultValue" $cert.Cert "context" $) }} tls.key: {{ include "common.secrets.lookup" (dict "secret" $secretName "key" "tls.key" "defaultValue" $cert.Key "context" $) }} ca.crt: {{ include "common.secrets.lookup" (dict "secret" $secretName "key" "ca.crt" "defaultValue" $ca.Cert "context" $) }} -{{- end }} +{{- end -}} \ No newline at end of file diff --git a/charts/netbox/templates/serviceaccount.yaml b/charts/netbox/templates/ServiceAccount.yaml similarity index 91% rename from charts/netbox/templates/serviceaccount.yaml rename to charts/netbox/templates/ServiceAccount.yaml index 69e9cc77..eaf81c70 100644 --- a/charts/netbox/templates/serviceaccount.yaml +++ b/charts/netbox/templates/ServiceAccount.yaml @@ -4,6 +4,7 @@ kind: ServiceAccount automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }} metadata: name: {{ include "netbox.serviceAccountName" . }} + namespace: {{ include "common.names.namespace" . | quote }} labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} {{- if or .Values.commonAnnotations .Values.serviceAccount.annotations }} {{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list .Values.serviceAccount.annotations .Values.commonAnnotations ) "context" . ) }} @@ -13,4 +14,4 @@ metadata: imagePullSecrets: {{- toYaml . | nindent 2 }} {{- end }} -{{- end }} +{{- end -}} diff --git a/charts/netbox/templates/_helpers.tpl b/charts/netbox/templates/_helpers.tpl index 81631f47..fa031cfe 100644 --- a/charts/netbox/templates/_helpers.tpl +++ b/charts/netbox/templates/_helpers.tpl @@ -352,19 +352,19 @@ Volumes that need to be mounted for .Values.extraConfig entries {{- define "netbox.extraConfig.volumes" -}} {{- range $index, $config := .Values.extraConfig -}} - name: extra-config-{{ $index }} - {{- if $config.values -}} + {{- if $config.values }} configMap: - name: {{ include "netbox.fullname" $ }} + name: {{ printf "%s" (include "netbox.fullname" $) }} items: - key: extra-{{ $index }}.yaml path: extra-{{ $index }}.yaml - {{- else if $config.configMap -}} + {{- else if $config.configMap }} configMap: {{- toYaml $config.configMap | nindent 4 }} - {{- else if $config.secret -}} + {{- else if $config.secret }} secret: {{- toYaml $config.secret | nindent 4 }} - {{- end -}} + {{- end }} {{ end -}} {{- end -}} diff --git a/charts/netbox/templates/extraDeploy.yaml b/charts/netbox/templates/extraDeploy.yaml new file mode 100644 index 00000000..ce86a443 --- /dev/null +++ b/charts/netbox/templates/extraDeploy.yaml @@ -0,0 +1,4 @@ +{{- range .Values.extraDeploy }} +--- +{{ include "common.tplvalues.render" (dict "value" . "context" $) }} +{{- end }} \ No newline at end of file diff --git a/charts/netbox/templates/istio/ServiceEntry.yaml b/charts/netbox/templates/istio/ServiceEntry.yaml new file mode 100644 index 00000000..70b6ac71 --- /dev/null +++ b/charts/netbox/templates/istio/ServiceEntry.yaml @@ -0,0 +1,19 @@ +{{- if (include "common.capabilities.istioNetworking.apiVersion" .) -}} +apiVersion: {{ include "common.capabilities.istioNetworking.apiVersion" . }} +kind: ServiceEntry +metadata: + name: {{ include "netbox.fullname" . }} + namespace: {{ include "common.names.namespace" . | quote }} +spec: + hosts: + - netbox.dev + location: MESH_EXTERNAL + ports: + - number: 80 + name: http + protocol: HTTP + - number: 443 + name: https + protocol: TLS + resolution: DNS +{{- end -}} \ No newline at end of file diff --git a/charts/netbox/templates/worker/Deployment.yaml b/charts/netbox/templates/worker/Deployment.yaml index 155066c6..04e663c7 100644 --- a/charts/netbox/templates/worker/Deployment.yaml +++ b/charts/netbox/templates/worker/Deployment.yaml @@ -3,6 +3,7 @@ apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} kind: Deployment metadata: name: {{ template "netbox.worker.fullname" . }} + namespace: {{ include "common.names.namespace" . | quote }} {{- $versionLabel := dict "app.kubernetes.io/version" ( include "common.images.version" ( dict "imageRoot" .Values.worker.image "chart" .Chart ) ) }} {{- $labels := include "common.tplvalues.merge" ( dict "values" ( list .Values.commonLabels $versionLabel ) "context" . ) }} labels: {{- include "common.labels.standard" ( dict "customLabels" $labels "context" $ ) | nindent 4 }} @@ -117,7 +118,6 @@ spec: - name: secrets mountPath: /run/secrets/netbox readOnly: true - {{- include "netbox.extraConfig.volumeMounts" . | nindent 12 -}} - name: netbox-tmp mountPath: /tmp - name: media @@ -135,6 +135,7 @@ spec: {{- if .Values.scriptsPersistence.subPath }} subPath: {{ .Values.scriptsPersistence.subPath | quote }} {{- end }} + {{- include "netbox.extraConfig.volumeMounts" . | nindent 12 }} {{- if .Values.worker.extraVolumeMounts }} {{- include "common.tplvalues.render" ( dict "value" .Values.worker.extraVolumeMounts "context" $ ) | nindent 12 }} {{- end }} @@ -234,7 +235,6 @@ spec: items: - key: {{ include "netbox.cachingRedis.secretPasswordKey" . | quote }} path: redis_cache_password - {{- include "netbox.extraConfig.volumes" . | nindent 8 -}} - name: netbox-tmp emptyDir: medium: Memory @@ -259,7 +259,8 @@ spec: {{- else }} emptyDir: {} {{- end }} - {{- if .Values.extraVolumes }} - {{- include "common.tplvalues.render" (dict "value" .Values.extraVolumes "context" $) | nindent 8 }} - {{- end }} + {{- include "netbox.extraConfig.volumes" . | nindent 8 }} + {{- if .Values.extraVolumes }} + {{- include "common.tplvalues.render" (dict "value" .Values.extraVolumes "context" $) | nindent 8 }} + {{- end }} {{- end }} \ No newline at end of file diff --git a/charts/netbox/values.yaml b/charts/netbox/values.yaml index 6860503d..a738669c 100644 --- a/charts/netbox/values.yaml +++ b/charts/netbox/values.yaml @@ -93,7 +93,7 @@ diagnosticMode: image: registry: docker.io repository: netboxcommunity/netbox - tag: "v3.7.1-2.8.0" + tag: "v3.7.2-2.8.0" digest: "" ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' @@ -117,17 +117,17 @@ command: [] ## @param args Override default container args (useful when using custom images) ## args: [] -## @param preExecCmds Additional commands to run prior to starting Netbox worker +## @param preExecCmds Additional commands to run prior to starting Netbox ## preExecCmds: [] -## @param extraFlags Array with additional command line flags for Netbox worker +## @param extraFlags Array with additional command line flags for Netbox ## e.g: ## extraFlags: ## - "--maxmemory-policy volatile-ttl" ## - "--repl-backlog-size 1024mb" ## extraFlags: [] -## @param extraEnvVars Array with extra environment variables to add to Netbox worker nodes +## @param extraEnvVars Array with extra environment variables to add to Netbox nodes ## e.g: ## extraEnvVars: ## - name: FOO @@ -142,13 +142,13 @@ extraEnvVars: [] ## name: secret-resource ## extraEnvs: [] -## @param extraEnvVarsCM Name of existing ConfigMap containing extra env vars for Netbox worker nodes +## @param extraEnvVarsCM Name of existing ConfigMap containing extra env vars for Netbox nodes ## extraEnvVarsCM: "" -## @param extraEnvVarsSecret Name of existing Secret containing extra env vars for Netbox worker nodes +## @param extraEnvVarsSecret Name of existing Secret containing extra env vars for Netbox nodes ## extraEnvVarsSecret: "" -## @param containerPorts.redis Container port to open on Netbox worker nodes +## @param containerPorts.redis Container port to open on Netbox nodes ## containerPorts: http: 8080 @@ -504,10 +504,11 @@ csrf: # Set the default preferred language/locale defaultLanguage: en-us -# Set to True to enable server debugging. WARNING: Debugging introduces a -# substantial performance penalty and may reveal sensitive information about -# your installation. Only enable debugging while performing testing. Never -# enable debugging on a production system. +## @param debug Set to True to enable server debugging. WARNING: Debugging introduces a +## substantial performance penalty and may reveal sensitive information about +## your installation. Only enable debugging while performing testing. Never +## enable debugging on a production system. +## debug: false # Display full traceback of errors that occur when applying database @@ -720,6 +721,22 @@ remoteAuth: attrLastName: 'sn' attrMail: 'mail' +socialAuth: + pipelines: + - social_core.pipeline.social_auth.social_details + - social_core.pipeline.social_auth.social_uid + - social_core.pipeline.social_auth.social_user + - social_core.pipeline.user.get_username + - social_core.pipeline.social_auth.associate_by_email + - social_core.pipeline.user.create_user + - social_core.pipeline.social_auth.associate_user + - netbox.authentication.user_default_groups_handler + - social_core.pipeline.social_auth.load_extra_data + - social_core.pipeline.user.user_details + - netbox.sso_pipeline_roles.set_role + jsonField: + enabled: true + releaseCheck: ## This repository is used to check whether there is a new release of NetBox ## available. Set to null to disable the version check or use the URL below to @@ -731,10 +748,12 @@ releaseCheck: # Maximum execution time for background tasks, in seconds. rqDefaultTimeout: 300 # 5 mins -# The name to use for the session cookie. +## @param sessionCookieName The name to use for the session cookie. +## sessionCookieName: sessionid -# Localization +## @param enableLocalization Localization +## enableLocalization: false ## @param timeZone Time zone (default: UTC) @@ -755,19 +774,20 @@ shortDateTimeFormat: 'Y-m-d H:i' ## You can pass additional YAML files to be loaded into NetBox's configuration. ## These can be passed as arbitrary configuration values set in the chart, or ## you can load arbitrary *.yaml keys from ConfigMaps and Secrets. +## extraConfig: +## - values: +## EXTRA_SETTING_ONE: example +## ANOTHER_SETTING: foobar +## - configMap: # pod.spec.volumes.configMap +## name: netbox-extra +## items: [] +## optional: false +## - secret: # same as pod.spec.volumes.secret +## secretName: netbox-extra +## items: [] +## optional: false ## extraConfig: [] - # - values: - # EXTRA_SETTING_ONE: example - # ANOTHER_SETTING: foobar - # - configMap: # pod.spec.volumes.configMap - # name: netbox-extra - # items: [] - # optional: false - # - secret: # same as pod.spec.volumes.secret - # secretName: netbox-extra - # items: [] - # optional: false ## @param secretKey If provided, this should be a 50+ character string of random characters. It ## will be randomly generated if left blank. @@ -1316,7 +1336,7 @@ housekeeping: image: registry: docker.io repository: netboxcommunity/netbox - tag: "v3.7.1-2.8.0" + tag: "v3.7.2-2.8.0" digest: "" ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' @@ -1531,7 +1551,7 @@ worker: image: registry: docker.io repository: netboxcommunity/netbox - tag: "v3.7.1-2.8.0" + tag: "v3.7.2-2.8.0" digest: "" ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'