-
Notifications
You must be signed in to change notification settings - Fork 33
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
Use dns cluster info from lib common get function #376
Use dns cluster info from lib common get function #376
Conversation
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/9a5458b6a1b54dd5a4786bf7dc0412cd ❌ openstack-k8s-operators-content-provider FAILURE in 6m 23s |
main.go
Outdated
@@ -40,6 +40,7 @@ import ( | |||
metricsserver "sigs.k8s.io/controller-runtime/pkg/metrics/server" | |||
|
|||
networkv1 "github.com/k8snetworkplumbingwg/network-attachment-definition-client/pkg/apis/k8s.cni.cncf.io/v1" | |||
operatorv1 "github.com/openshift/api/operator/v1" |
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.
do we need this right now?
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.
Hmm.. I don't think we need it right now.
The idea behind watching this resource (On line 101) is to have the ovn-operator ready in case clusterDomain is parameterizable. If this resource is not watched, it will only be gathered when the ovn-operator is reconciled (for external reasons).
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.
but line 101 would not watch it. it just adds the permissions to be able to watch it. In my opinion we should not watch objects we don't use right now. we should add it later.
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.
Oh true, I forgot to add the watch part when I was copying the code. Instead of watching I will add a //TODO that if clusterLocal is parameterizable we need to watch the resource
b889967
to
d3f35f5
Compare
This change depends on a change that failed to merge. Change openstack-k8s-operators/lib-common#580 is needed. |
Code is fine but I think you need to pull the library in go.mod. |
d3f35f5
to
7ab8f40
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: averdagu The full list of commands accepted by this bot can be found here. The pull request process is described 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/9cca9f92a0de4f16a66c5d7baf3fe844 ❌ openstack-k8s-operators-content-provider FAILURE in 6m 49s |
7ab8f40
to
4a7a520
Compare
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/d33f3a22d1a24a48ab232f7296bc21ed ❌ openstack-k8s-operators-content-provider FAILURE in 10m 44s |
/retest |
Also need to fix in openstack-operator to clear this atleast DNSSuffix usage $ grep -r -e ClusterInternalDomain -e cluster.local -e DNSSuffix |
Problem seen in this commit should be solved once this merges openstack-k8s-operators/openstack-operator#1215 |
Openshift coreDNS creates the domain name using an string located in dnses.operator.openshift.io. This string can change in the future, calling lib-common/GetDNSClusterDomain the responsability of gathering this information correctly only falls under lib-common intead of all operators. Resolves: OSPRH-3627 Depends-on: openstack-k8s-operators/lib-common#580
4a7a520
to
d406486
Compare
/lgtm |
02d4a86
into
openstack-k8s-operators:main
Openshift coreDNS creates the domain name using an string located in dnses.operator.openshift.io. This string can change in the future, calling lib-common/GetDNSClusterDomain the responsability of gathering this information correctly only falls under lib-common intead of all operators.
Resolves: OSPRH-3627
Depends-on: openstack-k8s-operators/lib-common#580