-
Notifications
You must be signed in to change notification settings - Fork 431
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
test: remove legacy Windows dockershim templates #2292
test: remove legacy Windows dockershim templates #2292
Conversation
/test pull-cluster-api-provider-azure-e2e-optional |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jsturtevant can confirm but there might also be some possible cleanup around the CNI area? Since Windows containerd tests use calico and we no longer need the special flannel CNI for windows setup
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This brings up an issue if we need to retain the https://github.com/kubernetes-sigs/cluster-api-provider-azure/releases/download/v1.3.0/cluster-template-windows-containerd.yaml or if it can just be renamed to cluster-template-windows.yaml.
templates/flavors/machinepool-windows/machine-pool-deployment-windows.yaml
Show resolved
Hide resolved
984602d
to
8260e48
Compare
@jsturtevant PTAL |
/test pull-cluster-api-provider-azure-e2e-optional |
templates/test/ci/cluster-template-prow-ci-version-windows.yaml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
feels good to be removing these :-)
Yes we can drop the files in https://github.com/kubernetes-sigs/cluster-api-provider-azure/tree/main/templates/addons/windows/flannel as they were only used for dockershim |
8260e48
to
80a6ddb
Compare
@jsturtevant above cleanup tasks (and others discovered during) applied |
/test pull-cluster-api-provider-azure-e2e-optional |
/test pull-cluster-api-provider-azure-windows-containerd-upstream-with-ci-artifacts |
looks like we got it all! 💯 One last open question:
It will be a breaking change to not publish cluster-api-provider-azure/Makefile Lines 564 to 566 in 2a9b44c
Either way we should make sure the release notes are clear this is a breaking change in the release notes. thoughts @jackfrancis @CecileRobertMichon ? |
@jsturtevant I vote we move forward with the template name change. For folks who want to insist on retaining a canonical template under that name going forward, they can refer to an immutable link such as this one: I will update release notes so that it gets a call-out at release time. |
@@ -165,10 +163,6 @@ providers: | |||
targetName: "cluster-template-conformance-presubmit-artifacts.yaml" | |||
- sourcePath: "${PWD}/templates/test/dev/cluster-template-custom-builds.yaml" | |||
targetName: "cluster-template-conformance-presubmit-artifacts-windows-containerd.yaml" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not related to this change but @jsturtevant do you know why we're writing the cluster-template-custom-builds.yaml
template above twice with two different names?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prior to this we needed different templates for windows and so we tacked windows to the end:
cluster-api-provider-azure/test/e2e/conformance_test.go
Lines 125 to 127 in 30bfbb5
if isWindows(kubetestConfigFilePath) { | |
flavor = flavor + "-" + getWindowsFlavor() | |
} |
After this merged we might not need this logic anymore as we can re-use the same templates. I will create an issue to follow up on this after this merges
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -165,10 +163,6 @@ providers: | |||
targetName: "cluster-template-conformance-presubmit-artifacts.yaml" | |||
- sourcePath: "${PWD}/templates/test/dev/cluster-template-custom-builds.yaml" | |||
targetName: "cluster-template-conformance-presubmit-artifacts-windows-containerd.yaml" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not related to this change but @jsturtevant do you know why we're writing the cluster-template-custom-builds.yaml
template above twice with two different names?
- machine-pool-deployment-windows.yaml | ||
|
||
patchesStrategicMerge: | ||
- ../../azure-cluster-identity/azurecluster-identity-ref.yaml | ||
- ../base-windows-containerd/kubeadm-control-plane.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we rename this to just base-windows
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we do this as part of #2315
- machine-pool-deployment-windows.yaml | ||
|
||
patchesStrategicMerge: | ||
- ../../azure-cluster-identity/azurecluster-identity-ref.yaml | ||
- ../base-windows-containerd/kubeadm-control-plane.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we rename this to just base-windows
?
@@ -155,8 +155,6 @@ providers: | |||
targetName: "cluster-template-private.yaml" | |||
- sourcePath: "${PWD}/templates/test/ci/cluster-template-prow-ci-version.yaml" | |||
targetName: "cluster-template-conformance-ci-artifacts.yaml" | |||
- sourcePath: "${PWD}/templates/test/ci/cluster-template-prow-ci-version-windows.yaml" | |||
targetName: "cluster-template-conformance-ci-artifacts-windows.yaml" | |||
- sourcePath: "${PWD}/templates/test/ci/cluster-template-prow-ci-version-windows-containerd-2022.yaml" | |||
targetName: "cluster-template-conformance-ci-artifacts-windows-containerd-2022.yaml" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we also rename cluster-template-prow-ci-version-windows-containerd-2022
to cluster-template-prow-ci-version-windows-2022
?
@@ -155,8 +155,6 @@ providers: | |||
targetName: "cluster-template-private.yaml" | |||
- sourcePath: "${PWD}/templates/test/ci/cluster-template-prow-ci-version.yaml" | |||
targetName: "cluster-template-conformance-ci-artifacts.yaml" | |||
- sourcePath: "${PWD}/templates/test/ci/cluster-template-prow-ci-version-windows.yaml" | |||
targetName: "cluster-template-conformance-ci-artifacts-windows.yaml" | |||
- sourcePath: "${PWD}/templates/test/ci/cluster-template-prow-ci-version-windows-containerd-2022.yaml" | |||
targetName: "cluster-template-conformance-ci-artifacts-windows-containerd-2022.yaml" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we also rename cluster-template-prow-ci-version-windows-containerd-2022
to cluster-template-prow-ci-version-windows-2022
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this will rely on change the logic in the e2e_conformance: #2315
Lets follow up with a separate pr for that?
Ok, I think we are all in agreement |
/lgtm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
thank you @jackfrancis!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: CecileRobertMichon 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:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind cleanup
/kind deprecation
What this PR does / why we need it:
This PR updates the Windows test templates surface area in the following ways:
templates/test/dev/cluster-template-custom-builds.yaml
template still uses the vanilla "windows" template as its base, and we can still benefit by referencing a simple template that includes a WindowsAzureMachineTemplate
for users.Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
Special notes for your reviewer:
Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.
TODOs:
Release note: