Skip to content

Commit c6e8ce2

Browse files
authored
import ACK runtime pkg/condition in sdk.go (#193)
Adds the `pkg/condition` package from ACK runtime into `pkg/resource/{RESOURCE}/sdk.go` file. This makes the various common ACK runtime condition functions like `SetSynced` available to hook code that may be injected into sdk.go code paths. Signed-off-by: Jay Pipes <[email protected]> By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 427af3a commit c6e8ce2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/pkg/resource/sdk.go.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"strings"
88

99
ackv1alpha1 "github.com/aws-controllers-k8s/runtime/apis/core/v1alpha1"
10+
ackcondition "github.com/aws-controllers-k8s/runtime/pkg/condition"
1011
ackcompare "github.com/aws-controllers-k8s/runtime/pkg/compare"
1112
ackerr "github.com/aws-controllers-k8s/runtime/pkg/errors"
1213
ackrtlog "github.com/aws-controllers-k8s/runtime/pkg/runtime/log"
@@ -27,6 +28,7 @@ var (
2728
_ = &svcapitypes.{{ .CRD.Names.Camel }}{}
2829
_ = ackv1alpha1.AWSAccountID("")
2930
_ = &ackerr.NotFound
31+
_ = &ackcondition.NotManagedMessage
3032
)
3133

3234
// sdkFind returns SDK-specific information about a supplied resource

0 commit comments

Comments
 (0)