Skip to content

Commit

Permalink
Added the controller.labels field for extra deploment/daemonset label…
Browse files Browse the repository at this point in the history
…ing.

Signed-off-by: Strigix <stefan@vtveld.nl>
  • Loading branch information
Strigix authored and poiana committed Jun 18, 2024
1 parent 3ed6801 commit 040aea0
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 4 deletions.
4 changes: 4 additions & 0 deletions charts/falco/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
This file documents all notable changes to Falco Helm Chart. The release
numbering uses [semantic versioning](http://semver.org).

## v4.4.3

* Added a `labels` field in the controller to provide extra labeling for the daemonset/deployment

## v4.4.2

* fix wrong check in pod template where `existingSecret` was used instead of `existingClientSecret`
Expand Down
2 changes: 1 addition & 1 deletion charts/falco/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: falco
version: 4.4.2
version: 4.4.3
appVersion: "0.38.0"
description: Falco
keywords:
Expand Down
3 changes: 2 additions & 1 deletion charts/falco/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ If you use a Proxy in your cluster, the requests between `Falco` and `Falcosidek

## Configuration

The following table lists the main configurable parameters of the falco chart v4.4.2 and their default values. See [values.yaml](./values.yaml) for full list.
The following table lists the main configurable parameters of the falco chart v4.4.3 and their default values. See [values.yaml](./values.yaml) for full list.

## Values

Expand Down Expand Up @@ -612,6 +612,7 @@ The following table lists the main configurable parameters of the falco chart v4
| controller.daemonset.updateStrategy.type | string | `"RollingUpdate"` | Perform rolling updates by default in the DaemonSet agent ref: https://kubernetes.io/docs/tasks/manage-daemon/update-daemon-set/ |
| controller.deployment.replicas | int | `1` | Number of replicas when installing Falco using a deployment. Change it if you really know what you are doing. For more info check the section on Plugins in the README.md file. |
| controller.kind | string | `"daemonset"` | |
| controller.labels | object | `{}` | Extra labels to add to the daemonset or deployment |
| customRules | object | `{}` | Third party rules enabled for Falco. More info on the dedicated section in README.md file. |
| driver.ebpf | object | `{"bufSizePreset":4,"dropFailedExit":false,"hostNetwork":false,"leastPrivileged":false,"path":"${HOME}/.falco/falco-bpf.o"}` | Configuration section for ebpf driver. |
| driver.ebpf.bufSizePreset | int | `4` | bufSizePreset determines the size of the shared space between Falco and its drivers. This shared space serves as a temporary storage for syscall events. |
Expand Down
5 changes: 4 additions & 1 deletion charts/falco/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ metadata:
namespace: {{ include "falco.namespace" . }}
labels:
{{- include "falco.labels" . | nindent 4 }}
{{- if .Values.controller.labels }}
{{- toYaml .Values.controller.labels | nindent 4 }}
{{- end }}
{{- if .Values.controller.annotations }}
annotations:
{{ toYaml .Values.controller.annotations | nindent 4 }}
Expand All @@ -20,4 +23,4 @@ spec:
updateStrategy:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
{{- end }}
5 changes: 4 additions & 1 deletion charts/falco/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ metadata:
namespace: {{ include "falco.namespace" . }}
labels:
{{- include "falco.labels" . | nindent 4 }}
{{- if .Values.controller.labels }}
{{- toYaml .Values.controller.labels | nindent 4 }}
{{- end }}
{{- if .Values.controller.annotations }}
annotations:
{{ toYaml .Values.controller.annotations | nindent 4 }}
Expand All @@ -20,4 +23,4 @@ spec:
{{- include "falco.selectorLabels" . | nindent 6 }}
template:
{{- include "falco.podTemplate" . | nindent 4 }}
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions charts/falco/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ controller:
kind: daemonset
# Annotations to add to the daemonset or deployment
annotations: {}
# -- Extra labels to add to the daemonset or deployment
labels: {}
daemonset:
updateStrategy:
# You can also customize maxUnavailable or minReadySeconds if you
Expand Down

0 comments on commit 040aea0

Please sign in to comment.