Skip to content

Commit

Permalink
Merge pull request #3850 from dbonfigli/linode-break
Browse files Browse the repository at this point in the history
implement new GetOptions method for linode provider
  • Loading branch information
k8s-ci-robot authored Jan 27, 2021
2 parents aa8d8e7 + 48bf197 commit b72d066
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cluster-autoscaler/cloudprovider/linode/linode_node_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
apiv1 "k8s.io/api/core/v1"
"k8s.io/autoscaler/cluster-autoscaler/cloudprovider"
"k8s.io/autoscaler/cluster-autoscaler/cloudprovider/linode/linodego"
"k8s.io/autoscaler/cluster-autoscaler/config"
klog "k8s.io/klog/v2"
schedulerframework "k8s.io/kubernetes/pkg/scheduler/framework"
)
Expand Down Expand Up @@ -217,6 +218,12 @@ func (n *NodeGroup) Autoprovisioned() bool {
return false
}

// GetOptions returns NodeGroupAutoscalingOptions that should be used for this particular
// NodeGroup. Returning a nil will result in using default options.
func (n *NodeGroup) GetOptions(defaults config.NodeGroupAutoscalingOptions) (*config.NodeGroupAutoscalingOptions, error) {
return nil, cloudprovider.ErrNotImplemented
}

// addNewLKEPool creates a new LKE Pool with a single linode in it and add it
// to the pools of this node group
func (n *NodeGroup) addNewLKEPool() error {
Expand Down

0 comments on commit b72d066

Please sign in to comment.