Skip to content

InstallConfig machine pool typing and validation #264

Closed

Description

@wking

Spun off from this thread, @dgoodwin expressed concerns about Machines corner cases. What if no pool named master is configured? What if multiple pools named master is configured? What if a pool named somethingTheInstallerDoesNotUnderstand is configured? I'd floated:

Master MachinePool `json:"master"

Worker MachinePool `json:"worker"

but @dgoodwin pointed out compat issues between that approach and ClusterDeployment information.

@abhinavdahiya suggested we leave Machines alone, but we don't currently have any validation for Machines, and I expect we'll want to have some at some point.

@dgoodwin suggested leaving Machines as it stands but adding a typed variable for the name with constants for the master and worker names (he suggested control-plane and compute for the names) with verification checking for exactly one control-plane and at least one compute. He didn't give an opinion on the somethingTheInstallerDoesNotUnderstand case.

I'm not clear enough on the trade-offs to have much of an opinion here, but think we should sort out how we want verification to work here before InstallConfig gets too popular and migration becomes difficult ;).

Activity

  1. dgoodwin commented on Sep 18, 2018

    @dgoodwin
    Contributor

    One thing I didn't think of at the time was:

    ControlPlane MachinePool
    Compute MachinePool[]

    I would be ok with this as it's flexible enough for the long term definition of what should exist in the cluster. You could enforce compute only contains one at install time if you wanted.

    I'd suggest avoiding "Master" and going "ControlPlane" as that's been a consistent trend as far as I can tell lately.

    But yes if leaving as is I think explicit type identifiers would be better than assumptions about names, and let the user choose the names.

  2. wking commented on Sep 18, 2018

    @wking
    MemberAuthor

    @abhinavdahiya, what do you think about:

    ControlPlane MachinePool
    Compute MachinePool[]
    

    ?

  3. crawford commented on Jan 4, 2019

    @crawford
    Contributor

    Closing due to inactivity.

  4. openshift-ci-robot commented on Jan 4, 2019

    @openshift-ci-robot
    Contributor

    @crawford: Closing this issue.

    Details

    In response to this:

    Closing due to inactivity.

    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/test-infra repository.

  5. wking commented on Jan 4, 2019

    @wking
    MemberAuthor

    I'm still in favor of this change, but was waiting for feedback from other maintainers ;). Mind if I just go ahead and work up a PR?

  6. dgoodwin commented on Jan 7, 2019

    @dgoodwin
    Contributor

    I think @abutcher has one in flight for #264

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions