Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
ca7alindev committed Sep 25, 2024
1 parent 53a609a commit 88aee4d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fn.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"github.com/slack-go/slack"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"

v1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
"github.com/crossplane/function-sdk-go/logging"
fnv1beta1 "github.com/crossplane/function-sdk-go/proto/v1beta1"
"github.com/crossplane/function-sdk-go/request"
Expand Down Expand Up @@ -78,6 +79,8 @@ func (f *Function) RunFunction(_ context.Context, req *fnv1beta1.RunFunctionRequ
slackchannel.SlackOrder(input, api, xr, f.log, resultText)
}
xr.Resource.SetManagedFields(nil)
xr.Resource.SetConditions(v1.ReconcileSuccess())
xr.Resource.SetConditions(v1.Available())
response.SetDesiredCompositeResource(rsp, xr)

} else {
Expand Down

0 comments on commit 88aee4d

Please sign in to comment.