-
Notifications
You must be signed in to change notification settings - Fork 32
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
Retrieve DNS domain name from cluster #258
base: main
Are you sure you want to change the base?
Retrieve DNS domain name from cluster #258
Conversation
Skipping CI for Draft Pull Request. |
// Using this approach in case CP have multiple domains | ||
// also it does not depend on the DNS CR name. | ||
// ATM in case of multiple domains will return last one. | ||
for _, dns := range DNSClusterInfoList.Items { | ||
DNSDomain = dns.Status.ClusterDomain | ||
} |
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.
I don't know if it's possible or if it'll be a use case the fact that exists multiple DNS domains (besides cluster.local
) and how OVN operator should handle it
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.
Looking at the Reconcile loop of the openshift dns-operator, it only expects a DNS CR named Default
, Could modify this chunk of code to get the object by name instead of getting a list and iterating over it.
https://github.com/openshift/cluster-dns-operator/blob/master/pkg/operator/controller/controller.go#L180-L184
Build failed (check pipeline). Post https://review.rdoproject.org/zuul/buildset/2f28d7cb69234cb9b0e139a543d6f205 ✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 24m 11s |
a59fc64
to
930f64d
Compare
930f64d
to
2bb41ba
Compare
Build failed (check pipeline). Post https://review.rdoproject.org/zuul/buildset/3d820c03902b4db08044c0e7f22d5129 ✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 08m 16s |
2bb41ba
to
ddf3f4c
Compare
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/8fafc03a2c234ed8a6c1b267bba71f43 ✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 15m 49s |
ddf3f4c
to
8618f6b
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: averdagu 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 |
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/f1fce6e33ed14a0a9918a1b8e5e2e958 ✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 42m 26s |
8618f6b
to
016c0d5
Compare
016c0d5
to
6cdf5a8
Compare
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/ed8b4e7d61a04124abaf8ac7688c7b16 ✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 18m 24s |
OVNDBCluster uses openshift dns name for Status.InternalDbAddress, which the dnsrecord is created using the following pattern: [pod_name].[namespace].[type(svc)].[ClusterDomain] The default for ClusterDomain is 'cluster.local' but this could change in the future as mentioned in [0]. With this patch the ClusterDomain is gathered from the environment and not hardcoded. [0] https://github.com/openshift/cluster-dns-operator/blob/208d50c1a5e0aaeb991366daa749abdffa803224/pkg/operator/controller/controller.go#L498 Jira: OSPRH-3627
6cdf5a8
to
5784570
Compare
/retest as it doesn't seem caused by this patch |
@averdagu: The
The following commands are available to trigger optional jobs:
Use
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 kubernetes-sigs/prow repository. |
/retest |
thx Arnau for the patch, now seeing it's usage i see it's hard coded at multiple places, so would be good to consider raising it and have a common solution and have something in lib-common/openstack-operator ? |
PR needs rebase. 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. |
Oh, thanks yatin for raising this, I was only focus on ovn-operator. Indeed I think it should be done globally. Putting this PR back to draft and looking into a more global solution |
Jira: OSPRH-3627