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): adopt KeptnApp name from either Keptn or k8s label #2440

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

bacherfl
Copy link
Member

@bacherfl bacherfl commented Nov 7, 2023

When no app name is set explicitly in the labels/annotations of a pod, the mutating webhook was using the name of the workload for the name of the related, autogenerated app. Afterwards it adds the name of the app as an annotation to the pod, however it did that without considering the app.kubernetes.io/name label, but only based on what is in keptn.sh/workload. This prevented pods not using the keptn.sh/workload label from spinning up as the scheduler, which is using these annotations as information for constructing the name of the related workload version, could not find a matching WorkloadVersion.

Copy link

netlify bot commented Nov 7, 2023

Deploy Preview for keptn-lifecycle-toolkit ready!

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

Copy link

sonarqubecloud bot commented Nov 7, 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

codecov bot commented Nov 7, 2023

Codecov Report

Merging #2440 (ac21034) into main (c41f909) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2440   +/-   ##
=======================================
  Coverage   85.78%   85.78%           
=======================================
  Files         161      161           
  Lines       10200    10201    +1     
=======================================
+ Hits         8750     8751    +1     
  Misses       1181     1181           
  Partials      269      269           
Files Coverage Δ
...pod_mutator/handlers/appcreationrequest_handler.go 100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes

Flag Coverage Δ
certificate-operator 67.43% <ø> (ø)
component-tests 57.38% <ø> (-0.84%) ⬇️
lifecycle-operator 86.24% <100.00%> (+<0.01%) ⬆️
metrics-operator 87.58% <ø> (ø)
scheduler 32.12% <ø> (ø)

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

@bacherfl bacherfl marked this pull request as ready for review November 7, 2023 12:55
@bacherfl bacherfl requested a review from a team as a code owner November 7, 2023 12:55
@bacherfl bacherfl merged commit 3185943 into keptn:main Nov 7, 2023
42 checks passed
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