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

draft: add file and test for file #5995

Open
wants to merge 53 commits into
base: master
Choose a base branch
from

Conversation

timmy-wright
Copy link
Contributor

What type of PR is this?

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Requirements:

Special notes for your reviewer:

Release note:

none

Copy link
Contributor

github-actions bot commented Mar 6, 2025

No changes to cached containers or packages on Windows VHDs

@@ -903,6 +903,9 @@ try
Clear-TempFolder
Log-VHDFreeSize
Test-AzureExtensions

Write-Output "creating test.txt file"
Write-Output "this is a test file" > "c:\k\test.txt"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reminder to Tim: I have to remove this once I've tested the e2e tests are running against the right VHDs.

@@ -25,6 +25,7 @@ func Test_Windows2019Containerd(t *testing.T) {
ValidateFileHasContent(ctx, s, "/k/kubeletstart.ps1", "--container-runtime=remote")
ValidateWindowsProcessHasCliArguments(ctx, s, "kubelet.exe", []string{"--rotate-certificates=true", "--client-ca-file=c:\\k\\ca.crt"})
ValidateCiliumIsNotRunningWindows(ctx, s)
ValidateFileHasContent(ctx, s, "/k/test.txt", "this is a test file")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are currently here to check the e2e tests are being run with the right VHD version. They will be removed before I merge the PR.

e2e/vmss.go Outdated
s.T.Logf("vhd rgr id %s", nodeBootstrapping.SigImageConfig.ResourceGroup)
s.T.Logf("vhd galler %s", nodeBootstrapping.SigImageConfig.Gallery)
s.T.Logf("vhd versio %s", nodeBootstrapping.SigImageConfig.Version)
s.T.Logf("vhd defini %s", nodeBootstrapping.SigImageConfig.Definition)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reminder: remove these logs.

Copy link
Contributor

github-actions bot commented Apr 1, 2025

Changes cached containers or packages on windows VHDs

diff --git a/vhd_files/2019-containerd.txt b/vhd_files/2019-containerd.txt
index dd5c3f0..6a380ad 100644
--- a/vhd_files/2019-containerd.txt
+++ b/vhd_files/2019-containerd.txt
@@ -52 +51,0 @@
-  "mcr.microsoft.com/azuremonitor/containerinsights/ciprod:win-3.1.25",
@@ -56 +54,0 @@
-  "mcr.microsoft.com/containernetworking/azure-cns:v1.4.59",
@@ -87,2 +85 @@
-  "mcr.microsoft.com/windows/nanoserver:1809",
-  "mcr.microsoft.com/windows/servercore:ltsc2019"
+  "mcr.microsoft.com/windows/nanoserver:1809"
diff --git a/vhd_files/2022-containerd-gen2.txt b/vhd_files/2022-containerd-gen2.txt
index a991c38..8fffb41 100644
--- a/vhd_files/2022-containerd-gen2.txt
+++ b/vhd_files/2022-containerd-gen2.txt
@@ -91 +90,0 @@
-  "mcr.microsoft.com/azuremonitor/containerinsights/ciprod:win-3.1.25",
@@ -95 +93,0 @@
-  "mcr.microsoft.com/containernetworking/azure-cns:v1.4.59",
@@ -126,3 +124 @@
-  "mcr.microsoft.com/windows/nanoserver:ltsc2022",
-  "mcr.microsoft.com/windows/servercore:ltsc2022",
-  "mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2022"
+  "mcr.microsoft.com/windows/nanoserver:ltsc2022"
diff --git a/vhd_files/2022-containerd.txt b/vhd_files/2022-containerd.txt
index 7f783e4..dde274a 100644
--- a/vhd_files/2022-containerd.txt
+++ b/vhd_files/2022-containerd.txt
@@ -91 +90,0 @@
-  "mcr.microsoft.com/azuremonitor/containerinsights/ciprod:win-3.1.25",
@@ -95 +93,0 @@
-  "mcr.microsoft.com/containernetworking/azure-cns:v1.4.59",
@@ -126,3 +124 @@
-  "mcr.microsoft.com/windows/nanoserver:ltsc2022",
-  "mcr.microsoft.com/windows/servercore:ltsc2022",
-  "mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2022"
+  "mcr.microsoft.com/windows/nanoserver:ltsc2022"
diff --git a/vhd_files/2025-gen2.txt b/vhd_files/2025-gen2.txt
index 3ae1bb6..64d601a 100644
--- a/vhd_files/2025-gen2.txt
+++ b/vhd_files/2025-gen2.txt
@@ -36 +35,0 @@
-  "mcr.microsoft.com/containernetworking/azure-cns:v1.4.59",
@@ -67,2 +66 @@
-  "mcr.microsoft.com/windows/nanoserver:ltsc2022",
-  "mcr.microsoft.com/windows/servercore:ltsc2022"
+  "mcr.microsoft.com/windows/nanoserver:ltsc2022"
diff --git a/vhd_files/2025.txt b/vhd_files/2025.txt
index 1f772e4..2a62f93 100644
--- a/vhd_files/2025.txt
+++ b/vhd_files/2025.txt
@@ -36 +35,0 @@
-  "mcr.microsoft.com/containernetworking/azure-cns:v1.4.59",
@@ -67,2 +66 @@
-  "mcr.microsoft.com/windows/nanoserver:ltsc2022",
-  "mcr.microsoft.com/windows/servercore:ltsc2022"
+  "mcr.microsoft.com/windows/nanoserver:ltsc2022"
diff --git a/vhd_files/23H2-gen2.txt b/vhd_files/23H2-gen2.txt
index 80a110c..9605b60 100644
--- a/vhd_files/23H2-gen2.txt
+++ b/vhd_files/23H2-gen2.txt
@@ -42 +41,0 @@
-  "mcr.microsoft.com/containernetworking/azure-cns:v1.4.59",
@@ -73,3 +72 @@
-  "mcr.microsoft.com/windows/nanoserver:ltsc2022",
-  "mcr.microsoft.com/windows/servercore:ltsc2022",
-  "mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2022"
+  "mcr.microsoft.com/windows/nanoserver:ltsc2022"
diff --git a/vhd_files/23H2.txt b/vhd_files/23H2.txt
index c77975d..1c3f03c 100644
--- a/vhd_files/23H2.txt
+++ b/vhd_files/23H2.txt
@@ -42 +41,0 @@
-  "mcr.microsoft.com/containernetworking/azure-cns:v1.4.59",
@@ -73,3 +72 @@
-  "mcr.microsoft.com/windows/nanoserver:ltsc2022",
-  "mcr.microsoft.com/windows/servercore:ltsc2022",
-  "mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2022"
+  "mcr.microsoft.com/windows/nanoserver:ltsc2022"

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

Successfully merging this pull request may close these issues.

1 participant