-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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: Support a list of values as string in the generators selectors #20972
base: master
Are you sure you want to change the base?
Conversation
🔴 Preview Environment stopped on BunnyshellSee: Environment Details | Pipeline Logs Available commands (reply to this comment):
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #20972 +/- ##
=========================================
Coverage ? 55.19%
=========================================
Files ? 324
Lines ? 55615
Branches ? 0
=========================================
Hits ? 30695
Misses ? 22293
Partials ? 2627 ☔ View full report in Codecov by Sentry. |
Hello @OpenGuidou, do you think that this implementation is okay? |
040acf5
to
8f2fa81
Compare
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.
Can you add new tests to cover the cluster generator and general post selector use cases ?
28dad89
to
30d9409
Compare
Signed-off-by: Damien Dassieu <[email protected]>
I created these 2 functions: argo-cd/applicationset/utils/selector.go Line 112 in 8fe2fda
argo-cd/applicationset/utils/selector.go Line 124 in 8fe2fda
in order to facilitate the conversion between the custom One example of why it was necessary can be found in this function: argo-cd/applicationset/generators/cluster.go Lines 181 to 190 in 8fe2fda
It uses the |
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.
Great work, LGTM !
Checklist:
Description
Closes #20943. Add a new
valuesString
field in theApplicationSet
object. A validation is done using the kubebuilder marker+kubebuilder:validation:XValidation:rule
ensuring that eithervalues
orvaluesString
are specified but not both at the same time. The corresponding test have been added as well.