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(lifecycle-operator): remove hardcoded keptn namespace #2141

Merged
merged 9 commits into from
Sep 21, 2023

Conversation

RealAnna
Copy link
Contributor

Closes #2139 removing hardcoded references to namespace

@netlify
Copy link

netlify bot commented Sep 20, 2023

Deploy Preview for keptn-lifecycle-toolkit ready!

Name Link
🔨 Latest commit 7618453
🔍 Latest deploy log https://app.netlify.com/sites/keptn-lifecycle-toolkit/deploys/650b023feac1f000080addef
😎 Deploy Preview https://deploy-preview-2141--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 configuration.

Signed-off-by: realanna <anna.reale@dynatrace.com>
@codecov
Copy link

codecov bot commented Sep 20, 2023

Codecov Report

Merging #2141 (147526d) into main (f9fc7c4) will increase coverage by 0.03%.
Report is 4 commits behind head on main.
The diff coverage is 80.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2141      +/-   ##
==========================================
+ Coverage   84.44%   84.47%   +0.03%     
==========================================
  Files         150      151       +1     
  Lines        9634     9728      +94     
==========================================
+ Hits         8135     8218      +83     
- Misses       1217     1223       +6     
- Partials      282      287       +5     
Files Changed Coverage Δ
...ontrollers/lifecycle/keptnevaluation/controller.go 76.12% <ø> (ø)
...ollers/common/providers/keptnmetric/keptnmetric.go 90.00% <33.33%> (+0.25%) ⬆️
...cycle-operator/controllers/common/config/config.go 100.00% <100.00%> (+30.76%) ⬆️
...cle-operator/controllers/common/helperfunctions.go 98.52% <100.00%> (ø)
...-operator/cmd/metrics/adapter/provider/provider.go 82.45% <100.00%> (ø)

... and 6 files with indirect coverage changes

Flag Coverage Δ
certificate-operator 65.91% <ø> (ø)
component-tests 57.86% <ø> (-0.21%) ⬇️
lifecycle-operator 85.02% <75.00%> (+0.07%) ⬆️
metrics-operator 87.40% <100.00%> (-0.15%) ⬇️
scheduler 32.12% <ø> (ø)

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

Signed-off-by: realanna <anna.reale@dynatrace.com>
Signed-off-by: realanna <anna.reale@dynatrace.com>
@RealAnna RealAnna changed the title fix(lifecycle-operator): remove hardcoded klt namespace fix(lifecycle-operator): remove hardcoded keptn namespace Sep 20, 2023
@RealAnna RealAnna marked this pull request as ready for review September 20, 2023 14:59
@RealAnna RealAnna requested a review from a team as a code owner September 20, 2023 14:59
@RealAnna RealAnna added this to the 0.9 milestone Sep 20, 2023
@bacherfl
Copy link
Member

as a follow up we could consider making the default namespace accessible via this config component: https://github.com/keptn/lifecycle-toolkit/blob/main/lifecycle-operator/controllers/common/config/config.go

@RealAnna
Copy link
Contributor Author

as a follow up we could consider making the default namespace accessible via this config component: https://github.com/keptn/lifecycle-toolkit/blob/main/lifecycle-operator/controllers/common/config/config.go

Did not even know we had that 😻 I think I will adapt it now

Signed-off-by: realanna <anna.reale@dynatrace.com>
bacherfl
bacherfl previously approved these changes Sep 21, 2023
odubajDT
odubajDT previously approved these changes Sep 21, 2023
Signed-off-by: realanna <anna.reale@dynatrace.com>
@RealAnna RealAnna dismissed stale reviews from odubajDT and bacherfl via 29f643c September 21, 2023 08:31
Signed-off-by: realanna <anna.reale@dynatrace.com>
Signed-off-by: realanna <anna.reale@dynatrace.com>
Signed-off-by: realanna <anna.reale@dynatrace.com>
Signed-off-by: realanna <anna.reale@dynatrace.com>
@sonarcloud
Copy link

sonarcloud bot commented Sep 21, 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

@RealAnna RealAnna merged commit f10b447 into main Sep 21, 2023
35 of 36 checks passed
@RealAnna RealAnna deleted the fix/hardcoded_namespace branch September 21, 2023 11:33
RealAnna added a commit that referenced this pull request Sep 27, 2023
Signed-off-by: realanna <anna.reale@dynatrace.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Bug: default namespace is hardcoded in the operator
3 participants