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): implement KeptnAppCreationRequest controller #1191

Merged
merged 17 commits into from
Apr 24, 2023

Conversation

bacherfl
Copy link
Member

@bacherfl bacherfl commented Apr 6, 2023

Closes #613

For determining wether a KeptnApp has been automatically created previously, I had to deviate from the proposed solution of using the OwnerReferences, due to the following reason:

OwnerReferences cannot be used in that case because in the ticket we also agreed to delete the KeptnAppCreationRequest once the KeptnApp has been deleted - this then also leads to the deletion of the KeptnApp

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 changed the title feat(operator): implement KepnAppCreationRequest controller feat(operator): implement KeptnAppCreationRequest controller Apr 6, 2023
@netlify
Copy link

netlify bot commented Apr 6, 2023

Deploy Preview for keptn-lifecycle-toolkit ready!

Name Link
🔨 Latest commit 802425d
🔍 Latest deploy log https://app.netlify.com/sites/keptn-lifecycle-toolkit/deploys/643e3c7087a2d600083d745e
😎 Deploy Preview https://deploy-preview-1191--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 6, 2023

Codecov Report

Merging #1191 (802425d) into main (80d0045) will increase coverage by 0.19%.
The diff coverage is 73.71%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1191      +/-   ##
==========================================
+ Coverage   58.94%   59.13%   +0.19%     
==========================================
  Files         128      129       +1     
  Lines       10040    10195     +155     
==========================================
+ Hits         5918     6029     +111     
- Misses       3902     3937      +35     
- Partials      220      229       +9     
Impacted Files Coverage Δ
operator/apis/lifecycle/v1alpha1/common/common.go 100.00% <ø> (ø)
operator/apis/lifecycle/v1alpha3/common/common.go 100.00% <ø> (ø)
.../controllers/lifecycle/keptnworkload/controller.go 65.88% <50.00%> (-1.21%) ⬇️
...rs/lifecycle/keptnappcreationrequest/controller.go 71.52% <72.66%> (+38.19%) ⬆️
...ifecycle/v1alpha3/keptnappcreationrequest_types.go 100.00% <100.00%> (ø)
operator/controllers/common/config/config.go 100.00% <100.00%> (ø)

... and 3 files with indirect coverage changes

Flag Coverage Δ
certificate-operator 64.15% <ø> (ø)
component-tests 59.02% <50.00%> (-0.91%) ⬇️
lifecycle-operator 78.16% <74.66%> (-0.09%) ⬇️
metrics-operator 77.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>
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
@bacherfl bacherfl marked this pull request as ready for review April 12, 2023 10:19
odubajDT
odubajDT previously approved these changes Apr 13, 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>
@sonarcloud
Copy link

sonarcloud bot commented Apr 18, 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 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@bacherfl bacherfl merged commit 79afd83 into keptn:main Apr 24, 2023
@bacherfl bacherfl deleted the feat/613/kacr-controller branch April 24, 2023 06:32
@keptn-bot keptn-bot mentioned this pull request Apr 24, 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.

Implement logic for KeptnAppCreationRequest controller
3 participants