Skip to content

feat(operator): adapt TaskDefinition validation webhook to consider python and deno runtime#1534

Merged
odubajDT merged 8 commits intokeptn:mainfrom
geoffrey1330:feat/1527/validating_webhook_python-runtime_functionality
Jun 12, 2023
Merged

feat(operator): adapt TaskDefinition validation webhook to consider python and deno runtime#1534
odubajDT merged 8 commits intokeptn:mainfrom
geoffrey1330:feat/1527/validating_webhook_python-runtime_functionality

Conversation

@geoffrey1330
Copy link
Copy Markdown
Member

@geoffrey1330 geoffrey1330 commented Jun 7, 2023

Fixes #1527 Added logic to the validation webhook to accommodate the new fields for python-runtime and deno functionality.

Signed-off-by: geoffrey1330 israelgeoffrey13@gmail.com

…ime and deno functionality

Signed-off-by: geoffrey1330 <israelgeoffrey13@gmail.com>
@geoffrey1330 geoffrey1330 requested a review from a team as a code owner June 7, 2023 11:18
@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 7, 2023

Deploy Preview for keptn-lifecycle-toolkit ready!

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

@bacherfl bacherfl changed the title Added logic to validation webhook consider new fields for python-runt… feat(operator): adapt TaskDefinition validation webhook to consider python and deno runtime Jun 7, 2023
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 7, 2023

Codecov Report

Merging #1534 (37c155e) into main (0cb7f14) will increase coverage by 0.18%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1534      +/-   ##
==========================================
+ Coverage   63.04%   63.22%   +0.18%     
==========================================
  Files         142      142              
  Lines       10779    10794      +15     
==========================================
+ Hits         6796     6825      +29     
+ Misses       3724     3714      -10     
+ Partials      259      255       -4     
Impacted Files Coverage Δ
.../lifecycle/v1alpha3/keptntaskdefinition_webhook.go 93.44% <100.00%> (+2.13%) ⬆️

... and 4 files with indirect coverage changes

Flag Coverage Δ
certificate-operator 68.55% <ø> (ø)
component-tests 59.42% <ø> (+1.47%) ⬆️
lifecycle-operator 84.39% <100.00%> (+0.03%) ⬆️
metrics-operator 81.66% <ø> (ø)
scheduler 30.45% <ø> (ø)

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

Comment thread operator/apis/lifecycle/v1alpha3/keptntaskdefinition_webhook.go
Comment thread operator/apis/lifecycle/v1alpha3/keptntaskdefinition_webhook.go
Signed-off-by: geoffrey1330 <israelgeoffrey13@gmail.com>
Signed-off-by: geoffrey1330 <israelgeoffrey13@gmail.com>
@odubajDT
Copy link
Copy Markdown
Contributor

odubajDT commented Jun 7, 2023

Nice work! Can you please add some integration tests and also adapt the failing unit tests ? Thank you!

@geoffrey1330
Copy link
Copy Markdown
Member Author

Nice work! Can you please add some integration tests and also adapt the failing unit tests ? Thank you!

Alright I will do that

Comment thread operator/apis/lifecycle/v1alpha3/keptntaskdefinition_webhook_test.go Outdated
Comment thread operator/apis/lifecycle/v1alpha3/keptntaskdefinition_webhook_test.go Outdated
Copy link
Copy Markdown
Member

@rakshitgondwal rakshitgondwal left a comment

Choose a reason for hiding this comment

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

The error with unit tests should be resolved after fixing these @geoffrey1330

Signed-off-by: geoffrey1330 <israelgeoffrey13@gmail.com>
Signed-off-by: geoffrey1330 <israelgeoffrey13@gmail.com>
@odubajDT
Copy link
Copy Markdown
Contributor

Hello @geoffrey1330 nice work! The PR looks good, can you just please check why the integration tests are failing? Thank you

Comment thread test/integration/validate-taskdefinition/00-teststep-install.yaml Outdated
Comment thread test/integration/validate-taskdefinition/00-teststep-install.yaml
RealAnna and others added 3 commits June 12, 2023 08:41
Signed-off-by: RealAnna <89971034+RealAnna@users.noreply.github.com>
Signed-off-by: geoffrey1330 <israelgeoffrey13@gmail.com>
@sonarqubecloud
Copy link
Copy Markdown

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

@odubajDT odubajDT merged commit 59cdfc8 into keptn:main Jun 12, 2023
@odubajDT
Copy link
Copy Markdown
Contributor

Thank you for your contribution @geoffrey1330 :)

@keptn-bot keptn-bot mentioned this pull request Jun 12, 2023
StackScribe pushed a commit to StackScribe/lifecycle-toolkit that referenced this pull request Jun 19, 2023
…ython and deno runtime (keptn#1534)

Signed-off-by: RealAnna <89971034+RealAnna@users.noreply.github.com>
Co-authored-by: RealAnna <89971034+RealAnna@users.noreply.github.com>
StackScribe pushed a commit to StackScribe/lifecycle-toolkit that referenced this pull request Jun 22, 2023
…ython and deno runtime (keptn#1534)

Signed-off-by: RealAnna <89971034+RealAnna@users.noreply.github.com>
Co-authored-by: RealAnna <89971034+RealAnna@users.noreply.github.com>
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.

chore: adapt validation webhook to consider new fields for python-runtime functionality

5 participants