mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-11-04 07:49:35 +00:00 
			
		
		
		
	Merge pull request #78 from jbeda/gcloud-fix
Fix up version string for gcloud compute version.
This commit is contained in:
		@@ -96,9 +96,9 @@ for (( i=0; i<${#MINION_NAMES[@]}; i++)); do
 | 
				
			|||||||
    --can-ip-forward \
 | 
					    --can-ip-forward \
 | 
				
			||||||
    --metadata-from-file startup-script=${KUBE_TEMP}/minion-start-${i}.sh &
 | 
					    --metadata-from-file startup-script=${KUBE_TEMP}/minion-start-${i}.sh &
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # 'gcloud compute' past 2014.06.08 breaks the way we are specifying
 | 
					  # 'gcloud compute' past 2014.06.11 breaks the way we are specifying
 | 
				
			||||||
  # --next-hop-instance and there is no way to be compatible with both versions.
 | 
					  # --next-hop-instance and there is no way to be compatible with both versions.
 | 
				
			||||||
  if [[ $GCLOUD_VERSION < "2014.06.08" ]]; then
 | 
					  if [[ $GCLOUD_VERSION < "2014.06.11" ]]; then
 | 
				
			||||||
    gcloud compute routes create ${MINION_NAMES[$i]} \
 | 
					    gcloud compute routes create ${MINION_NAMES[$i]} \
 | 
				
			||||||
      --project ${PROJECT} \
 | 
					      --project ${PROJECT} \
 | 
				
			||||||
      --destination-range ${MINION_IP_RANGES[$i]} \
 | 
					      --destination-range ${MINION_IP_RANGES[$i]} \
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user