-
Notifications
You must be signed in to change notification settings - Fork 907
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
Proposal: Adding fromCompositeFieldPath
to connectionDetails
#2560
Comments
relates to #2551 |
@mcbenjemaa Thanks for the proposal! We already have a (poorly documented) |
fromCompositeFieldPath
to connectionDetails
fromCompositeFieldPath
to connectionDetails
@negz I have a Helm release and I'm trying to construct a hostname from the status of my composite resource. Although, there's a workaround to get this field from PS: I have submitted a PR, don't hesitate to have a look. |
Can you explain why this is easier, please? I presume your status field is derived from a composed resource field, right? Could you just use that composed resource field? |
No, I can't use the composed resource field because I need to combine it and transform it. this is a simple example: # patch status host
- type: CombineToComposite
combine:
variables:
- fromFieldPath: "metadata.name"
- fromFieldPath: "spec.forProvider.namespace"
strategy: string
string:
fmt: "%s-client-service.%s"
toFieldPath: status.host
then, I have the I have also some other uses cases Where I would set a DNS name in the composite spec, and I want to supply it to the secret as |
Thanks for the context @mcbenjemaa. That makes sense. Given that currently (iirc) a composite resource field can only be derived from a single composite resource, would you still need this functionality if we instead implemented the suggestions in #2551? That is, if you could use something like My thinking is that if we proceed with this we'll want to add something like |
I agree, While I don't know to much about the design here, |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
What problem are you facing?
Difficulties to span
connectionDetails
How could Crossplane help solve your problem?
[Proposal]
Sometimes you gotta fetch
connectionDetails
from composite resource fields.Hence, It'd be better to add this functionality.
For instance, a
fromCompositeFieldPath
should be added to theconnectionDetails
in the Composition.However, The combination and transformation of fields also could be helpful in this case.
The text was updated successfully, but these errors were encountered: