Skip to content

Commit 6f52660

Browse files
committed
feat: implement WithoutKubeconf method to clear config path
The WithoutKubeconf method was previously a no-op but now properly clears the configPath field to ensure OTP compatibility. This change makes the method functional by actually removing kubeconfig references when called, aligning with OTP's expected behavior.
1 parent 1f4638c commit 6f52660

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)