Co-authored-by: Aleksei Romanenko <alex.romanenko@linkup.com>mine
parent
66c22f1c6f
commit
56c898fcb0
|
|
@ -75,6 +75,7 @@ func (c *Config) SwitchContext(name string) error {
|
|||
flags := genericclioptions.NewConfigFlags(UsePersistentConfig)
|
||||
flags.Context = &name
|
||||
flags.Timeout = c.flags.Timeout
|
||||
flags.KubeConfig = c.flags.KubeConfig
|
||||
c.flags = flags
|
||||
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Reference in New Issue