matzew commented on issue #5402: URL: https://github.com/apache/camel-k/issues/5402#issuecomment-2072797028
We have a resolver for addressables: https://github.com/knative/pkg/blob/main/resolver/addressable_resolver.go And the addressable is basically a named type w/ a `apis.URL` (and optional things like certs): https://github.com/knative/pkg/blob/main/apis/duck/v1/addressable_types.go#L40-L45 You can use it like here, where we want the `addressable` / URI from the subscriber reference of the Trigger: ```go addressable, err := r.Resolver.AddressableFromDestinationV1(ctx, trigger.Spec.Subscriber, trigger) ... ``` That way you can resolve the URL. However, I guess you do not directly use our types (e.g. Destination or even KRefs), but we have wrappers for that. see `URIFromObjectReference` in the resolver.go file -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org