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

fix(cert-manager): avoid index-out-of-bounds error when updating webhook configs #1497

Merged
merged 1 commit into from
May 31, 2023

Conversation

bacherfl
Copy link
Member

This PR fixes a copy paste error that can potentially lead to index out of bounds errors when iterating through the list of matching ValidatingWebhookConfigurations.

…ook configs

Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
@bacherfl bacherfl marked this pull request as ready for review May 31, 2023 11:45
@bacherfl bacherfl requested a review from a team as a code owner May 31, 2023 11:45
@netlify
Copy link

netlify bot commented May 31, 2023

Deploy Preview for keptn-lifecycle-toolkit ready!

Name Link
🔨 Latest commit d93d07c
🔍 Latest deploy log https://app.netlify.com/sites/keptn-lifecycle-toolkit/deploys/6477335bf15d160008a9500c
😎 Deploy Preview https://deploy-preview-1497--keptn-lifecycle-toolkit.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@sonarcloud
Copy link

sonarcloud bot commented May 31, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
2.6% 2.6% Duplication

@codecov
Copy link

codecov bot commented May 31, 2023

Codecov Report

Merging #1497 (d93d07c) into main (9801e5d) will increase coverage by 0.07%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1497      +/-   ##
==========================================
+ Coverage   62.42%   62.49%   +0.07%     
==========================================
  Files         139      139              
  Lines       10658    10658              
==========================================
+ Hits         6653     6661       +8     
+ Misses       3743     3737       -6     
+ Partials      262      260       -2     
Impacted Files Coverage Δ
...okcontroller/keptnwebhookcertificate_controller.go 45.39% <100.00%> (ø)

... and 4 files with indirect coverage changes

Flag Coverage Δ
certificate-operator 68.55% <100.00%> (ø)
component-tests 59.19% <ø> (+1.10%) ⬆️
lifecycle-operator 84.06% <ø> (ø)
metrics-operator 81.66% <ø> (ø)
scheduler 30.45% <ø> (ø)

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

Copy link
Contributor

@RealAnna RealAnna left a comment

Choose a reason for hiding this comment

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

good find!

@bacherfl bacherfl merged commit 0f28b8c into keptn:main May 31, 2023
36 checks passed
@bacherfl bacherfl deleted the fix/cert-manager branch May 31, 2023 12:30
@keptn-bot keptn-bot mentioned this pull request May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants