Skip to content

Commit

Permalink
chore: rename variabled
Browse files Browse the repository at this point in the history
  • Loading branch information
tallaxes committed Oct 24, 2024
1 parent 07052f3 commit 74fdd8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/cloudprovider/drift.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ const (
)

func (c *CloudProvider) isNodeClassDrifted(ctx context.Context, nodeClaim *karpv1.NodeClaim, nodeClass *v1alpha2.AKSNodeClass) (cloudprovider.DriftReason, error) {
// First check if the node class is statically drifted to save on API calls.
if drifted := c.areStaticFieldsDrifted(nodeClaim, nodeClass); drifted != "" {
return drifted, nil
// First check if the node class is statically staticFieldsDrifted to save on API calls.
if staticFieldsDrifted := c.areStaticFieldsDrifted(nodeClaim, nodeClass); staticFieldsDrifted != "" {
return staticFieldsDrifted, nil
}
k8sVersionDrifted, err := c.isK8sVersionDrifted(ctx, nodeClaim)
if err != nil {
Expand Down

0 comments on commit 74fdd8a

Please sign in to comment.