Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

chore: use IsVMSSToBeUpgraded func to validate vmss pools in upgrade #2650

Merged

Conversation

jackfrancis
Copy link
Member

Reason for Change:

This PR evolves the CLI upgrade functionality so that we include a IsVMSSToBeUpgraded method spec to the UpgradeCluster struct object. This method spec will ensure that the upgrade operationa is able to determine at runtime whether or not a VMSS present in the cluster resource group is actually a VMSS that correlates with an AgentPoolProfile of type "VirtualMachineScaleSets" in the cluster spec.

At present (passing in no method spec), the aks-engine upgrade operation is subject to edge case scenarios where VMSS instances in the resource group not created by aks-engine are evaluated as Kubernetes nodes.

Issue Fixed:

Requirements:

Notes:

@codecov
Copy link

codecov bot commented Jan 30, 2020

Codecov Report

Merging #2650 into master will increase coverage by 0.02%.
The diff coverage is 85.71%.

@@            Coverage Diff             @@
##           master    #2650      +/-   ##
==========================================
+ Coverage   71.76%   71.79%   +0.02%     
==========================================
  Files         134      134              
  Lines       25001    25024      +23     
==========================================
+ Hits        17943    17965      +22     
- Misses       6008     6009       +1     
  Partials     1050     1050

Copy link
Member

@mboersma mboersma left a comment

Choose a reason for hiding this comment

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

/lgtm

@acs-bot acs-bot added the lgtm label Jan 31, 2020
@acs-bot acs-bot merged commit c3b0fac into Azure:master Jan 31, 2020
@jackfrancis jackfrancis deleted the upgrade-validate-vmss-is-in-cluster branch January 31, 2020 18:54
@acs-bot
Copy link

acs-bot commented Jan 31, 2020

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jackfrancis, mboersma

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [jackfrancis,mboersma]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants