Kubectl Change Current Context < 10000+ SAFE >

This is a deep-dive design specification for a proposed kubectl feature: (working title: kubectl change-current-context ).

// 3. Smart Namespace Restoration lastNs := loadLastNamespaceForContext(name) if lastNs != "" config.Contexts[name].Namespace = lastNs kubectl change current context