Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd191472

Browse files
authored
Merge pull request#132891 from vr4manta/driver_node_selection
Added NodeSelectors field to external DriverDefinition
2 parentsf583305 +3636d5b commitd191472

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

‎test/e2e/storage/external/external.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,12 @@ type driverDefinition struct {
152152
// use topology to ensure that pods land on the right node(s).
153153
ClientNodeNamestring
154154

155+
// NodeSelectors is used to specify nodeSelector information for pod deployment
156+
// during the tests. This is beneficial when needing to control placement
157+
// for specialized environments. Most drivers should not need this and
158+
// instead can use topolgy to ensure that pods land on the right node(s).
159+
NodeSelectorsmap[string]string
160+
155161
// Timeouts contains the custom timeouts used during the test execution.
156162
// The values specified here will override the default values specified in
157163
// the framework.TimeoutContext struct.
@@ -493,5 +499,10 @@ func (d *driverDefinition) PrepareTest(ctx context.Context, f *framework.Framewo
493499
e2econfig.ClientNodeSelection.Selector=map[string]string{"kubernetes.io/os":"linux"}
494500
}
495501

502+
// Add all provided nodeSelector settings
503+
forkey,value:=ranged.NodeSelectors {
504+
e2econfig.ClientNodeSelection.Selector[key]=value
505+
}
506+
496507
returne2econfig
497508
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp