Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add parameters for collect-windows-logs.ps1 #4325

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

ShiqianTao
Copy link
Contributor

What type of PR is this?

/kind feature

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Requirements:

Special notes for your reviewer:

Release note:

none

@coveralls
Copy link

coveralls commented Apr 21, 2024

Pull Request Test Coverage Report for Build 8793716454

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 79.148%

Totals Coverage Status
Change from base Build 8791241919: 0.0%
Covered Lines: 2414
Relevant Lines: 3050

💛 - Coveralls

@ShiqianTao ShiqianTao added windows cse package The change with this label needs to build a new AKS Windows CSE Scripts Package. windows labels Apr 21, 2024
C:\aks-tools\DU\du.exe /accepteula
C:\aks-tools\DU\du.exe -l 1 C:\ProgramData\containerd\root\io.containerd.snapshotter.v1.windows\snapshots\ > "$ENV:TEMP\$timeStamp-du-snapshot-folder-size.txt"
$paths += "$ENV:TEMP\$timeStamp-du-snapshot-folder-size.txt"
if ($args.Count -gt 0 -and $args -contains "disk-usage") {
Copy link
Member

Choose a reason for hiding this comment

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

We have a command to collect disk-usage so the name may be confused. How about containers-disk-usage or snapshots-size? Could we not use contain since a valid name with different suffix can also pass the validation

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated code to switch param

Copy link
Member

@AbelHu AbelHu left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the PR.

@ShiqianTao ShiqianTao enabled auto-merge (squash) April 23, 2024 02:11
@ShiqianTao ShiqianTao disabled auto-merge April 23, 2024 02:11
@ShiqianTao ShiqianTao enabled auto-merge (squash) April 23, 2024 02:20
@ShiqianTao ShiqianTao disabled auto-merge April 23, 2024 02:44
@ShiqianTao ShiqianTao merged commit 1f6497b into master Apr 23, 2024
11 checks passed
@ShiqianTao ShiqianTao deleted the shtao/du-parameter branch April 23, 2024 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
windows cse package The change with this label needs to build a new AKS Windows CSE Scripts Package. windows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants