Skip to content

Commit

Permalink
handling v1beta1.NodeClass -> EC2NodeClass
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Cole committed Sep 15, 2023
1 parent d033501 commit 3754d8e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/controllers/nodeclass/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func (c *Controller) resolveAMIs(ctx context.Context, nodeClass *v1beta1.EC2Node
return nil
}

func (c *Controller) resolveLicenses(ctx context.Context, nodeClass *v1beta1.NodeClass) error {
func (c *Controller) resolveLicenses(ctx context.Context, nodeClass *v1beta1.EC2NodeClass) error {
licenses, err := c.licenseProvider.List(ctx, nodeClass)
if err != nil {
return err
Expand All @@ -171,7 +171,7 @@ func (c *Controller) resolveLicenses(ctx context.Context, nodeClass *v1beta1.Nod

}

func (c *Controller) resolveHostResourceGroups(ctx context.Context, nodeClass *v1beta1.NodeClass) error {
func (c *Controller) resolveHostResourceGroups(ctx context.Context, nodeClass *v1beta1.EC2NodeClass) error {
result , err := c.hostResourceGroupProvider.Get(ctx, nodeClass)
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion pkg/providers/hostresourcegroup/hostresourcegroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func NewProvider(rgapi resourcegroupsiface.ResourceGroupsAPI, cache *cache.Cache
}
}

func (p *Provider) Get(ctx context.Context, nodeClass *v1beta1.NodeClass) (*v1beta1.HostResourceGroup, error) {
func (p *Provider) Get(ctx context.Context, nodeClass *v1beta1.EC2NodeClass) (*v1beta1.HostResourceGroup, error) {
p.Lock()
defer p.Unlock()
var nextToken *string = nil
Expand Down
2 changes: 1 addition & 1 deletion pkg/providers/license/license.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func NewProvider(lmapi licensemanageriface.LicenseManagerAPI, cache *cache.Cache
}
}

func (p *Provider) List(ctx context.Context, nodeClass *v1beta1.NodeClass) ([]string, error) {
func (p *Provider) List(ctx context.Context, nodeClass *v1beta1.EC2NodeClass) ([]string, error) {
p.Lock()
defer p.Unlock()

Expand Down

0 comments on commit 3754d8e

Please sign in to comment.