-
Notifications
You must be signed in to change notification settings - Fork 126
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): add version conversion rule for KeptnEvaluationProvider #531
feat(operator): add version conversion rule for KeptnEvaluationProvider #531
Conversation
77ae35e
to
e48fbd2
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #531 +/- ##
==========================================
+ Coverage 49.94% 50.06% +0.11%
==========================================
Files 60 63 +3
Lines 5528 5565 +37
==========================================
+ Hits 2761 2786 +25
- Misses 2660 2670 +10
- Partials 107 109 +2
Flags with carried forward coverage won't be shown. Click here to find out more. |
operator/api/v1alpha1/keptnevaluationprovider_conversion_test.go
Outdated
Show resolved
Hide resolved
operator/api/v1alpha1/keptnevaluationprovider_conversion_test.go
Outdated
Show resolved
Hide resolved
operator/api/v1alpha1/keptnevaluationprovider_conversion_test.go
Outdated
Show resolved
Hide resolved
operator/api/v1alpha1/keptnevaluationprovider_conversion_test.go
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To enable the conversion webhooks, you need to enable them in the kubebuilder PROJECT
file and also enable the corresponding kustomizations. You can check the changes I made to those file in my PR
kubebuilder actually does that for you if you use the CLI to create the conversion webhook files :)
Signed-off-by: Giovanni Liva <[email protected]>
Signed-off-by: Giovanni Liva <[email protected]>
Signed-off-by: Giovanni Liva <[email protected]>
af6a4e0
to
46e34be
Compare
operator/apis/lifecycle/v1alpha1/keptnevaluationprovider_conversion.go
Outdated
Show resolved
Hide resolved
operator/apis/lifecycle/v1alpha1/keptnevaluationprovider_conversion.go
Outdated
Show resolved
Hide resolved
Signed-off-by: Giovanni Liva <[email protected]>
Signed-off-by: Giovanni Liva <[email protected]>
Signed-off-by: Giovanni Liva <[email protected]>
Signed-off-by: Giovanni Liva <[email protected]>
Signed-off-by: Giovanni Liva <[email protected]>
I think you also need to enable kustomizations, like here or here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
like @odubajDT said, you still need to enable the webhook in the kustomization.yaml file. please check his comment on how to do it
Signed-off-by: Giovanni Liva <[email protected]>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry to have more comments, but an integration test for the conversion would be great to verify if the thing works correctly
I will take this as follow-up of this PR and introduce multiple tests to also verify all the conversion webhooks we have. For that, I've created #576 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm - I will add an integration test for the evaluationProvider conversions in a follow up PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Signed-off-by: Giovanni Liva [email protected]