Remove namespace so helm install it (#4)

* Remove namespace so helm install it

Signed-off-by: Alexandre Peixoto Ferreira <alexandref75@gmail.com>

* Fix nodeSelector (Bug #9027 helm)

Signed-off-by: Alexandre Peixoto Ferreira <alexandref75@gmail.com>

Signed-off-by: Alexandre Peixoto Ferreira <alexandref75@gmail.com>
This commit is contained in:
Alexandre Peixoto Ferreira
2022-11-07 12:42:38 -06:00
committed by Eric Van Hensbergen
parent a45e9c10fd
commit 3b4636fa30
4 changed files with 6 additions and 9 deletions

View File

@@ -2,7 +2,7 @@ apiVersion: v2
name: smarter-device-manager
description: smarter-device-manager chart for SMARTER edge devices
home: https://gitlab.com/smarter-project/smarter-device-manager/helm
version: 0.0.2
version: 0.0.3
appVersion: v1.20.11
kubeVersion: ">=1.16.0-0"
keywords:

View File

@@ -2,7 +2,6 @@ apiVersion: apps/v1
kind: DaemonSet
metadata:
name: {{ .Values.application.appName }}
namespace: {{ .Values.application.namespace }}
labels:
name: {{ .Values.application.appName }}
role: agent
@@ -20,7 +19,11 @@ spec:
node.kubernetes.io/bootstrap-checkpoint: "true"
spec:
nodeSelector:
{{- toYaml .Values.configuration.nodeSelector | nindent 8 }}
{{- if .Values.nodeSelector }}
{{- toYaml .Values.nodeSelector | nindent 8 }}
{{- else }}
smarter.device-manager: enabled
{{- end }}
tolerations:
- key: "smarter.type"
operator: "Equal"

View File

@@ -3,7 +3,6 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Values.application.appName }}
namespace: {{ .Values.application.namespace }}
data:
conf.yaml: |
{{- toYaml .Values.config | nindent 4 }}

View File

@@ -1,7 +1,6 @@
#
application:
namespace: smarter
appName: smarter-device-manager
image:
@@ -10,10 +9,6 @@ image:
tag: ""
pullPolicy: IfNotPresent
configuration:
nodeSelector:
smarter.device-manager: enabled
# If a specific configurations is used it can be provided by uncommenting this lines
# config:
# - devicematch: ^snd$