Skip to content

Add ElasticIPAddress CRD #39

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

Merged
merged 7 commits into from
Mar 21, 2022

Conversation

RedbackThomson
Copy link
Contributor

@RedbackThomson RedbackThomson commented Mar 14, 2022

Issue #, if available: aws-controllers-k8s/community#1218

Description of changes:
Creates the ElasticIPAddress custom resource, from AllocateAddress and DeallocateAddress. This API uses either AllocationID or PublicIP as the identifier depending on whether the domain is set to "vpc" (for EC2-VPC) or otherwise (for EC2-Classic), respectively. For the adoption, I have chosen to set AllocationID as the primary key for now, since EC2-VPC is the recommended method for managing resources in EC2.

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

@RedbackThomson
Copy link
Contributor Author

/test ec2-kind-e2e

@RedbackThomson RedbackThomson changed the title Add ElasticIP CRD Add ElasticIPAddress CRD Mar 14, 2022
@vijtrip2
Copy link

/approve

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.

Looks good! Left one comment below

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.

@RedbackThomson I don't actually think we should support PubicIP (EC2-Classic). EC2-Classic is being fully retired on August 15, 2022 which is about the closest AWS will ever get to removing an API :)

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-classic-platform.html

Copy link
Contributor

@brycahta brycahta left a comment

Choose a reason for hiding this comment

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

looks solid to me

Comment on lines +175 to +177
PublicIp:
print:
name: PUBLIC-IP
Copy link
Contributor

Choose a reason for hiding this comment

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

We wanted to remove this, right?

Copy link
Contributor Author

@RedbackThomson RedbackThomson Mar 16, 2022

Choose a reason for hiding this comment

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

Is it not still something that's relevant,even for EC2-VPC? I think being able to see the allocated IP is still relevant. I just don't use it as the identifier anywhere.

Copy link
Contributor

@brycahta brycahta left a comment

Choose a reason for hiding this comment

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

/lgtm

@ack-bot ack-bot added the lgtm Indicates that a PR is ready to be merged. label Mar 21, 2022
@ack-bot
Copy link
Collaborator

ack-bot commented Mar 21, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: brycahta, RedbackThomson, vijtrip2

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 [RedbackThomson,brycahta,vijtrip2]

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 c90d50e into aws-controllers-k8s:main Mar 21, 2022
@RedbackThomson RedbackThomson deleted the elastic-ip branch March 22, 2022 21:56
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.

6 participants