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

add audit log samples #37

Merged
merged 1 commit into from
Oct 25, 2024
Merged

add audit log samples #37

merged 1 commit into from
Oct 25, 2024

Conversation

jcantrill
Copy link
Member

This PR:

  • Adds the ability to write sample audit logs as-is from a cluster

cc @xperimental @JoaoBraveCoding @cahartma

//go:embed samples_audit.txt
auditSamplesRaw string

auditSamples = strings.Split(auditSamplesRaw, "\n")
Copy link
Contributor

@xperimental xperimental Oct 24, 2024

Choose a reason for hiding this comment

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

I think you need to trim the last element from the slice, because the input file correctly has an EOL at the end there's a third empty string present.

--edit: trimming the EOL from the string is probably easier.

Copy link
Member Author

Choose a reason for hiding this comment

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

trimmed and added more samples

Copy link

@JoaoBraveCoding JoaoBraveCoding left a comment

Choose a reason for hiding this comment

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

from my side lgtm

@jcantrill jcantrill merged commit 7b2cc36 into ViaQ:main Oct 25, 2024
2 checks passed
@jcantrill jcantrill deleted the add_audit branch October 25, 2024 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants