-
Notifications
You must be signed in to change notification settings - Fork 235
WIP: Add iterators to resourceGraphDefinition to allow dynamic creation of multiple similar resources #580
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
Feature wise looks interesting (haven't checked the code), but it is missing an important piece: what if I want to request e.g. several instances of Postgres, where each of them is created by instantiating a custom resource? (like in zalando operator) As a note, I am not checking the code here, because I am both not a part of kro community and I am not a Go developer. |
@handicraftsman I'm sorry but I didn't fully understand your point. Could you please provide an example of the result wanted ? |
… specified. Add examples and more commentary
e14b798
to
3c8372b
Compare
Basically, I would love to have an For example, one Since I mentioned management purposes, here's an example: in Java there's JMX, which allows connecting to a Java app remotely, and issuing one or more commands there. I know there are better ways to do so, but this is just a theoretical example. Or, for example, we are working with a similar case in production, but instead of exposing JMX API, our services expose a separate API for managing the system through an internal console. This also allows resolving support cases for us, allowing for manual administrative actions that are only available under VPN. |
Sorry for the late answer. Ok I may have understand your requirement @handicraftsman and I also have this needs. I'll try to implement the feature but I can't promise anything |
There are multiple efforts in flight on this topic, and I think the consensus is that we should have a design first before we land on an implementation. @a-hilaly is leading that effort - can you engage with him and work together? Marking this donotmerge in the meantime. |
Unknown CLA label state. Rechecking for CLA labels. Send feedback to sig-contributor-experience at kubernetes/community. /check-cla |
|
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Hey @VladRico ! Thank you so much for taking a stab on this, i'm currently in the process of writing a design doc on collections (or iterators as you're calling it :) ) - and would love to get your feedback/comments on it. Happy to collaborate with you to get this one out! /close |
@a-hilaly: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Hey @a-hilaly ! |
Hi there !
Here's a "for loop" implementation related to #17
tested on kubernetes
v1.31.2
Overview
it adds a
iterators
to the schema:Used with an instance like:
It produces this result:
You can find in
examples/iterators/*
the 3 files used above.As it is just an implementation idea, I haven't checked whether this opens any security flaws. I'm thinking about various injection from the instance, something like that for example, even if it's not really the same thing.
Notes
As this is a fairly complex feature, because it can be implemented in so many different ways, I'm not really sure that it matches what maintainers have in mind.
I have a real need for this kind of feature, that's why I tried to meet requirements based on what peoples said in #17
Feel free to suggest changes if you like the implementation, or close it if it's too far away from what you have in mind
Thanks for you time working on this project !