kubernetes-sigs / azurefile-csi-driver

Azure File CSI Driver
Apache License 2.0
154 stars 141 forks source link

feat: refine powershell cmdlet to use less resources in host process deployment #1939

Closed andyzhangx closed 3 months ago

andyzhangx commented 3 months ago

What type of PR is this? /kind feature

What this PR does / why we need it: chore: refine powershell cmdlet to use less resources in host process deployment

There are several PowerShell parameters that can be used to reduce the amount of resources used by a PowerShell command. Here are a few examples:

-NoLogo: This parameter prevents PowerShell from displaying the PowerShell logo when it starts. This can help reduce the amount of memory used by PowerShell.

-NoProfile: This parameter prevents PowerShell from loading the user profile. This can help reduce the amount of memory used by PowerShell.

-ExecutionPolicy Bypass: This parameter allows PowerShell to run scripts without requiring a digital signature. This can help reduce the amount of CPU and memory used by PowerShell.

-CommandType Function: This parameter limits the search for commands to functions only. This can help reduce the amount of CPU and memory used by PowerShell.

-OutputFormat None: This parameter prevents PowerShell from formatting the output of a command. This can help reduce the amount of CPU and memory used by PowerShell.

It's important to note that using these parameters may affect the functionality of the PowerShell command, so it's important to test thoroughly before using them in a production environment.

Which issue(s) this PR fixes:

Fixes #

Requirements:

Special notes for your reviewer:

Release note:

none
k8s-ci-robot commented 3 months ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andyzhangx

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](https://github.com/kubernetes-sigs/azurefile-csi-driver/blob/master/OWNERS)~~ [andyzhangx] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
andyzhangx commented 3 months ago

/retest

andyzhangx commented 3 months ago

/retest

andyzhangx commented 3 months ago

/retest

andyzhangx commented 3 months ago

/retest

k8s-ci-robot commented 3 months ago

@andyzhangx: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-azurefile-csi-driver-e2e-capz-windows-2019-hostprocess d74da4de349528f037add2c2fd6a4197f0a5dfcc link true /test pull-azurefile-csi-driver-e2e-capz-windows-2019-hostprocess
pull-azurefile-csi-driver-e2e-capz-windows-2022-hostprocess d74da4de349528f037add2c2fd6a4197f0a5dfcc link true /test pull-azurefile-csi-driver-e2e-capz-windows-2022-hostprocess

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes-sigs/prow](https://github.com/kubernetes-sigs/prow/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).