-
Notifications
You must be signed in to change notification settings - Fork 585
Add external topology mode #940
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
Add external topology mode #940
Conversation
c053f01 to
00b1146
Compare
Implementation of https://github.com/openshift/enhancements/blob/master/enhancements/external-control-plane-topology.md Adds External value to the ToplogyMode type.
00b1146 to
9958693
Compare
|
/approve |
| enum: | ||
| - HighlyAvailable | ||
| - SingleReplica | ||
| - External |
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.
are we actually consistent about infra?
in hypershift we have some infra components that run external (olm) and some that run on cluster (registry) right?
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.
That is correct. From an operator point of view, I don't think the External value makes sense for infra topology (Unless we really externalize all of infra). It is meant to apply only to control plane topology for now. However, not sure that we can express that through the API as it is.
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.
So "external" will not be a valid value for status.infrastructureTopology ?
I guess can understand not creating another Type to split them, so i guess we can live with this but it is somewhat unfortunate that it confusingly implies it is valid, even if practice we'd never actually set it to that value.
|
/approve cancel |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bparees, csrwng The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
|
||
| // TopologyMode defines the topology mode of the control/infra nodes. | ||
| // +kubebuilder:validation:Enum=HighlyAvailable;SingleReplica | ||
| // +kubebuilder:validation:Enum=HighlyAvailable;SingleReplica;External |
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.
If we move this declaration up to the fields above, we can provide different enum values and prevent the infra topology from being set to external. We would want a comment here to explain why we're doing it that way, too.
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.
@dhellmann I like this suggestion. We can then make sure we don't set an invalid value for infra topology. Will submit a follow up PR
Implementation of https://github.com/openshift/enhancements/blob/master/enhancements/external-control-plane-topology.md
Adds External value to the ToplogyMode type.