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

refactor: optimize CSE main script for go template #2339

Merged
merged 8 commits into from Nov 21, 2019

Conversation

jackfrancis
Copy link
Member

@jackfrancis jackfrancis commented Nov 19, 2019

Reason for Change:

  • Remove unnecessary bash if blocks (including a few stragglers in cse_config.sh
  • Remove unnecessary AZURE_POLICY_ADDON bash var via ARM (we can get this value via the ContainerService context of the go template layer directly at template generation time)
  • ditto TARGET_ENVIRONMENT
  • ditto PRIVATE_AZURE_REGISTRY_SERVER
  • add consts for re-use of static file paths, and refer to them in the whole codebase, including go template, where appropriate
  • optimized all dualstack foo under the ensureDHCPv6 func

Issue Fixed:

Requirements:

Notes:

@codecov
Copy link

codecov bot commented Nov 19, 2019

Codecov Report

Merging #2339 into master will increase coverage by 0.05%.
The diff coverage is 97.22%.

@@            Coverage Diff            @@
##           master   #2339      +/-   ##
=========================================
+ Coverage   71.85%   71.9%   +0.05%     
=========================================
  Files         130     130              
  Lines       23365   23392      +27     
=========================================
+ Hits        16788   16820      +32     
+ Misses       5550    5546       -4     
+ Partials     1027    1026       -1

@acs-bot acs-bot added size/L and removed size/M labels Nov 19, 2019
@acs-bot acs-bot added size/XL and removed size/L labels Nov 20, 2019
@jackfrancis
Copy link
Member Author

/azp run pr-e2e

2 similar comments
@jackfrancis
Copy link
Member Author

/azp run pr-e2e

@jackfrancis
Copy link
Member Author

/azp run pr-e2e

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jackfrancis
Copy link
Member Author

/azp run pr-e2e

@jackfrancis jackfrancis changed the title [WIP] refactor: optimize CSE main script for go template refactor: optimize CSE main script for go template Nov 20, 2019
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jackfrancis jackfrancis added this to In progress in backlog Nov 20, 2019
@jackfrancis jackfrancis added this to the v0.45.0 milestone Nov 20, 2019
backlog automation moved this from In progress to Under Review Nov 21, 2019
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 Nov 21, 2019
@acs-bot acs-bot merged commit 4ec6504 into Azure:master Nov 21, 2019
backlog automation moved this from Under Review to Done Nov 21, 2019
@acs-bot
Copy link

acs-bot commented Nov 21, 2019

[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

@jackfrancis jackfrancis deleted the cse_main_go_template branch November 21, 2019 17:29
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

3 participants