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: Update audit and controller manager with pod labels (#3240) (cherry pick) #3284

Merged
merged 1 commit into from Mar 12, 2024

Conversation

ghost
Copy link

@ghost ghost commented Feb 23, 2024

Signed-off-by: James Bruce james.bruce@ba.com
Co-authored-by: Rita Zhang rita.z.zhang@gmail.com
(cherry picked from commit 902a1b4)

What this PR does / why we need it:
Details in #3240

Signed-off-by: James Bruce <james.bruce@ba.com>
Co-authored-by: Rita Zhang <rita.z.zhang@gmail.com>
(cherry picked from commit 902a1b4)
@ghost ghost changed the title feat: Update audit and controller manager with pod labels (#3240) feat: Update audit and controller manager with pod labels (#3240) (cherry pick) Feb 23, 2024
@codecov-commenter
Copy link

codecov-commenter commented Feb 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 52.91%. Comparing base (f07df71) to head (f09a395).

Additional details and impacted files
@@               Coverage Diff                @@
##           release-3.14    #3284      +/-   ##
================================================
+ Coverage         52.87%   52.91%   +0.04%     
================================================
  Files               134      134              
  Lines             11959    11959              
================================================
+ Hits               6323     6328       +5     
+ Misses             5135     5131       -4     
+ Partials            501      500       -1     
Flag Coverage Δ
unittests 52.91% <ø> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ghost
Copy link
Author

ghost commented Feb 29, 2024

@ritazh Any idea why the linting is failing? This passed for the original PR

@maxsmythe
Copy link
Contributor

Might have been a flake. Rerunning.

@maxsmythe
Copy link
Contributor

It looks like there are some lint errors in the untouched code:

Lint: pkg/mutation/match/match_test.go#L675
G601: Implicit memory aliasing in for loop. (gosec)
Lint: pkg/expansion/system_test.go#L403
G601: Implicit memory aliasing in for loop. (gosec)
Lint: pkg/cachemanager/cachemanager_test.go#L242
G601: Implicit memory aliasing in for loop. (gosec)

@ritazh Fix or ignore?

@maxsmythe
Copy link
Contributor

These are all in tests, so not super worried, personally

@ritazh
Copy link
Member

ritazh commented Mar 5, 2024

It looks like there are some lint errors in the untouched code:

Lint: pkg/mutation/match/match_test.go#L675 G601: Implicit memory aliasing in for loop. (gosec) Lint: pkg/expansion/system_test.go#L403 G601: Implicit memory aliasing in for loop. (gosec) Lint: pkg/cachemanager/cachemanager_test.go#L242 G601: Implicit memory aliasing in for loop. (gosec)

@ritazh Fix or ignore?

I'm okay ignoring this. I'm unclear why the same version of golangci-lint-action https://github.com/open-policy-agent/gatekeeper/blob/release-3.15/.github/workflows/workflow.yaml#L53 isn't complaining about the same code: https://github.com/open-policy-agent/gatekeeper/blob/release-3.15/pkg/cachemanager/cachemanager_test.go#L255
should I revert my commit?

@maxsmythe
Copy link
Contributor

maxsmythe commented Mar 12, 2024

Revert which commit? I'm okay merging this as-is.

IMO we can call this done unless new commits to main are failing.

Copy link
Member

@ritazh ritazh left a comment

Choose a reason for hiding this comment

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

LGTM

@ritazh
Copy link
Member

ritazh commented Mar 12, 2024

Revert which commit? I'm okay merging this as-is.

IMO we can call this done unless new commits to main are failing.

Taking this as LGTM

I reverted my commit to update the golangci-lint version used in the github action to reduce noise.

@ritazh ritazh merged commit 2f0e94c into open-policy-agent:release-3.14 Mar 12, 2024
28 of 30 checks passed
openshift-merge-bot bot pushed a commit to stolostron/gatekeeper that referenced this pull request Mar 27, 2024
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.

None yet

3 participants