mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	fix the newconfig.yaml in test-cmd.sh
This commit is contained in:
		@@ -1849,7 +1849,7 @@ __EOF__
 | 
			
		||||
 | 
			
		||||
  # test invalid config
 | 
			
		||||
  kubectl config view | sed -E "s/apiVersion: .*/apiVersion: v-1/g" > "${TMPDIR:-/tmp}"/newconfig.yaml
 | 
			
		||||
  output_message=$(! "${KUBE_OUTPUT_HOSTBIN}/kubectl" get pods --context="" --user="" --kubeconfig=/tmp/newconfig.yaml 2>&1)
 | 
			
		||||
  output_message=$(! "${KUBE_OUTPUT_HOSTBIN}/kubectl" get pods --context="" --user="" --kubeconfig="${TMPDIR:-/tmp}"/newconfig.yaml 2>&1)
 | 
			
		||||
  kube::test::if_has_string "${output_message}" "Error loading config file"
 | 
			
		||||
 | 
			
		||||
  output_message=$(! kubectl get pod --kubeconfig=missing-config 2>&1)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user