Skip to content

Commit

Permalink
Fix #1636: can't switch context with --kubeconfig flag (#1638)
Browse files Browse the repository at this point in the history
Co-authored-by: Aleksei Romanenko <alex.romanenko@linkup.com>
  • Loading branch information
slimus and slimus authored Jul 7, 2022
1 parent 66c22f1 commit 56c898f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/client/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 56c898f

Please sign in to comment.