Skip to content

Commit 00af731

Browse files
Merge pull request #30371 from rioliu-rh/run-oc-wo-kubeconfig
NO-JIRA: implement WithoutKubeconf method to clear config path
2 parents 02464a4 + 6f52660 commit 00af731

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/extended/util/util_otp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func (c *CLI) GuestConfig() *rest.Config {
6363
// WithoutKubeconf simulates running commands without kubeconfig - OTP compatibility
6464
// This is a no-op in origin but needed for OTP compatibility
6565
func (c *CLI) WithoutKubeconf() *CLI {
66-
// OTP expects this method but origin doesn't need special handling
66+
c.configPath = ""
6767
return c
6868
}
6969

0 commit comments

Comments
 (0)