-
Notifications
You must be signed in to change notification settings - Fork 407
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
bm/ovirt: pass API_VIP/DNS_VIP from cluster config/installer and render templates with it #812
Comments
Briefly looking through, it looks like the following prs would need to land before we'd tackle this: What is the status of the first PR in openshift/api ?? |
I have nothing to change there, just waiting for approval |
specifically which values are you needing from the cluster config? Networking? The mco already consumes the install config, so if you could be more specific about what you need from that it would be helpful. 😃 |
Also if you can add more details about the platform, that would be great as I don't think we have that much familiarity with it. |
You'll find it here, under the new 'ovirt' platform (not merged yet obviously) |
I can think of more data which I need to share, like the the platform authentication details, which will be used by the cluster-api or actuator to provision machines |
can you outline what PRs need to merge / the overall status of this ovirt platform? before this PR could even merge? |
we're Rendering using the cluster config already - what's the reason to be in RenderConfig as well? you might want it in ControllerConfig maybe (still looking at the code and the related ovirt PRs) |
RenderConfig is the one that is used to execute templating on templates/master/... no? |
Ah so I didn't understand that this is actually speculative and that the installer does not yet even support ovirt. You'd first need to get that installer config PR merged before the MCO can do anything with your new data type. And like @runcom said the mco already consumes the clusterconfig so that bit of general work would not be needed |
Installer team is deprecating all clients of the |
cool, we do play with that already as well in code (iirc, can't check right now). |
@kikisdeliveryservice speculative? no. Its a work in progress toward making it happen. @runcom got any reference to infrastructures.config.openshift.io? |
I'd like to add that the Baremetal platform also needs some/all of these values as well. That is more pressing as we are trying to get Baremetal support into 4.2. I currently have PR #795 that adds some static pod definitions that would need at a minimum the API vip and the DNS vip. Should I open a separate issue for that? @kikisdeliveryservice |
if it's tackling the same issue, let's generalize this issue. |
Yes I'd say just use this issue. Easier to keep track. |
I see that the controller bootstrap does that: So this means I won't have access the cluster config |
@rgolangh we're playing with that in pkg/operator but I'm not sure how that's handled outside the MCO to populate it:
I believe it's setup in the installer 🤔 |
@abhinavdahiya I don't know what this namespace refer to - I saw you mentioning this several times - can you please explain this? |
Issue explaining the move of installconfig stuff to infrastructures.config.openshift.io openshift/installer#680 |
I think it's about adding to https://github.com/openshift/api/blob/master/config/v1/types_infrastructure.go#L99 |
I'm developing the platform provider for ovirt #766, which is a platform which doesn't provide a DNS service, and as such it utilzes the work done on metal3. To bootstrap a working DNS solution, the installer asks the user for an IP to be the virtual IP of the DNS - DNS_VIP.
This DNS_VIP is a value which must end up in the masters ignition files for the ovirt platform, and possibly others.
Today I see that there are number of files which bootstrap MCO, one of them is
config-file
:machine-config-operator/cmd/machine-config-operator/bootstrap.go
Line 74 in acf5b49
Which is the serialized
InstallConfig
of the installer, which has all I need:https://github.com/openshift/installer/blob/479ca0fc0fd46c489c4b97d783bf1dd58cc373a2/pkg/types/installconfig.go#L42
What I want is to add this ClusterConfigMap to the RenderConfig and by that I could render my templates.
Can I rely on the installer InstallConfig type and to serialize the content to it and put it in render config? It creates dependency on the installer types, and I don't know yet how does it fit the overall design of those components.
The text was updated successfully, but these errors were encountered: