-
Notifications
You must be signed in to change notification settings - Fork 53
Expose composite ready state in function response #446
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Alexei Tenitski <[email protected]>
Signed-off-by: Alexei Tenitski <[email protected]>
77c2b5c
to
78e4d29
Compare
Signed-off-by: Alexei Tenitski <[email protected]>
Signed-off-by: Alexei Tenitski <[email protected]>
Signed-off-by: Alexei Tenitski <[email protected]>
@@ -145,38 +145,74 @@ func (f *Function) RunFunction(_ context.Context, req *fnv1.RunFunctionRequest) | |||
} | |||
|
|||
// Initialize the requirements. | |||
requirements := &fnv1.Requirements{ExtraResources: make(map[string]*fnv1.ResourceSelector)} | |||
requirements := &fnv1.Requirements{Resources: make(map[string]*fnv1.ResourceSelector)} |
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.
Changed in latest function-sdk-go
that this PR depend on
@@ -83,3 +85,5 @@ require ( | |||
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect | |||
sigs.k8s.io/yaml v1.4.0 // indirect | |||
) | |||
|
|||
replace github.com/crossplane/function-sdk-go => github.com/tenitski/function-sdk-go v0.0.0-20250723012926-634ed8aecb6f |
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.
Temporary depending on crossplane/function-sdk-go#218 while that PR is not merged and a new version is not released. Blocks merging of this PR, to be cleaned up and a proper version used instead.
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.
Discovered that bumping function-sdk-go
to main
version breaks function-go-templating
:
crossplane/function-sdk-go#219
I believe the issue is on SDK side however it is possible that I did something wrong when fixing breaking changes.
Description of your changes
Allows to set composite resource Ready state via annotation
gotemplating.fn.crossplane.io/ready
, similarly how this is done for composed resources.Depends on the following pull request crossplane/function-sdk-go#218 which is temporary used as a dependency, to be fixed.
Fixes #153
I have: