-
-
Notifications
You must be signed in to change notification settings - Fork 357
Support additional x-kubernetes-*
schema extensions
#1750
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
Conversation
Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1750 +/- ##
=======================================
+ Coverage 76.2% 76.2% +0.1%
=======================================
Files 84 84
Lines 7855 7883 +28
=======================================
+ Hits 5980 6003 +23
- Misses 1875 1880 +5
🚀 New features to boost your workflow:
|
- Clippy fixes Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
x-kuberentes
rulesx-kubernetes-*
schema extensions
Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
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.
this is fantastic! thank you so much for doing this.
the rename makes sense to me, and i have a couple of follow-up suggestions on naming, but overall i don't have any problems with how this is done.
Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
@Danil-Grigorev thank you for this change! |
Motivation
Extend the set of supported property modifications with
x-kubernetes
rules related to SSA merge strategy:x-kubernetes-list-type
x-kubernetes-list-map-keys
x-kubernetes-map-type
Solution
The current implementation replaces
CELSchema
withKubeSchema
, renamescel_validate
tox_kube
, and adds a newx_kube(merge_strategy = …)
attribute to specify the merge strategy for the annotated field.Changes:
CELSchema
is replaced withKubeSchema
.cel_validate(rule = …)
attribute is renamed tox_kube(validation = …)
.x_kube(merge_strategy = …)
attribute is added to specify merge strategy.This change should cover #1744