-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Install CSI driver on openshift-test start. #23560
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
Conversation
0a81093
to
b309828
Compare
cmd/openshift-tests/csi.go
Outdated
) | ||
|
||
// Initialize openshift/csi suite, i.e. define CSI tests from TEST_CSI_DRIVER_FILES. | ||
func initCSITests() error { |
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.
Who calls this?
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.
It's called from initProvider
:
origin/cmd/openshift-tests/openshift-tests.go
Lines 277 to 286 in d88cc07
func initProvider(provider string, dryRun bool) error { | |
// record the exit error to the output file | |
if err := decodeProviderTo(provider, exutil.TestContext); err != nil { | |
return err | |
} | |
exutil.TestContext.AllowedNotReadyNodes = 100 | |
exutil.TestContext.MaxNodesToGather = 0 | |
reale2e.SetViperConfig(os.Getenv("VIPERCONFIG")) | |
if err := initCSITests(); err != nil { |
e9ab2f4
to
332befd
Compare
/hold cancel |
/retest |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jsafrane, smarterclayton, tsmetana 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 |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest |
@jsafrane: 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. |
/retest |
Goal: create a prow job that tests CSI sidecars shipped as part of OCP / OKD. In the future, use the same approach to test CSI drivers too.
There are 6 CSI sidecars in total (and the number is growing), so to simplify job definition in each repostory, I embedded AWS EBS driver yaml files into openshift-tests.
Prow configs for each sidecar repo would then contain something like this:
Env. variables are the easiest to pass between parent openshift-test and child openshift-test processes. It's a bit hacky though. I tried command line arguments, you can find the unsuccessful attempt in the commits in this PR.
The architecture is open for multiple CSI drivers, we will ship drivers for all clouds that we support eventually. In addition, we can easily replace yaml files with CSI drivers with CRs for an operator that installs CSI drivers, when we have them.
Future direction:
/assign @smarterclayton