-
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
Templates and E2E tests use external cloud-provider-azure by default #1994
Templates and E2E tests use external cloud-provider-azure by default #1994
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
83caeae
to
fa92afa
Compare
/retest |
fa92afa
to
7621099
Compare
7621099
to
b149c16
Compare
1b4bd2a
to
1b01e01
Compare
1b01e01
to
d000940
Compare
d000940
to
4e6fc6d
Compare
/retest |
/retest |
4e6fc6d
to
edb48c4
Compare
@jackfrancis can we get a template with an out-of-tree cloud provider + multiple VMSS? |
@nilo19 Sure, we can do that, would be best to do that in a follow-up PR. Can you create an issue describing the multiple VMSS scenario in more detail and assign it to me? |
/retest |
e4dd633
to
e21ffb0
Compare
@CecileRobertMichon docs updated and ready for review/feedback (also PR description updated) |
I noticed this PR isn't updating https://github.com/kubernetes-sigs/cluster-api-provider-azure/tree/main/test/e2e/data/infrastructure-azure which is used to run the CAPI test suite on CAPZ clusters (to cover various lifecycle management scenarios, nothing Azure specific). It might make sense to also update those. We can either do it now or open an issue to follow up and update them. side note: we really need to refactor CAPZ test templates to make it easier to follow, there are too many templates in too many places |
/hold let's merge this next week to limit impact since it might disrupt k8s tests |
/test pull-cluster-api-provider-azure-apiversion-upgrade |
/retest |
1 similar comment
/retest |
name: cloud-controller-manager | ||
--- | ||
apiVersion: v1 | ||
kind: Pod |
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.
@jackfrancis confirmed with @feiskyer we shouldn't use a Pod
here as you had pointed out before. Can you please change this and the other cloud-provider manifests to use Deployments?
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.
Great, will do.
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.
Here's the update to sample manifests for reference: kubernetes-sigs/cloud-provider-azure#1252
e21ffb0
to
06ce3bb
Compare
@jackfrancis: The following tests failed, say
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. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/retest |
/test pull-cluster-api-provider-azure-apiversion-upgrade |
/test pull-cluster-api-provider-azure-e2e-exp |
/retest |
apiVersion: apps/v1 | ||
kind: DaemonSet | ||
metadata: | ||
name: cloud-node-manager |
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 cloud-node-manager doesn't include the windows DS. Is windows working without it?
The windows deamon set is provided in the examples: https://github.com/kubernetes-sigs/cloud-provider-azure/blob/66e1bec130df801212310a14bedae737fefd042e/examples/out-of-tree/cloud-node-manager.yaml#L102-L108)
I think it will be required for all of the Windows functionality to work. @pengfi might know?
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.
No, windows should also have a daemonset
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.
seems like all the windows tests are passing. Feels like we are missing a test to that would catch this missing deamon set. What is some of the functionality that we could test that makes sense from capz perspective?
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 was missed because our out tree cloud provider test doesn't run against windows nodes: #2209 (comment)
It("with a 1 control plane nodes and 2 worker nodes", func() { |
@jackfrancis: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Hello @jackfrancis, how much effort left for this PR? I feel like it is almost finished. |
@lzhecheng thank you for your patience I think it's fair to say that at this point we don't plan to merge this PR as-is. tl;dr we are going a different approach:
@CecileRobertMichon agree that we should close this PR so that other folks aren't confused? |
@jackfrancis agreed let's merge #2209 first /close |
@CecileRobertMichon: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What type of PR is this?
What this PR does / why we need it:
Derived from #1889
This PR re-orients test and reference templates so that external cloud-provider-azure is the "default" for all other templates, and that "in-tree" cloud-provider-azure configuration is only tested when that specific scenario is required.
The reason for this is twofold:
As a result of the complexity of the years-long transition away from in-tree (i.e., cloud provider bits being tightly coupled to Kubernetes versions and delivered in common with Kubernetes versions) cloud-provider-azure there are now material differences in the actual cloud-provider-azure runtime that is used depending on whether or not you are using in-tree or external cloud-provider-azure. The differences can be summarized most simply thusly: the external cloud-provider-azure is more stable (more frequently tested, more confirmed fixes actually included).
For the above reasons, we want to make it easier to rapidly test capz against external cloud-provider-azure, and to encourage capz users to create clusters running the external cloud-provider-azure components.
An important note for capz users: the capz reference templates use the experimental cluster-api
ClusterResourceSet
CRD. In order to useClusterResourceSet
resources in your capz templates, you must enable that feature flag in your cluster-api environment (management cluster).Reference:
An example of how to enable
ClusterResourceSet
on your cluster-api management cluster is here: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: