Skip to content

Commit

Permalink
implement new GetOptions method for linode provider
Browse files Browse the repository at this point in the history
  • Loading branch information
dbonfigli authored and Madan Gudi committed Jan 28, 2021
1 parent b97668e commit 3e0482b
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 3e0482b

Please sign in to comment.