Skip to content

Commit 2108639

Browse files
Merge pull request #30721 from Phaow/hotfix
STOR-2838: fix OTP AsGuestKubeconf
2 parents 944a33e + 1f8ee74 commit 2108639

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

test/extended/util/util_otp.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,12 @@ func (c *CLI) AsGuestKubeconf() *CLI {
243243
// Create a copy of the CLI with guest kubeconfig enabled
244244
copy := *c
245245
// In OTP this sets a flag and uses guestConfigPath
246-
// We'll use the guestConfigPath as the configPath
246+
// We'll use the guestConfigPath as the configPath and adminConfigPath to simulate guest kubeconfig usage
247+
// We'll also set withoutNamespace to true to comply with OTP behavior: https://github.com/openshift/openshift-tests-private/pull/3841
247248
if c.guestConfigPath != "" {
248249
copy.configPath = c.guestConfigPath
250+
copy.adminConfigPath = c.guestConfigPath
251+
copy.withoutNamespace = true
249252
}
250253
return &copy
251254
}

0 commit comments

Comments
 (0)