Skip to content

add support for filters on sg and subnet - #35

Merged
openshift-merge-robot merged 1 commit into
masterfrom
filters
Aug 30, 2018
Merged

openshift-merge-robot merged 1 commit into
masterfrom
filters

Conversation

@enxebre

@enxebre enxebre commented Aug 30, 2018 •

Copy link
Copy Markdown
Member

@openshift-ci-robot openshift-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Aug 30, 2018
@enxebre

enxebre commented Aug 30, 2018

Copy link
Copy Markdown
Member Author

cc @ingvagabund @dgoodwin @csrwng

@enxebre

enxebre commented Aug 30, 2018

Copy link
Copy Markdown
Member Author

Follow up:

Comment thread examples/machine-with-filters.yaml Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Are filters fixed to tags or can you use non-tag names to specify filters?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

you can specify aws attributes, not necessarily tags, hence we don't wanna harcode it in code

Comment thread cloud/aws/actuators/machine/actuator.go Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ec2Filters is not used anywhere else so it's fine to Filters: buildEc2Filters(g.Filters)

Comment thread cloud/aws/actuators/machine/actuator.go Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ec2Filters is not used anywhere else so it's fine to Filters: buildEc2Filters(subnet.Filters)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

buildEc2Filters looks good, can you use it in the AMI selection part as well? Lines 143-157.

Comment thread cloud/aws/actuators/machine/actuator.go Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why owned?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

this matches current installer behaviour

Comment thread cloud/aws/actuators/machine/actuator.go Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Looks like you could just return here on the first one and stop iterating the loop if we're just looking to return the first.

Should we warn if multiple results were returned?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

thanks! made the function able to return multiple ids, then upper level function decideds what to do and warns

@ingvagabund

Copy link
Copy Markdown
Member

/test e2e

@ingvagabund

Copy link
Copy Markdown
Member

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 30, 2018
@openshift-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: enxebre, ingvagabund

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

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [enxebre,ingvagabund]

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

@openshift-merge-robot
openshift-merge-robot merged commit 06c0d2c into master Aug 30, 2018
openshift-cherrypick-robot pushed a commit to openshift-cherrypick-robot/cluster-api-provider-aws that referenced this pull request Oct 22, 2025
🐛 Fix renovate and update konflux ref
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants