Skip to content

Commit b03b197

Browse files
committed
crossplane: fix controller template for resources that might have both ReadMany and ReadOne ops
Signed-off-by: Muvaffak Onus <[email protected]>
1 parent cf822e5 commit b03b197

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/crossplane/pkg/controller.go.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ func newExternal(kube client.Client, client svcsdkapi.{{ .SDKAPIInterfaceTypeNam
188188
{{- else }}
189189
observe: nopObserve,
190190
{{- end }}
191-
{{- if .CRD.Ops.ReadMany }}
191+
{{- if and .CRD.Ops.ReadMany (not .CRD.Ops.ReadOne) }}
192192
filterList: nopFilterList,
193193
{{- end}}
194194
preCreate: nopPreCreate,

0 commit comments

Comments
 (0)