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

fix: custom cloud Azure CNI config for Windows #3228

Merged
merged 6 commits into from May 13, 2020

Conversation

jackfrancis
Copy link
Member

@jackfrancis jackfrancis commented May 11, 2020

Reason for Change:

This PR only adds the "environment": "mas" Azure CNI config if we're in an Azure Stack custom cloud profile context.

Issue Fixed:

Requirements:

Notes:

@@ -68,7 +68,7 @@ Set-AzureCNIConfig
$KubeServiceCIDR,
[Parameter(Mandatory=$true)][string]
$VNetCIDR,
[Parameter(Mandatory=$true)][string]
[Parameter(Mandatory=$false)][string]
$TargetEnvironment
Copy link
Contributor

Choose a reason for hiding this comment

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

If this is no longer required can you set to a default value by turning the last line into
$TargetEnvironment = ""

Copy link
Contributor

Choose a reason for hiding this comment

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

Or maybe we should always pass this and set the value differently - that would clean up the Set-AzureCNIConfig call too i think

@mboersma mboersma added this to In progress in backlog via automation May 11, 2020
@codecov
Copy link

codecov bot commented May 11, 2020

Codecov Report

Merging #3228 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3228   +/-   ##
=======================================
  Coverage   71.43%   71.43%           
=======================================
  Files         147      147           
  Lines       25653    25653           
=======================================
  Hits        18324    18324           
  Misses       6187     6187           
  Partials     1142     1142           
Impacted Files Coverage Δ
pkg/engine/templates_generated.go 39.64% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8973e40...387620b. Read the comment docs.

@@ -353,8 +353,7 @@ try
-KubeClusterCIDR $global:KubeClusterCIDR `
-MasterSubnet $global:MasterSubnet `
-KubeServiceCIDR $global:KubeServiceCIDR `
-VNetCIDR $global:VNetCIDR `
-TargetEnvironment $TargetEnvironment
-VNetCIDR $global:VNetCIDR -IsAzureStack {{if IsAzureStackCloud}}$true{{else}}$false{{end}}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you move the if/else to a variable assignment before the Set-AzureCNICall and all add a comment explaining what is actually going on?

Copy link
Contributor

Choose a reason for hiding this comment

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

and revert back to one param per line (for consistency?)

marosset
marosset previously approved these changes May 11, 2020
Copy link
Contributor

@marosset marosset left a comment

Choose a reason for hiding this comment

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

/lgtm

backlog automation moved this from In progress to Review in progress May 11, 2020
@acs-bot acs-bot added the lgtm label May 11, 2020
@marosset
Copy link
Contributor

/lgtm

@acs-bot acs-bot added the lgtm label May 11, 2020
@acs-bot
Copy link

acs-bot commented May 11, 2020

[APPROVALNOTIFIER] This PR is APPROVED

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

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,marosset]

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

@jackfrancis jackfrancis merged commit a74924a into Azure:master May 13, 2020
backlog automation moved this from Review in progress to Done May 13, 2020
@jackfrancis jackfrancis deleted the windows-custom-cloud-cni branch May 13, 2020 17:01
@jackfrancis
Copy link
Member Author

This change fixed #3245

penggu pushed a commit to penggu/aks-engine that referenced this pull request Oct 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
backlog
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants