Skip to content

refactor(plugins/k8saudit): make evt size and batch size configurable with official terminology#110

Merged
poiana merged 1 commit intomasterfrom
update/k8saudit-evtsize
May 31, 2022
Merged

refactor(plugins/k8saudit): make evt size and batch size configurable with official terminology#110
poiana merged 1 commit intomasterfrom
update/k8saudit-evtsize

Conversation

@jasondellaluce
Copy link
Copy Markdown
Contributor

@jasondellaluce jasondellaluce commented May 31, 2022

Signed-off-by: Jason Dellaluce jasondellaluce@gmail.com

What type of PR is this?

/kind documentation

/kind feature

Any specific area of the project related to this PR?

/area plugins

What this PR does / why we need it:

This PR updates the k8saudit plugin and allows configuring the event size of each event. This solves a problem where the plugin terminates with io.ErrShortWrite due to the underlying allocated event batch being too small for the event coming from the webhook backend. Accordingly, the max event and batch size have been renamed in the init config to resemble the terminology of the k8s docs(--audit-webhook-truncate-max-batch-size, --audit-webhook-truncate-max-event-size): https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/

Which issue(s) this PR fixes:

Special notes for your reviewer:

… with official terminology

Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
@poiana poiana added kind/documentation Improvements or additions to documentation dco-signoff: yes kind/feature New feature or request area/plugins labels May 31, 2022
@poiana poiana requested review from ldegio and leodido May 31, 2022 14:21
Copy link
Copy Markdown
Member

@leogr leogr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@poiana
Copy link
Copy Markdown
Contributor

poiana commented May 31, 2022

LGTM label has been added.

DetailsGit tree hash: 40616a4781df45ac723af264f12db174a470fd62

@poiana
Copy link
Copy Markdown
Contributor

poiana commented May 31, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jasondellaluce, leogr

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [jasondellaluce,leogr]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana poiana merged commit b4b22f1 into master May 31, 2022
@poiana poiana deleted the update/k8saudit-evtsize branch May 31, 2022 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved area/plugins dco-signoff: yes kind/documentation Improvements or additions to documentation kind/feature New feature or request lgtm size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants