We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 944a33e + 1f8ee74 commit 2108639Copy full SHA for 2108639
1 file changed
test/extended/util/util_otp.go
@@ -243,9 +243,12 @@ func (c *CLI) AsGuestKubeconf() *CLI {
243
// Create a copy of the CLI with guest kubeconfig enabled
244
copy := *c
245
// In OTP this sets a flag and uses guestConfigPath
246
- // We'll use the guestConfigPath as the configPath
+ // 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
248
if c.guestConfigPath != "" {
249
copy.configPath = c.guestConfigPath
250
+ copy.adminConfigPath = c.guestConfigPath
251
+ copy.withoutNamespace = true
252
}
253
return ©
254
0 commit comments