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

feat: Allow users to specify multiple Route53 zones as well as cross account zones with external-dns #838

Merged
merged 1 commit into from Aug 10, 2022

Conversation

bryantbiggs
Copy link
Contributor

@bryantbiggs bryantbiggs commented Aug 10, 2022

What does this PR do?

  • Allow users to specify multiple Route53 zones as well as cross account zones with external-dns
  • Allow setting set_values through helm_config variable
  • Update default external-dns helm chart version to latest

Motivation

More

  • Yes, I have tested the PR using my local account setup (Provide any test evidence report under Additional Notes)
  • Yes, I have added a new example under examples to support my PR
  • Yes, I have created another PR for add-ons under add-ons repo (if applicable)
  • Yes, I have updated the docs for this feature
  • Yes, I ran pre-commit run -a with this PR

Note: Not all the PRs required examples and docs except a new pattern or add-on added.

For Moderators

  • E2E Test successfully complete before merge?

Additional Notes

@bryantbiggs bryantbiggs temporarily deployed to EKS Blueprints Test August 10, 2022 14:44 Inactive
Copy link
Contributor

@vara-bonthu vara-bonthu left a comment

Choose a reason for hiding this comment

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

LGTM 👍🏼

@bryantbiggs bryantbiggs merged commit e6c597e into main Aug 10, 2022
@bryantbiggs bryantbiggs deleted the feat/external-dns-customization branch August 10, 2022 15:46
Copy link
Contributor

@Zvikan Zvikan left a comment

Choose a reason for hiding this comment

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

LGTM, minor questions/comments

@@ -1,4 +1,3 @@
provider: aws
zoneIdFilters: ${zone_filter_ids}
Copy link
Contributor

Choose a reason for hiding this comment

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

do we know what was the original reason for having zoneIdFilters set? can we safely remove it? checking https://github.com/bitnami/charts/blob/master/bitnami/external-dns/values.yaml#L609-L611 I am not sure, does external DNS know automatically which zone id to use? iirc domain filter is what used mainly but I might be wrong

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, I looked this up as well and it all looks to be optional. so to provide better flexibility, I think defaulting to the minimum required values and letting users opt in to additional values will scale better (they now can choose to set zone ID filters, zone name filters, domain name filters, etc. or not)

Comment on lines +182 to +185
source = "./external-dns"

count = var.enable_external_dns ? 1 : 0

Copy link
Contributor

Choose a reason for hiding this comment

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

Nit question: does it matter if source comes before count (and do we need extra line in-between)? looking at other modules it's usually source->count

Copy link
Contributor Author

Choose a reason for hiding this comment

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

does it matter - no. its just my OCD in that its typically source directly under the module declaration. the other changes are just whitespace to break out to sections:

module "foo" {
  source = "<URL/PATH>

  count or for_each
  
  parameters
  
  tags
  
  depends_on
}

allamand pushed a commit to allamand/terraform-aws-eks-blueprints that referenced this pull request Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants