Skip to content

Commit

Permalink
[stable/sumologic-fluentd] Add support for DaemonSet annotations (hel…
Browse files Browse the repository at this point in the history
…m#17054)

Signed-off-by: Constantin Bugneac <[email protected]>
  • Loading branch information
Constantin07 committed Oct 24, 2019
1 parent d795962 commit c152f50
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/sumologic-fluentd/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: sumologic-fluentd
version: 1.1.1
version: 1.1.2
appVersion: 2.3.0
description: Sumologic Log Collector
keywords:
Expand Down
1 change: 1 addition & 0 deletions stable/sumologic-fluentd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ The following table lists the configurable parameters of the sumologic-fluentd c
| Parameter | Description | Default |
|-----------|-------------|---------|
| `podAnnotations` | Annotations to add to the DaemonSet's Pods | `{}` |
| `daemonsetAnnotations` | Annotations to add to the DaemonSet itself | `{}` |
| `tolerations` | List of node taints to tolerate (requires Kubernetes >= 1.6) | `[]` |
| `nodeSelector` | Node labels for fluentd pod assignment | `{}` |
| `affinity` | Expressions for affinity | `{}` |
Expand Down
4 changes: 4 additions & 0 deletions stable/sumologic-fluentd/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ metadata:
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- if .Values.daemonsetAnnotations }}
annotations:
{{ toYaml .Values.daemonsetAnnotations | indent 6 }}
{{- end }}
spec:
template:
metadata:
Expand Down
3 changes: 3 additions & 0 deletions stable/sumologic-fluentd/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ image:
podAnnotations: {}
# scheduler.alpha.kubernetes.io/tolerations: '[{"key": "example", "value": "foo"}]'

## Annotations to add to the DaemonSet
daemonsetAnnotations: {}

## Allow the DaemonSet to schedule on tainted nodes (requires Kubernetes >= 1.6)
tolerations: []
# - key: node.alpha.kubernetes.io/role
Expand Down

0 comments on commit c152f50

Please sign in to comment.