Skip to content

Conversation

@rushmash91
Copy link
Member

@rushmash91 rushmash91 commented May 7, 2025

Closes aws-controllers-k8s/community#2439

Description of changes:

  • Added support for logging configuration (S3 buckets etc) for WebACLs.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ack-prow ack-prow bot requested review from a-hilaly and michaelhtm May 7, 2025 23:18
@ack-prow ack-prow bot added the approved label May 7, 2025
@rushmash91 rushmash91 force-pushed the loggingconfig branch 7 times, most recently from 39daeb2 to 301e536 Compare May 9, 2025 17:49
Comment on lines 28 to 31
if loggingConfigResp != nil && loggingConfigResp.LoggingConfiguration != nil {
// Populate the logging configuration fields in ko.
if errSetLogCfg := setLoggingConfiguration(ko, loggingConfigResp.LoggingConfiguration); errSetLogCfg != nil {
return nil, errSetLogCfg
}
}
Copy link
Member

Choose a reason for hiding this comment

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

genuine question why use errGetLogCfg and errGetLogCfg as error names, it's pretty rare in Go to see such a name decision

Copy link
Member Author

@rushmash91 rushmash91 May 9, 2025

Choose a reason for hiding this comment

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

I was using the debugger to look at the err variables, had renamed them to have all of them at a checkpoint. Switched back to err.

Copy link
Member

@michaelhtm michaelhtm left a comment

Choose a reason for hiding this comment

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

Great work @rushmash91
left a few nits

@rushmash91 rushmash91 force-pushed the loggingconfig branch 3 times, most recently from 04c9a41 to 53b3792 Compare May 9, 2025 18:56
Copy link
Member

@michaelhtm michaelhtm left a comment

Choose a reason for hiding this comment

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

👍

@michaelhtm
Copy link
Member

/lgtm
/hold

@ack-prow ack-prow bot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. lgtm Indicates that a PR is ready to be merged. labels May 9, 2025
@ack-prow ack-prow bot removed the lgtm Indicates that a PR is ready to be merged. label May 9, 2025
@ack-prow
Copy link

ack-prow bot commented May 9, 2025

@rushmash91: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
wafv2-verify-attribution 104cfb4 link false /test wafv2-verify-attribution

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Copy link
Contributor

@knottnt knottnt left a comment

Choose a reason for hiding this comment

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

Small nit about logging.

@knottnt
Copy link
Contributor

knottnt commented May 9, 2025

/lgtm
/hold

@ack-prow ack-prow bot added the lgtm Indicates that a PR is ready to be merged. label May 9, 2025
@ack-prow
Copy link

ack-prow bot commented May 9, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: knottnt, michaelhtm, rushmash91

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

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [knottnt,michaelhtm,rushmash91]

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

@rushmash91
Copy link
Member Author

/unhold

@ack-prow ack-prow bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 12, 2025
@ack-prow ack-prow bot merged commit bacdcfe into aws-controllers-k8s:main May 12, 2025
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for WAF access logs

4 participants