-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for falco on OpenShift 4.6 by adding MachineConfigs with …
…kernel-devel extension
- Loading branch information
1 parent
f52ac72
commit 3c08a98
Showing
6 changed files
with
81 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
deploy/helm/sumologic/templates/machineconfig/machineconfig-master.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{{- if and (eq .Values.sumologic.scc.create true) (.Capabilities.APIVersions.Has "security.openshift.io/v1")}} | ||
{{- if and (eq .Values.falco.enabled true) (eq .Values.falco.addKernelDevel true) }} | ||
apiVersion: machineconfiguration.openshift.io/v1 | ||
kind: MachineConfig | ||
metadata: | ||
labels: | ||
app: {{ template "sumologic.labels.app.machineconfig.master" . }} | ||
{{- include "sumologic.labels.machineconfig.master" . | nindent 4 }} | ||
{{- include "sumologic.labels.common" . | nindent 4 }} | ||
name: {{ template "sumologic.labels.app.machineconfig.master" . }} | ||
spec: | ||
extensions: | ||
- kernel-devel | ||
{{- end }} | ||
{{- end }} |
15 changes: 15 additions & 0 deletions
15
deploy/helm/sumologic/templates/machineconfig/machineconfig-worker.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{{- if and (eq .Values.sumologic.scc.create true) (.Capabilities.APIVersions.Has "security.openshift.io/v1")}} | ||
{{- if and (eq .Values.falco.enabled true) (eq .Values.falco.addKernelDevel true) }} | ||
apiVersion: machineconfiguration.openshift.io/v1 | ||
kind: MachineConfig | ||
metadata: | ||
labels: | ||
app: {{ template "sumologic.labels.app.machineconfig.worker" . }} | ||
{{- include "sumologic.labels.machineconfig.worker" . | nindent 4 }} | ||
{{- include "sumologic.labels.common" . | nindent 4 }} | ||
name: {{ template "sumologic.labels.app.machineconfig.worker" . }} | ||
spec: | ||
extensions: | ||
- kernel-devel | ||
{{- end }} | ||
{{- end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters