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(operator): create KeptnAppCreationRequest in pod webhook #1277

Merged
merged 24 commits into from
May 2, 2023

Conversation

bacherfl
Copy link
Member

@bacherfl bacherfl commented Apr 25, 2023

Closes #623

I also included a fix for the KeptnAppCreationRequestController to ensure that the same version is calculated based on the Workloads that refer to the created app - previously the version changed when the Workloads were retrieved in a different order

@netlify
Copy link

netlify bot commented Apr 25, 2023

Deploy Preview for keptn-lifecycle-toolkit ready!

Name Link
🔨 Latest commit 6bbfa1e
🔍 Latest deploy log https://app.netlify.com/sites/keptn-lifecycle-toolkit/deploys/644b91fb61aa0e0008156510
😎 Deploy Preview https://deploy-preview-1277--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 Apr 25, 2023

Codecov Report

Merging #1277 (6bbfa1e) into main (bd8de3b) will increase coverage by 1.36%.
The diff coverage is 77.19%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1277      +/-   ##
==========================================
+ Coverage   59.84%   61.20%   +1.36%     
==========================================
  Files         138      138              
  Lines       10461    10454       -7     
==========================================
+ Hits         6260     6398     +138     
+ Misses       3966     3804     -162     
- Partials      235      252      +17     
Impacted Files Coverage Δ
...ifecycle/v1alpha3/keptnappcreationrequest_types.go 80.00% <71.42%> (-20.00%) ⬇️
...rator/webhooks/pod_mutator/pod_mutating_webhook.go 72.10% <73.07%> (+36.62%) ⬆️
...rs/lifecycle/keptnappcreationrequest/controller.go 77.32% <83.33%> (-0.46%) ⬇️

... and 1 file with indirect coverage changes

Flag Coverage Δ
certificate-operator 64.28% <ø> (ø)
component-tests 61.02% <ø> (+0.57%) ⬆️
lifecycle-operator 80.88% <77.19%> (+2.53%) ⬆️
metrics-operator 77.80% <ø> (ø)
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>
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 April 27, 2023 05:48
@bacherfl bacherfl requested a review from a team as a code owner April 27, 2023 05:48
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
odubajDT
odubajDT previously approved these changes Apr 27, 2023
Copy link
Contributor

@odubajDT odubajDT left a comment

Choose a reason for hiding this comment

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

awesome job! :)

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>
@sonarcloud
Copy link

sonarcloud bot commented Apr 28, 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
0.0% 0.0% Duplication

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.

LGTM

@bacherfl bacherfl merged commit da942c2 into keptn:main May 2, 2023
35 checks passed
@bacherfl bacherfl deleted the feat/webhook-create-kacr branch May 2, 2023 07:36
@keptn-bot keptn-bot mentioned this pull request May 2, 2023
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.

Adapt mutating webhook to create KeptnAppCreationRequest resources
3 participants