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): trim KeptnAppVersion name that exceed max limit #1296

Merged
merged 10 commits into from
May 5, 2023

Conversation

rakshitgondwal
Copy link
Member

Fixes #1245

Changes made-

  • Added a trim feature to truncate the length of KeptnAppVersion.ObjectMeta.Name if it exceeds the maximum length.

Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
@rakshitgondwal rakshitgondwal requested a review from a team as a code owner April 27, 2023 13:50
@netlify
Copy link

netlify bot commented Apr 27, 2023

Deploy Preview for keptn-lifecycle-toolkit ready!

Name Link
🔨 Latest commit c5463a9
🔍 Latest deploy log https://app.netlify.com/sites/keptn-lifecycle-toolkit/deploys/6453b366b327840008c64d34
😎 Deploy Preview https://deploy-preview-1296--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 27, 2023

Codecov Report

Merging #1296 (c5463a9) into main (dadd70b) will increase coverage by 0.04%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1296      +/-   ##
==========================================
+ Coverage   61.57%   61.62%   +0.04%     
==========================================
  Files         143      143              
  Lines       10697    10700       +3     
==========================================
+ Hits         6587     6594       +7     
+ Misses       3849     3846       -3     
+ Partials      261      260       -1     
Impacted Files Coverage Δ
operator/apis/lifecycle/v1alpha3/common/common.go 100.00% <ø> (ø)
...lers/lifecycle/keptnworkloadinstance/controller.go 82.62% <ø> (+1.87%) ⬆️
...rator/controllers/lifecycle/keptnapp/controller.go 64.70% <100.00%> (+0.91%) ⬆️
Flag Coverage Δ
certificate-operator 68.55% <ø> (ø)
component-tests 59.95% <0.00%> (+0.73%) ⬆️
lifecycle-operator 82.49% <100.00%> (+<0.01%) ⬆️
metrics-operator 77.90% <ø> (ø)
scheduler 21.75% <ø> (ø)

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

Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
rakshitgondwal and others added 3 commits April 28, 2023 16:34
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
@bacherfl bacherfl changed the title feat: trim KeptnAppVersion name that exceed max limit feat(operator): trim KeptnAppVersion name that exceed max limit May 2, 2023
rakshitgondwal and others added 2 commits May 2, 2023 20:56
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
@bacherfl
Copy link
Member

bacherfl commented May 3, 2023

thanks for making the adaptations @rakshitgondwal! the only thing left is to fix the linting issues, then we're ready to get this merged :)

rakshitgondwal and others added 2 commits May 4, 2023 18:59
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
@sonarcloud
Copy link

sonarcloud bot commented May 4, 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.7% 1.7% Duplication

@bacherfl bacherfl merged commit 0bf2f9e into keptn:main May 5, 2023
@keptn-bot keptn-bot mentioned this pull request May 5, 2023
@rakshitgondwal
Copy link
Member Author

Thank you for the merge!

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.

Add Validating Webhook for maximum length of KeptnApp
3 participants