Skip to content
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

ClusterOptions and ClusterNodeGroupOptions inconsistency #96

Closed
lbogdan opened this issue Apr 1, 2019 · 7 comments
Closed

ClusterOptions and ClusterNodeGroupOptions inconsistency #96

lbogdan opened this issue Apr 1, 2019 · 7 comments
Assignees
Labels
help-wanted We'd love your contributions on this issue
Milestone

Comments

@lbogdan
Copy link

lbogdan commented Apr 1, 2019

I've noticed an inconsistency between ClusterOptions and CluserNodeGroupOptions regarding keyName - that only exists in the latter.

As you should be able to specify any ClusterNodeGroupOptions as part of ClusterOptions , doesn't it make sense for ClusterOptions to have a nodeGroupOptions propery, instead of copying all ClusterNodeGroupOptions properties to it?

@lbogdan
Copy link
Author

lbogdan commented Apr 1, 2019

Took a look at the source code, and this inconsistency seems understandable, as node groups were not there in the initial design, and were added later in #44 ; then keyName was added in 3f7352d , but only for node groups.

@lukehoban
Copy link
Member

Yes - I see no reason we can't add keyName to the cluster options as well.

I would love to share the interfaces here as well, so that we don't have to duplicate things in both places. This may be slightly challenging because a few properties ended up with slightly different names in the two - but I think there are only one or two cases of that - and those could be special-cased while still sharing everything else.

@lbogdan
Copy link
Author

lbogdan commented Apr 1, 2019

Btw, I would be interested in working on this (and the other two feature requests I opened today), if I could get a bit of mentoring.

@lukehoban
Copy link
Member

That would be great! If you DM @metral and I on the Pulumi Community Slack we can set up some time to chat about this (and other areas you raised issues on).

@lukehoban lukehoban added this to the 0.25 milestone Jul 25, 2019
@metral metral modified the milestones: 0.25, 0.26 Aug 2, 2019
@lukehoban lukehoban modified the milestones: 0.26, 0.27 Aug 21, 2019
@gitfool
Copy link

gitfool commented Sep 10, 2019

I would also like to see some consistency here. I initially need keyName, but ideally all node group options should be passed through. Specifying ClusterNodeGroupOptions would be better and help scope names, otherwise keyName might be better called nodeKeyName in ClusterOptions. Also, keyName and nodePublicKey should be mutually exclusive.

@lukehoban lukehoban added the help-wanted We'd love your contributions on this issue label Sep 11, 2019
@lukehoban
Copy link
Member

ideally all node group options should be passed through

Agreed! cc also @CyrusNajmabadi for thoughts on API design here.

@metral
Copy link
Contributor

metral commented Oct 1, 2019

Closed with #259

@metral metral closed this as completed Oct 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help-wanted We'd love your contributions on this issue
Projects
None yet
Development

No branches or pull requests

4 participants