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

chore: use cert-manager library in lifecycle-operator and metrics-operator to reduce code duplication #1379

Merged
merged 12 commits into from
May 15, 2023

Conversation

bacherfl
Copy link
Member

@bacherfl bacherfl commented May 5, 2023

This PR reduces the code duplication of this repo by removing the logic to wait for the webhook certificates to be available from the lifecycle-operator and the metrics-operator and instead using the cert-manager's library for that

…ovided by klt-cert-manager instead

Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
@netlify
Copy link

netlify bot commented May 5, 2023

Deploy Preview for keptn-lifecycle-toolkit ready!

Name Link
🔨 Latest commit e6cc522
🔍 Latest deploy log https://app.netlify.com/sites/keptn-lifecycle-toolkit/deploys/645c9228956edd00080d0157
😎 Deploy Preview https://deploy-preview-1379--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.

@codecov
Copy link

codecov bot commented May 5, 2023

Codecov Report

Merging #1379 (e6cc522) into main (0a6b7e7) will increase coverage by 0.06%.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1379      +/-   ##
==========================================
+ Coverage   61.59%   61.66%   +0.06%     
==========================================
  Files         143      137       -6     
  Lines       10698    10480     -218     
==========================================
- Hits         6589     6462     -127     
+ Misses       3848     3766      -82     
+ Partials      261      252       -9     

see 1 file with indirect coverage changes

Flag Coverage Δ
certificate-operator 68.55% <ø> (ø)
component-tests 59.31% <ø> (+0.21%) ⬆️
lifecycle-operator 83.18% <ø> (+0.67%) ⬆️
metrics-operator 80.47% <ø> (+2.57%) ⬆️
scheduler 21.75% <ø> (ø)

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

Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
@bacherfl bacherfl marked this pull request as ready for review May 10, 2023 08:21
@bacherfl bacherfl requested a review from a team as a code owner May 10, 2023 08:21
metrics-operator/main.go Outdated Show resolved Hide resolved
operator/main.go Outdated Show resolved Hide resolved
Co-authored-by: odubajDT <93584209+odubajDT@users.noreply.github.com>
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
odubajDT
odubajDT previously approved these changes May 10, 2023
@sonarcloud
Copy link

sonarcloud bot commented May 11, 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
1.1% 1.1% Duplication

Copy link
Member

@thisthat thisthat left a comment

Choose a reason for hiding this comment

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

+54 −1,631 😎

@bacherfl bacherfl merged commit 831fc46 into keptn:main May 15, 2023
@bacherfl bacherfl deleted the chore/remove-duplicated-cert-logic-2 branch May 15, 2023 06:40
@keptn-bot keptn-bot mentioned this pull request May 15, 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.

3 participants