-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
🏃 [e2e] clusterctl e2e config #2819
🏃 [e2e] clusterctl e2e config #2819
Conversation
/assign @vincepri |
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.
/approve
/assign @sedefsavas
/milestone v0.3.4
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fabriziopandini, vincepri 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 |
|
||
"github.com/pkg/errors" | ||
clusterctlv1 "sigs.k8s.io/cluster-api/cmd/clusterctl/api/v1alpha3" | ||
clusterctlconfig "sigs.k8s.io/cluster-api/cmd/clusterctl/client/config" |
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.
May want to rename this as there is a clusterctlConfig
type in test/framework/clusterctl/clusterctl_config.go
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 is an import from the clusterctl library, so the name makes sense for me because it uses the same root of e.g. clusterctlv1. Instead IMO everything under test/framework/clusterctl
should be reported as testclusterctl
, but this is not the case.
But if you have a better suggestion happy to change this
reviewing |
Values map[string]interface{} | ||
} | ||
|
||
// providerConfig mirrors the clusterctl config.Provider interface and allows serialization of the corresponding info into a clusterctl config file. |
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.
Since it should mirror the interface should we do something like var _ config.Provider = &providerConfig{}
as a check.
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 should not work, because the interface implements methods, while here we are required to implement Field to get serialization to work
@wfernandes @sedefsavas thanks for the feedback! |
/lgtm |
What this PR does / why we need it:
This PR extends the e2e framework by adding support for a configuration file designed for e2e tests based on clusterctl/ready to run on different infrastructure providers.
The PR includes also a utility for creating a local clusterctl repository that contains the providers defined in the e2e configuration and a clusterctl config file to make clusterctl to use this repository.
Most notably:
Which issue(s) this PR fixes:
xref #2753
xref #2637
xref #2636