diff --git a/charts/discord-alertmanager/Chart.yaml b/charts/discord-alertmanager/Chart.yaml index 88dfeff8..3699ef42 100644 --- a/charts/discord-alertmanager/Chart.yaml +++ b/charts/discord-alertmanager/Chart.yaml @@ -1,7 +1,7 @@ name: discord-alertmanager description: Helm chart to deploy webhook integration for sending alert manager alerts on discord. -version: 0.10.0 -appVersion: 0.1.0 +version: 0.10.1 +appVersion: 0.2.0 maintainers: - email: ajay@devtron.ai name: Ajay diff --git a/charts/discord-alertmanager/templates/deployment.yaml b/charts/discord-alertmanager/templates/deployment.yaml index e4b4a838..61516965 100644 --- a/charts/discord-alertmanager/templates/deployment.yaml +++ b/charts/discord-alertmanager/templates/deployment.yaml @@ -31,4 +31,13 @@ spec: {{- end }} resources: {{- toYaml .Values.resources | nindent 12 }} - \ No newline at end of file + {{- with $.Values.tolerations }} + tolerations: + {{- toYaml . | nindent 10 }} + {{- end }} + {{- if $.Values.affinity }} + affinity: + {{- toYaml .Values.affinity | nindent 10 }} + {{- end }} + + diff --git a/charts/discord-alertmanager/values.yaml b/charts/discord-alertmanager/values.yaml index 9c677de5..7dd46a51 100644 --- a/charts/discord-alertmanager/values.yaml +++ b/charts/discord-alertmanager/values.yaml @@ -19,6 +19,32 @@ env: value: https://test.com resources: {} + +tolerations: [] +# - key: "key1" +# operator: "Equal" +# value: "value1" +# effect: "NoSchedule" +# - key: "key2" +# operator: "Equal" +# value: "value1" +# effect: "NoSchedule" + +affinity: {} + # nodeAffinity: + # requiredDuringSchedulingIgnoredDuringExecution : + # nodeSelectorTerms: + # - matchExpressions: + # - key: topology.kubernetes.io/zone + # operator: In + # values: + # - us-east-2a + # - key: topology.kubernetes.io/region + # operator: In + # values: + # - us-east-2 + + # We usually recommend not to specify default resources and to leave this as a conscious # choice for the user. This also increases chances charts run on environments with little # resources, such as Minikube. If you do want to specify resources, uncomment the following @@ -28,4 +54,4 @@ resources: {} # memory: 128Mi # requests: # cpu: 100m - # memory: 128Mi \ No newline at end of file + # memory: 128Mi