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

Generate Vpc Endpoint using ACK runtime v0.15.1 #15

Merged
merged 5 commits into from
Oct 12, 2021
Merged

Generate Vpc Endpoint using ACK runtime v0.15.1 #15

merged 5 commits into from
Oct 12, 2021

Conversation

brycahta
Copy link
Contributor

@brycahta brycahta commented Oct 8, 2021

Issue #, if available: #489

Description of changes:

  • changes to support create/delete for vpc endpoint resource

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

@brycahta brycahta requested review from jaypipes, bwagner5 and RedbackThomson and removed request for a-hilaly and vijtrip2 October 8, 2021 21:01
VpcEndpoint:
exceptions:
terminal_codes:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, you are reading that correctly. EC2 api returns both InvalidVpcID.Malformed and InvalidVpcId.Malformed

Copy link
Contributor

@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.

one teeny suggestion inline but not enough to not approve. great work on this @brycahta :)

func addIDToDeleteRequest(r *resource,
input *svcsdk.DeleteVpcEndpointsInput) error {
if r.ko.Status.VPCEndpointID == nil {
return errors.New("unable to extract VPCEndpointID from resource")
Copy link
Contributor

Choose a reason for hiding this comment

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

might want to make this a package-level var.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hmm I'm not seeing why, could you help me understand?

Either way-- I'm hoping this code will be short-lived following some updates to code-generator.

@brycahta
Copy link
Contributor Author

brycahta commented Oct 11, 2021

Release test is failing because after removing aws_account_id, test-helm.sh doesn't have a way of getting or setting the credentials.

Fix to this script is incoming

Fix: aws-controllers-k8s/test-infra#139

@brycahta
Copy link
Contributor Author

/test ec2-release-test

Copy link
Contributor

@RedbackThomson RedbackThomson left a comment

Choose a reason for hiding this comment

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

I'm happy with this :) Thanks @brycahta

Comment on lines +34 to +36
@pytest.fixture(scope="module")
def ec2_client():
return boto3.client("ec2")
Copy link
Contributor

Choose a reason for hiding this comment

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

Btw you can add this fixture to your conftest.py and it can be accessed by every test, by default. See https://github.com/aws-controllers-k8s/s3-controller/blob/main/test/e2e/conftest.py#L46-L52

Copy link
Member

@a-hilaly a-hilaly left a comment

Choose a reason for hiding this comment

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

👍

@ack-bot
Copy link
Collaborator

ack-bot commented Oct 12, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: A-Hilaly, brycahta, jaypipes, RedbackThomson

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:
  • OWNERS [A-Hilaly,RedbackThomson,brycahta,jaypipes]

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

@brycahta brycahta merged commit f7055d8 into aws-controllers-k8s:main Oct 12, 2021
@brycahta brycahta deleted the vpc-endpoint branch October 12, 2021 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
5 participants