Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

K8s: add ha and supported_features fields #283

Merged

Conversation

sunny-b
Copy link
Contributor

@sunny-b sunny-b commented Oct 7, 2021

This PR adds supported for both the supported_features field in the Kubernetes options as well as the HA control plane field when creating a K8s cluster.

Additionally, I added a small optimization that allows for passing both a hash or an instance of KubernetesNodePool into the node_pools array when creating a Kubernetes cluster as that was a big confusion point for me.

cc: @adamwg

Copy link
Member

@andrewsomething andrewsomething left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Comment on lines +24 to +26
if object.respond_to?(:node_pools) && object.node_pools.respond_to?(:map)
object.node_pools = object.node_pools.map(&:to_hash)
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌 nice

Copy link
Member

@andrewsomething andrewsomething left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@andrewsomething andrewsomething merged commit b60dcfd into digitalocean:main Oct 7, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants