Skip to content

Commit 3b4636f

Browse files
alexandref75ericvh
authored andcommitted
Remove namespace so helm install it (#4)
* Remove namespace so helm install it Signed-off-by: Alexandre Peixoto Ferreira <[email protected]> * Fix nodeSelector (Bug #9027 helm) Signed-off-by: Alexandre Peixoto Ferreira <[email protected]> Signed-off-by: Alexandre Peixoto Ferreira <[email protected]>
1 parent a45e9c1 commit 3b4636f

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

chart/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: smarter-device-manager
33
description: smarter-device-manager chart for SMARTER edge devices
44
home: https://gitlab.com/smarter-project/smarter-device-manager/helm
5-
version: 0.0.2
5+
version: 0.0.3
66
appVersion: v1.20.11
77
kubeVersion: ">=1.16.0-0"
88
keywords:

chart/templates/common.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ apiVersion: apps/v1
22
kind: DaemonSet
33
metadata:
44
name: {{ .Values.application.appName }}
5-
namespace: {{ .Values.application.namespace }}
65
labels:
76
name: {{ .Values.application.appName }}
87
role: agent
@@ -20,7 +19,11 @@ spec:
2019
node.kubernetes.io/bootstrap-checkpoint: "true"
2120
spec:
2221
nodeSelector:
23-
{{- toYaml .Values.configuration.nodeSelector | nindent 8 }}
22+
{{- if .Values.nodeSelector }}
23+
{{- toYaml .Values.nodeSelector | nindent 8 }}
24+
{{- else }}
25+
smarter.device-manager: enabled
26+
{{- end }}
2427
tolerations:
2528
- key: "smarter.type"
2629
operator: "Equal"

chart/templates/configmap.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ apiVersion: v1
33
kind: ConfigMap
44
metadata:
55
name: {{ .Values.application.appName }}
6-
namespace: {{ .Values.application.namespace }}
76
data:
87
conf.yaml: |
98
{{- toYaml .Values.config | nindent 4 }}

chart/values.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#
22

33
application:
4-
namespace: smarter
54
appName: smarter-device-manager
65

76
image:
@@ -10,10 +9,6 @@ image:
109
tag: ""
1110
pullPolicy: IfNotPresent
1211

13-
configuration:
14-
nodeSelector:
15-
smarter.device-manager: enabled
16-
1712
# If a specific configurations is used it can be provided by uncommenting this lines
1813
# config:
1914
# - devicematch: ^snd$

0 commit comments

Comments
 (0)