-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Adds DNSControllerSpec and WatchIngress flag #2504
Adds DNSControllerSpec and WatchIngress flag #2504
Conversation
@justinsb Minor API changes for a good cause here :) Would you pleas take a look? |
I like this, but can we just revert the change so we can get 1.6.0 out? |
I'm also wondering if we adopt external-dns for ingress |
Yes please, let's get 1.6 out |
Any plans to include this in the next release? |
@justinsb we good to get this in? |
@geojaz need a rebase |
@geojaz status on this? |
@chrislovecnm I'll try to get this done tonight |
func (tf *TemplateFunctions) DnsControllerArgv() ([]string, error) { | ||
var argv []string | ||
|
||
argv = append(argv, "/usr/bin/dns-controller") | ||
|
||
if tf.cluster.Spec.DNSController != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, I tend to do this:
dnsController := tf.cluster.Spec.DNSController
if dnsController == nil {
dnsController = &DNSControllerSpec{}
}
...
With one option it's a wash, with a bunch it makes things simpler :-)
This LGTM. I'm not sure if we should call it My thoughts:
But:
|
/lgtm |
I think we should call it externalDns with some language on the docs/commenting in the code to explain that this is also the config for dnsController. I'll clean this up and let you take one more look at it before merge. Thanks for the ideas :) |
docs/cluster_spec.md
Outdated
watchIngress: true | ||
``` | ||
|
||
Default kops behavior is false. `watchIngress: true` uses the default _dns-controller_ behavior which is to watch the ingress controller for changes. Set this option at risk of interrupting Service updates in some cases. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Set this option at risk of interrupting Service updates in some cases.".
It would be nice to add more info about when this would/could happen.
Will squash commits as make sense. I moved the config from DNSControllerSpec to ExternalDNSConfig and updated the docs and such. I think next step is to refactor to combine the DNSControllerArgv and ExternalDNSArgv in template_functions... but maybe not crucial for this submission. |
Need a rebase and e2e failed. |
@geojaz PR needs rebase |
/lgtm cancel |
/lgtm |
Is there some way to move this forward if it just needs a rebase? |
Paging @geojaz :) |
/lgtm cancel //PR changed after LGTM, removing LGTM. @chrislovecnm @geojaz @justinsb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
/lgtm @DerekV will be in our next release, let us know if you have any questions about using it before the release |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chrislovecnm, geojaz, justinsb The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/test all [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue |
This PR is in reference to #2496, #2468 and the issues referenced in there relating to use of the watch-ingress flag.
This PR attempts to rectify this situation and gives users who want it, the option to turn on watch-ingress without forcing it on them. Also spits out a warning to the logs about potential side effects.
Includes notes in
docs/cluster_spec.md
to explain.This change is