-
Notifications
You must be signed in to change notification settings - Fork 68
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
Handle non-standard coredns ConfigMap name in SD controller #3295
Conversation
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
🤖 Created branch: z_pr3295/tpantelis/coredns_cm |
Fixes submariner-io/lighthouse#1602 Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
cm := &configMaps.Items[i] | ||
|
||
_, hasCorefile := cm.Data[Corefile] | ||
if strings.HasSuffix(cm.Name, suffix) && hasCorefile { |
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.
Based on this comment, we could we just check for the existence of the Corefile
data entry. @vthapar @aswinsuryan WDYT?
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.
this looks good , since it is listing all the configmaps in DefaultCoreDNSNamespace , we should be safe as there should be only one coredns corefile normally in this namespace.
🤖 Closed branches: [z_pr3295/tpantelis/coredns_cm] |
submariner-io/submariner-operator#3295 Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
submariner-io/submariner-operator#3295 Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
Includes a couple preliminary commits to refactor constants and add additional unit test.
Fixes submariner-io/lighthouse#1602