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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃尡 Enable experimental features in e2e testing #787
Conversation
/hold I'm cleaning up some of the extraneous flags and code to replace flags. |
I'm not sure kubernetes-sigs/cluster-api#3325 made it in the rc-1 release so you might not be able to use this yet |
@CecileRobertMichon, great eyes! I opened up #788 to help address that. I'll rebase this on master after #788 is pulled in.
|
@@ -387,18 +383,12 @@ create-management-cluster: $(KUSTOMIZE) $(ENVSUBST) | |||
kubectl wait --for=condition=Available --timeout=5m apiservice v1beta1.webhook.cert-manager.io | |||
|
|||
# Deploy CAPI | |||
kubectl apply -f https://github.com/kubernetes-sigs/cluster-api/releases/download/v0.3.7/cluster-api-components.yaml | |||
curl -sSL https://github.com/kubernetes-sigs/cluster-api/releases/download/v0.3.7/cluster-api-components.yaml | $(ENVSUBST) | kubectl apply -f - |
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.
Now that envsubst is called, if ENV vars are set (EXP_MACHINE_POOL=true, etc) the flags will be set to true.
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.
fyi @detiber @randomvariable you probably need to do the same in CAPA/CAPV
/hold there is some discussion around possibly reverting the CAPI commit because of kubernetes-sigs/cluster-api#3339 |
ok nvm we are not reverting /hold cancel |
@@ -0,0 +1 @@ | |||
templates |
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 stops tilt from doing a full rebuild when a flavor is triggered.
/hold for a little bit more testing locally |
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
[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 |
Looking good, but ran into a bug when testing templates (#791). I'll follow up with a fix. EXP_MACHINE_POOL=true EXP_AKS=true make tilt-up |
/hold cancel |
What this PR does / why we need it:
The current E2E tests do not enable experimental features. This PR enables ENV var substitution for known feature flags and populates env vars for the E2E tests with true, enabling the features.
related: kubernetes-sigs/cluster-api#3325
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: