Skip to content

Commit

Permalink
Merge pull request #265 from falcon-pioupiou/feat-kac-clustername-sup…
Browse files Browse the repository at this point in the history
…port

feat(kac): add clusterName support
  • Loading branch information
falcon-pioupiou authored Jun 11, 2024
2 parents ad7ad7f + 1246aa8 commit c8ee7d7
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
4 changes: 2 additions & 2 deletions helm-charts/falcon-kac/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.1.1
version: 1.1.2

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: 1.1.1
appVersion: 1.1.2

keywords:
- CrowdStrike
Expand Down
13 changes: 12 additions & 1 deletion helm-charts/falcon-kac/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,15 @@ data:
FALCONCTL_OPT_{{ $key | upper }}: {{ $value | quote }}
{{- end }}
{{- end }}

{{- if .Values.clusterName }}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: falcon-kac-meta
namespace: {{ .Release.Namespace }}
labels:
{{- include "falcon-kac.labels" . | nindent 4 }}
data:
ClusterName: {{ .Values.clusterName }}
{{- end -}}
9 changes: 9 additions & 0 deletions helm-charts/falcon-kac/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@ falcon:
tags:
provisioning_token:

# Falcon KAC can usually discover the clusterName automatically so setting clusterName here is normally
# not necessary, but in some cases the clusterName cannot be discovered by the KAC, e.g. for self-hosted
# kubernetes clusters such as MicroK8s. In those case, the clusterName can be manually set here.
# The clusterName is displayed as hostname for KAC in the Host Management UI.
# Note: if the clusterName is detected by the KAC, this value will be overwritten
# for the falcon-kac that will be displayed in the Host Management UI.
# Important Note: if the clusterName is detected by the agent, this value will be overwritten
clusterName: ""

# Annotations to apply to the webhook deployment
annotations: {}

Expand Down

0 comments on commit c8ee7d7

Please sign in to comment.