Skip to content

Add DNS attributes to VPC spec #38

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 6 commits into from
Mar 21, 2022

Conversation

RedbackThomson
Copy link
Contributor

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

Description of changes:
Adds two new fields to the VPC spec: EnableDNSSupport and EnableDNSHostnames. Both properties are set using the ModifyVpcAttribute method, but can only be updated one at a time.

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

@ack-bot ack-bot requested review from bwagner5 and vijtrip2 March 14, 2022 21:13
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.

Thanks for this, looks good!

return nil
}

func (rm *resourceManager) createAttributes(

Choose a reason for hiding this comment

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

Currently this method makes two modify calls, can this be optimized to make single AWS API call?

Copy link
Contributor

Choose a reason for hiding this comment

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

Agree with @vijtrip2 here (though I'm confused why Vijay is reviewing code during his PTO...).

Copy link
Contributor

Choose a reason for hiding this comment

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

I share the concern over api calls (now and long-term), but I think if we consolidate the calls the api returns an error:

Both properties are set using the ModifyVpcAttribute method, but can only be updated one at a time.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm so glad you asked!

ModifyVpcAttribute can only modify ONE attribute at a time. DescribeVpcAttribute can only describe ONE attribute at a time. Really great stuff.

@jaypipes jaypipes changed the title Add VPC attributes to spec Add DNS attributes to VPC spec Mar 15, 2022
@@ -48,6 +48,12 @@ spec:
its canonical form; for example, if you specify 100.68.0.18/18,
we modify it to 100.68.0.0/18.
type: string
enableDNSHostnames:
description: The attribute value. The valid values are true or false.
Copy link
Contributor

Choose a reason for hiding this comment

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

LOL. Great description :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Creating an issue for custom documentation rn

Copy link
Contributor

Choose a reason for hiding this comment

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

:) I didn't expect you to do that.

Copy link
Contributor Author

@RedbackThomson RedbackThomson Mar 15, 2022

Choose a reason for hiding this comment

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

It's been really bugging me. Especially that now we are creating resource references, they should have proper documentation - rather than being the GoDoc for the ACKResourceReference type

return nil
}

func (rm *resourceManager) createAttributes(
Copy link
Contributor

Choose a reason for hiding this comment

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

Agree with @vijtrip2 here (though I'm confused why Vijay is reviewing code during his PTO...).

@RedbackThomson
Copy link
Contributor Author

/test ec2-kind-e2e

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

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]

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 aaafa24 into aws-controllers-k8s:main Mar 21, 2022
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.

5 participants