Skip to content

Commit

Permalink
Fix derailed#1636: can't switch context with --kubeconfig flag (derai…
Browse files Browse the repository at this point in the history
…led#1638)

Co-authored-by: Aleksei Romanenko <alex.romanenko@linkup.com>
  • Loading branch information
slimus and slimus authored Jul 7, 2022
1 parent d6d05f0 commit f0dd0b8
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 f0dd0b8

Please sign in to comment.