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
2 changes: 1 addition & 1 deletion charts/neuron-helm-chart/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ Expand the name of the chart.
Expand the namespace of the chart.
*/}}
{{- define "neuron-node-problem-detector-and-recovery.namespace" -}}
{{- default .Release.Namespace .Values.npd.namespaceOverride | trunc 63 | trimSuffix "-" -}}
{{- default .Release.Namespace .Values.npd.namespace.name | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{/*
Expand Down
1 change: 1 addition & 0 deletions charts/neuron-helm-chart/templates/npd-daemonset.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- if .Values.npd.enabled }}
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
Expand Down
9 changes: 9 additions & 0 deletions charts/neuron-helm-chart/templates/npd-namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{{- if and .Values.npd.enabled .Values.npd.namespace.create }}
apiVersion: v1
kind: Namespace
metadata:
name: {{ include "neuron-node-problem-detector-and-recovery.namespace" . }}
labels:
app: {{ include "neuron-node-problem-detector-and-recovery.fullname" . }}
{{- include "neuron-node-problem-detector-and-recovery.labels" . | nindent 4 }}
{{- end }}
4 changes: 3 additions & 1 deletion charts/neuron-helm-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ npd:
name: node-problem-detector-config
imagePullSecrets: []
nameOverride: node-problem-detector
namespaceOverride: neuron-healthcheck-system
namespace:
name: neuron-healthcheck-system
create: false
fullnameOverride: node-problem-detector
selectorLabelsOverride: {}
serviceAccount:
Expand Down