Skip to content

Commit 547bcd8

Browse files
authored
Fix for export function
export function will now properly export currentContext
2 parents fbd7043 + aa5bb1d commit 547bcd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/kubeconfig/construct.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func Construct(ctx string, cfg *api.Config) (*api.Config, error) {
2020
} else {
2121
c.APIVersion = cfg.APIVersion
2222
c.Kind = cfg.Kind
23-
c.CurrentContext = cfg.CurrentContext
23+
c.CurrentContext = ctx
2424
c.Extensions = cfg.Extensions
2525
c.Preferences = cfg.Preferences
2626
c.Contexts[ctx] = ctd

0 commit comments

Comments
 (0)