Skip to content

Conversation

@csrwng
Copy link
Contributor

@csrwng csrwng commented Jun 16, 2021

@openshift-ci openshift-ci bot requested review from bparees and mfojtik June 16, 2021 18:45
@csrwng csrwng force-pushed the external_cp_topology branch 2 times, most recently from c053f01 to 00b1146 Compare June 17, 2021 02:49
@csrwng csrwng force-pushed the external_cp_topology branch from 00b1146 to 9958693 Compare June 23, 2021 18:57
@bparees
Copy link
Contributor

bparees commented Jun 23, 2021

/approve

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 23, 2021
enum:
- HighlyAvailable
- SingleReplica
- External
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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.

@bparees
Copy link
Contributor

bparees commented Jun 23, 2021

/approve cancel

@openshift-ci openshift-ci bot removed the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 23, 2021
@bparees
Copy link
Contributor

bparees commented Jun 24, 2021

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jun 24, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 24, 2021

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 24, 2021
@openshift-merge-robot openshift-merge-robot merged commit b9cfbc7 into openshift:master Jun 24, 2021

// TopologyMode defines the topology mode of the control/infra nodes.
// +kubebuilder:validation:Enum=HighlyAvailable;SingleReplica
// +kubebuilder:validation:Enum=HighlyAvailable;SingleReplica;External

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.

Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants