Fix GCE IP Aliases CI https://k8s-testgrid.appspot.com/google-gce#gci-gce-ip-alias failure cause by pull #56132.
This commit is contained in:
		@@ -291,14 +291,19 @@ ENABLE_RESCHEDULER="${KUBE_ENABLE_RESCHEDULER:-true}"
 | 
				
			|||||||
# IP_ALIAS_SUBNETWORK is the subnetwork to allocate from. If empty, a
 | 
					# IP_ALIAS_SUBNETWORK is the subnetwork to allocate from. If empty, a
 | 
				
			||||||
#   new subnetwork will be created for the cluster.
 | 
					#   new subnetwork will be created for the cluster.
 | 
				
			||||||
ENABLE_IP_ALIASES=${KUBE_GCE_ENABLE_IP_ALIASES:-false}
 | 
					ENABLE_IP_ALIASES=${KUBE_GCE_ENABLE_IP_ALIASES:-false}
 | 
				
			||||||
 | 
					NODE_IPAM_MODE=${KUBE_GCE_NODE_IPAM_MODE:-RangeAllocator}
 | 
				
			||||||
if [ ${ENABLE_IP_ALIASES} = true ]; then
 | 
					if [ ${ENABLE_IP_ALIASES} = true ]; then
 | 
				
			||||||
  # Size of ranges allocated to each node. gcloud current supports only /32 and /24.
 | 
					  # Size of ranges allocated to each node. gcloud current supports only /32 and /24.
 | 
				
			||||||
  IP_ALIAS_SIZE=${KUBE_GCE_IP_ALIAS_SIZE:-/24}
 | 
					  IP_ALIAS_SIZE=${KUBE_GCE_IP_ALIAS_SIZE:-/24}
 | 
				
			||||||
  IP_ALIAS_SUBNETWORK=${KUBE_GCE_IP_ALIAS_SUBNETWORK:-${INSTANCE_PREFIX}-subnet-default}
 | 
					  IP_ALIAS_SUBNETWORK=${KUBE_GCE_IP_ALIAS_SUBNETWORK:-${INSTANCE_PREFIX}-subnet-default}
 | 
				
			||||||
  # Reserve the services IP space to avoid being allocated for other GCP resources.
 | 
					  # Reserve the services IP space to avoid being allocated for other GCP resources.
 | 
				
			||||||
  SERVICE_CLUSTER_IP_SUBNETWORK=${KUBE_GCE_SERVICE_CLUSTER_IP_SUBNETWORK:-${INSTANCE_PREFIX}-subnet-services}
 | 
					  SERVICE_CLUSTER_IP_SUBNETWORK=${KUBE_GCE_SERVICE_CLUSTER_IP_SUBNETWORK:-${INSTANCE_PREFIX}-subnet-services}
 | 
				
			||||||
 | 
					  NODE_IPAM_MODE=${KUBE_GCE_NODE_IPAM_MODE:-CloudAllocator}
 | 
				
			||||||
 | 
					  SECONDARY_RANGE_NAME=${SECONDARY_RANGE_NAME:-}
 | 
				
			||||||
  # Add to the provider custom variables.
 | 
					  # Add to the provider custom variables.
 | 
				
			||||||
  PROVIDER_VARS="${PROVIDER_VARS:-} ENABLE_IP_ALIASES"
 | 
					  PROVIDER_VARS="${PROVIDER_VARS:-} ENABLE_IP_ALIASES"
 | 
				
			||||||
 | 
					  PROVIDER_VARS="${PROVIDER_VARS:-} NODE_IPAM_MODE"
 | 
				
			||||||
 | 
					  PROVIDER_VARS="${PROVIDER_VARS:-} SECONDARY_RANGE_NAME"
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Enable GCE Alpha features.
 | 
					# Enable GCE Alpha features.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user