mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Merge pull request #48340 from superbrothers/completions-config-rename-context
Automatic merge from submit-queue (batch tested with PRs 55268, 55282, 55419, 48340, 54829). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Support completions for kubectl config rename-context **What this PR does / why we need it**: With this PR, kubectl config rename-context supports completion for current context. ``` $ kubectl config rename-context <tab> cluster01 minikube ``` **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: **Release note**: ```release-note Support completion for kubectl config rename-context ```
This commit is contained in:
		@@ -188,7 +188,7 @@ __custom_func() {
 | 
			
		||||
            __kubectl_get_resource_node
 | 
			
		||||
            return
 | 
			
		||||
            ;;
 | 
			
		||||
        kubectl_config_use-context)
 | 
			
		||||
        kubectl_config_use-context | kubectl_config_rename-context)
 | 
			
		||||
            __kubectl_config_get_contexts
 | 
			
		||||
            return
 | 
			
		||||
            ;;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user