Skip to content

Commit

Permalink
fix: set true always (#4)
Browse files Browse the repository at this point in the history
* fix: set true always

Signed-off-by: Niklas Treml <[email protected]>

* fix tests

Signed-off-by: Niklas Treml <[email protected]>

---------

Signed-off-by: Niklas Treml <[email protected]>
  • Loading branch information
niklastreml authored Oct 15, 2024
1 parent df57463 commit 050efc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion fn.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (f *Function) RunFunction(ctx context.Context, req *fnv1beta1.RunFunctionRe
return rsp, nil
}

desired["logging"] = &resource.DesiredComposed{Resource: cd}
desired["logging"] = &resource.DesiredComposed{Resource: cd, Ready: resource.ReadyTrue}

f.log.Info("Desired composed resources", "desired", desired)

Expand Down
1 change: 1 addition & 0 deletions fn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ func TestRunFunction(t *testing.T) {
Desired: &fnv1beta1.State{
Resources: map[string]*fnv1beta1.Resource{
"logging": {
Ready: fnv1beta1.Ready_READY_TRUE,
Resource: resource.MustStructJSON(`{
"apiVersion": "logging.banzaicloud.io/v1beta1",
"kind": "Logging",
Expand Down

0 comments on commit 050efc7

Please sign in to comment.