Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(lacework-agent) Optionally create clusterAgent templated resources #249

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lacework-agent/templates/cluster-role-binding.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if (.Values.clusterAgent).enable -}}
{{- if (and (.Values.clusterAgent).enable (.Values.clusterAgent).createRoleBinding) -}}
apiVersion: rbac.authorization.k8s.io/v1
# This cluster role binding allows anyone in the "manager" group to read secrets in any namespace.
kind: ClusterRoleBinding
Expand Down
2 changes: 1 addition & 1 deletion lacework-agent/templates/cluster-role.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if (.Values.clusterAgent).enable -}}
{{- if (and (.Values.clusterAgent).enable (.Values.clusterAgent).createRole) -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
Expand Down
2 changes: 1 addition & 1 deletion lacework-agent/templates/service-account.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if (.Values.clusterAgent).enable -}}
{{- if (and (.Values.clusterAgent).enable (.Values.clusterAgent).createServiceAccount) -}}
apiVersion: v1
kind: ServiceAccount
metadata:
Expand Down
12 changes: 12 additions & 0 deletions lacework-agent/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,18 @@
"hostNetworkAccess": {
"type": "boolean",
"description": "Enable host network access to the cluster collector pod"
},
"createRoleBinding": {
"type": "boolean",
"description": "Enable creation of the role binding"
},
"createRole": {
"type": "boolean",
"description": "Enable creation of the role"
},
"createServiceAccount": {
"type": "boolean",
"description": "Enable creation of the service account"
}
},
"additionalProperties": false
Expand Down
3 changes: 3 additions & 0 deletions lacework-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ clusterAgent:
# https://docs.lacework.net/onboarding/restricted/configure-agent-behavior-in-configjson-file#proxyurl-propert
proxyUrl:
hostNetworkAccess: false
createRoleBinding: true
createRole: true
createServiceAccount: true
image:
registry: docker.io
repository: lacework/k8scollector
Expand Down