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 name: smarter-device-manager
description: smarter-device-manager chart for SMARTER edge devices description: smarter-device-manager chart for SMARTER edge devices
home: https://gitlab.com/smarter-project/smarter-device-manager/helm home: https://gitlab.com/smarter-project/smarter-device-manager/helm
version: 0.0.2 version: 0.0.3
appVersion: v1.20.11 appVersion: v1.20.11
kubeVersion: ">=1.16.0-0" kubeVersion: ">=1.16.0-0"
keywords: keywords:

View File

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

View File

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

View File

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