Skip to content
This repository has been archived by the owner on Aug 25, 2021. It is now read-only.

Customize the DNS service (fixes #545) #555

Merged
merged 4 commits into from
Aug 12, 2020

Conversation

slauger
Copy link
Contributor

@slauger slauger commented Jul 27, 2020

This PR adds some options to enable the customization the DNS service. See #545 for more information.

@hashicorp-cla
Copy link

hashicorp-cla commented Jul 27, 2020

CLA assistant check
All committers have signed the CLA.

@kschoche kschoche added enhancement New feature or request area/dns Related to Consul DNS labels Jul 31, 2020
@kschoche kschoche self-requested a review July 31, 2020 16:45
Copy link
Contributor

@kschoche kschoche left a comment

Choose a reason for hiding this comment

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

Hi @slauger thanks for submitting this PR, it looks good so far, just a couple comments :
When we introduce new fields in values/templates we try to create coverage in the bats test to be sure there are no regressions, and validate the new fields work as intended.

Could you add a new test to cover these changes in test/unit/dns-service.bats ?

You can run this via bats test/unit/dns-service.bats

Also it is currently failing the following bats test:
✗ dns/Service: specified clusterIP (in test file test/unit/dns-service.bats, line 84)

Thanks!

Copy link
Member

@lkysow lkysow left a comment

Choose a reason for hiding this comment

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

Oops! Sorry I didn't see @kschoche's comment.

Thanks for the PR! Can you add tests for these two settings (see https://github.com/hashicorp/consul-helm/blob/master/CONTRIBUTING.md#writing-unit-tests).

@slauger
Copy link
Contributor Author

slauger commented Aug 12, 2020

Hi,

sorry, for the late response. I'm already familiar with the usage of bats and CircleCI. Tests are added. Let me know what you think.

I also introduced dns.additionalSpec, just as ui.additionalSpec. This also obsoletes dns.clusterIP, but i would keep the parameter for backwards compatibility.

Copy link
Member

@lkysow lkysow left a comment

Choose a reason for hiding this comment

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

This looks great!

@lkysow lkysow merged commit 29dd211 into hashicorp:master Aug 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/dns Related to Consul DNS enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants