File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ func (factory *Factory) ensureHAFdbClusterExists(
168
168
},
169
169
}
170
170
171
- namespaces := factory .MultipleNamespaces (dcIDs )
171
+ namespaces := factory .MultipleNamespaces (config , dcIDs )
172
172
log .Printf ("ensureHAFDBClusterExists namespaces=%s" , namespaces )
173
173
174
174
newConfig := config .Copy ()
Original file line number Diff line number Diff line change @@ -47,8 +47,13 @@ func (factory *Factory) getRandomizedNamespaceName() string {
47
47
}
48
48
49
49
// MultipleNamespaces creates multiple namespaces for HA testing.
50
- func (factory * Factory ) MultipleNamespaces (dcIDs []string ) []string {
51
- factory .options .namespace = factory .getRandomizedNamespaceName ()
50
+ func (factory * Factory ) MultipleNamespaces (config * ClusterConfig , dcIDs []string ) []string {
51
+ // If a namespace is provided in the config we will use this name as prefix.
52
+ if config .Namespace != "" {
53
+ factory .options .namespace = config .Namespace
54
+ } else {
55
+ factory .options .namespace = factory .getRandomizedNamespaceName ()
56
+ }
52
57
53
58
res := make ([]string , len (dcIDs ))
54
59
for idx , dcID := range dcIDs {
You can’t perform that action at this time.
0 commit comments