-
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
Add Flatcar Container Linux template #2890
Add Flatcar Container Linux template #2890
Conversation
/test pull-cluster-api-provider-azure-e2e-optional |
/test pull-cluster-api-provider-azure-e2e-optional Now the workaround for kubernetes-sigs/cluster-api#7679 should work properly. |
Creating cluster with the template works fine for me locally, so I'm debugging e2e tests locally to figure out what's wrong. |
It should work now, I added Calico configs back. /test pull-cluster-api-provider-azure-e2e-optional |
/test pull-cluster-api-provider-azure-e2e-optional Updated to not validate Calico stuff in e2e tests. |
both failures seem like flakes, can you please squash before we rerun? |
Odd, Flatcar test now has failed with an I/O timeout... Restarted it. https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_cluster-api-provider-azure/2890/pull-cluster-api-provider-azure-e2e-optional/1598781490357866496 |
@invidian quick reminder that the 1.7 release is scheduled for next week, in case this is near ready and we want to include it in that release! |
@jackfrancis thanks for the ping, but from my side, this is ready to ship (since long time) 😄 So please let me know how should I proceed with remaining unresolved conversations or what else is missing for this to be merged and I will work on it to get it done for next week. I didn't poke you or joined community meeting to mention this given Christmas break. And I was actually planning to do so next week :) |
/retest |
/check-cla |
/retest |
Escaping by hand with replace is just wrong and will not work in many cases. shlex should take care of this. Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>
I'm not even sure how this could work previously, as envsubst works only with environment variables, not with shell variables. Perhaps cd4342a broke it by moving CLUSTER_NAME from Tilt-based substitutions to envsubst. In any case, exporting CLUSTER_NAME makes envsubst properly populate resource names, which fixes the problem. Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>
This commit adds end-user templates and e2e tests for clusters using Flatcar Container Linux. Based-on-work-by: Jeremi Piotrowski <jpiotrowski@microsoft.com> Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>
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
Code and recent Tiltfile changes look good, and I re-tested Flatcar in make tilt-up
with the latest commits.
LGTM label has been added. Git tree hash: 00aa0e1c1fe51b6648782068d992420df24c8a94
|
/lgtm Hold to wait for optional job with Flatcar to pass |
[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 |
Thanks for approving @CecileRobertMichon! Do you think we could backport this PR to v1.7.x branch, so users don't have to wait for v1.8.0? |
This would not qualify as cherry-pick as we only backport bug fixes, test improvements, and CVE-related dependency bumps. However, it's only a matter of users using the template right? I don't think anything in this PR adds CPAZ support (aside from Tilt and tests), so I nothing prevents a user from starting to use this today? |
Yes, this is just a matter of adding the Flatcar template, so |
@invidian: The following test 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. |
/test pull-cluster-api-provider-azure-e2e-optional Flatcar passed on the previous run but dual-stack failed with a network timeout. |
IMO we shouldn't backport any of it, even the template as it's adding brand-new functionality, not fixing an existing one. Not backporting it also gives us a month to run the new test so we know the template is stable before we release it as an official "flavor" asset. If anyone really can't wait a month for our planned v1.8.0 release date (March 7th) to use this, they can always do |
/unhold Optional tests passed now.
Sure, make sense. I was just curious. |
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR adds a cluster template for Flatcar Container Linux based clusters.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Reopening #1729.
Related to #629
Special notes for your reviewer:
CC @jepio
For more context on why #1729 hasn't been merged for so long, we were waiting until flatcar/Flatcar#734 gets resolved, so we have a Azure Community Image Gallery with testing reference Flatcar images which can be reliably used in CAPZ e2e tests. We have now created the gallery which is used in this PR (
flatcar4capi-742ef0cb-dcaa-4ecb-9cb0-bfd2e43dccc0
) and we will provide there at least images required for keeping the CI green here. Over time, we plan to automate the publishing process so we will provide images for Flatcar and Kubernetes releases.TODOs:
Release note: