Skip to content

Commit

Permalink
Add support for pod annotations on daemonset (helm#22086)
Browse files Browse the repository at this point in the history
Signed-off-by: usamaahmadkhan <[email protected]>
  • Loading branch information
usamaahmadkhan authored Apr 23, 2020
1 parent cae81df commit 881d795
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 1 deletion.
6 changes: 6 additions & 0 deletions stable/falco/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
This file documents all notable changes to Falco Helm Chart. The release
numbering uses [semantic versioning](http://semver.org).

## v1.1.7

### Minor Changes

* Add pod annotation support for daemonset

## v1.1.6

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion stable/falco/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: falco
version: 1.1.6
version: 1.1.7
appVersion: 0.21.0
description: Falco
keywords:
Expand Down
1 change: 1 addition & 0 deletions stable/falco/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ The following table lists the configurable parameters of the Falco chart and the
| `fakeEventGenerator.replicas` | How many replicas of falco-event-generator to run | `1` |
| `daemonset.updateStrategy.type` | The updateStrategy for updating the daemonset | `RollingUpdate` |
| `daemonset.env` | Extra environment variables passed to daemonset pods | `{}` |
| `daemonset.podAnnotations` | Extra pod annotations to be added to pods created by the daemonset | `{}` |
| `podSecurityPolicy.create` | If true, create & use podSecurityPolicy | `false` |
| `proxy.httpProxy` | Set the Proxy server if is behind a firewall | ` ` |
| `proxy.httpsProxy` | Set the Proxy server if is behind a firewall | ` ` |
Expand Down
3 changes: 3 additions & 0 deletions stable/falco/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ spec:
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
checksum/rules: {{ include (print $.Template.BasePath "/configmap-rules.yaml") . | sha256sum }}
{{- if .Values.daemonset.podAnnotations }}
{{ toYaml .Values.daemonset.podAnnotations | indent 8 }}
{{- end }}
spec:
serviceAccountName: {{ template "falco.serviceAccountName" .}}
{{- if (and .Values.ebpf.enabled .Values.ebpf.settings.hostNetwork) }}
Expand Down
3 changes: 3 additions & 0 deletions stable/falco/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ daemonset:
## Extra environment variables that will be pass onto deployment pods
env: {}

## Add aditional pod annotations on pods created by DaemonSet
podAnnotations: {}

# If is behind a proxy you can set the proxy server
proxy:
httpProxy:
Expand Down

0 comments on commit 881d795

Please sign in to comment.