Skip to content

Commit 1eb464c

Browse files
committed
Return a terminal error when sdkUpdate is not implemented
Currently the generated sdk code throws a simple error when `sdkUpdate` is not implemented. This is only observable in the controller logs and users are not able to read this information from their resource's status/conditions. This patch forces `sdkUpdate` to return a terminal error instead of a normal error. Fixes aws-controllers-k8s/community#1521
1 parent 860408d commit 1eb464c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/pkg/resource/sdk_update_not_implemented.go.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ func (rm *resourceManager) sdkUpdate(
66
delta *ackcompare.Delta,
77
) (*resource, error) {
88
// TODO(jaypipes): Figure this out...
9-
return nil, ackerr.NotImplemented
9+
return nil, ackerr.NewTerminal(ackerr.NotImplemented)
1010
}
1111
{{- end -}}

0 commit comments

Comments
 (0)