Skip to content

Commit 4c9aa10

Browse files
authored
Merge pull request #25 from muvaf/fix-cp-gen-bug
crossplane: fix controller template for resources that might have both ReadOne and ReadMany
2 parents cf822e5 + b03b197 commit 4c9aa10

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)