Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crossplane: fix the controller template for attribute-based APIs #31

Merged
merged 1 commit into from
Jun 2, 2021

Conversation

muvaf
Copy link
Contributor

@muvaf muvaf commented Mar 12, 2021

Description of changes: Fixes the controller template for attribute-based APIs

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@@ -180,22 +180,30 @@ func newExternal(kube client.Client, client svcsdkapi.{{ .SDKAPIInterfaceTypeNam
e := &external{
kube: kube,
client: client,
{{- if or .CRD.Ops.ReadOne .CRD.Ops.GetAttributes .CRD.Ops.ReadMany }}
{{- if or .CRD.Ops.ReadOne }}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this needs to be either this:

{{- if or .CRD.Ops.ReadOne .CRD.Ops.GetAttributes }}

or

{{- if .CRD.Ops.ReadOne }}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, fixed! Thanks!

Signed-off-by: Muvaffak Onus <me@muvaf.com>
Copy link
Collaborator

@jaypipes jaypipes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jaypipes
Copy link
Collaborator

jaypipes commented Jun 2, 2021

/lgtm

@ack-bot ack-bot added the lgtm Indicates that a PR is ready to be merged. label Jun 2, 2021
@ack-bot
Copy link
Collaborator

ack-bot commented Jun 2, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jaypipes, muvaf

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ack-bot ack-bot merged commit 90fbdaa into aws-controllers-k8s:main Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants