-
Notifications
You must be signed in to change notification settings - Fork 95
RFE-4145: Support custom list of services to be added to /etc/hosts by Node resolver #441
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
base: master
Are you sure you want to change the base?
Conversation
@t-cas: This pull request references RFE-4145 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the feature request to target the "4.20.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @t-cas. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
@t-cas thanks for your contribution. There are two issues here. First, the RFE has not been accepted, and second, you will need to make OpenShift API changes in github.com/openshft/api and vendor them instead of directl editing vendor/github.com/openshift/api/operator/v1/types_dns.go /hold |
@candita thanks for your feedback, api change done in this PR openshift/api#2435 as requested The change is rather small, and it is here already implemented and tested, how can we move forward with RFE ? |
…DNS operator - RFE-4145
|
||
// Add any additional services from the spec | ||
if len(dns.Spec.NodeServices) > 0 { | ||
for _, service := range dns.Spec.NodeServices { |
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.
@candita Will this ensure that the list, assuming items aren't changing, are in a stable order or do we need to sort them to prevent churn?
/test verify-deps |
/test verify |
@t-cas: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
/assign @Miciah |
@t-cas please investigate the failing verify/verify-deps test before review. |
Today, node-resolver daemonset in openshift-dns-operator namespace is referencing a SERVICES environment variable allowing to update /etc/hosts of all nodes of the cluster with entries for custom services of the platform, so it can be targeted directly from nodes. This allow the nodes to have access to internal openshift registry directly using DNS entry image-registry.openshift-image-registry.svc
Only issue is that this value for SERVICES env variable is harcoded in cluster-dns-operator code, so it does not allow to reference other services available also at node level.
This PR update DNS operator.openshift.io custom resource and associated controller to support a list of openshift services so they will be added automatically in /etc/hosts and available on all cluster nodes.
This is tracked by RFE-4145