mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Dumbed down version of providing a separate IP range for each cluster in the federation.
This commit is contained in:
		@@ -30,15 +30,18 @@ source "${KUBE_ROOT}/cluster/kube-util.sh"
 | 
				
			|||||||
prepare-e2e
 | 
					prepare-e2e
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [[ "${FEDERATION:-}" == "true" ]]; then
 | 
					if [[ "${FEDERATION:-}" == "true" ]]; then
 | 
				
			||||||
 | 
					    cur_ip_octet2=180
 | 
				
			||||||
    # TODO(colhom): the last cluster that was created in the loop above is the current context.
 | 
					    # TODO(colhom): the last cluster that was created in the loop above is the current context.
 | 
				
			||||||
    # Hence, it will be the cluster that hosts the federated components.
 | 
					    # Hence, it will be the cluster that hosts the federated components.
 | 
				
			||||||
    # In the future, we will want to loop through the all the federated contexts,
 | 
					    # In the future, we will want to loop through the all the federated contexts,
 | 
				
			||||||
    # select each one and call federated-up
 | 
					    # select each one and call federated-up
 | 
				
			||||||
    for zone in ${E2E_ZONES};do
 | 
					    for zone in ${E2E_ZONES};do
 | 
				
			||||||
        (
 | 
					        (
 | 
				
			||||||
 | 
					        export CLUSTER_IP_RANGE="10.${cur_ip_octet2}.0.0/16"
 | 
				
			||||||
        set-federation-zone-vars "$zone"
 | 
					        set-federation-zone-vars "$zone"
 | 
				
			||||||
        test-setup
 | 
					        test-setup
 | 
				
			||||||
        )
 | 
					        )
 | 
				
			||||||
 | 
					        cur_ip_octet2="$((cur_ip_octet2 + 1))"
 | 
				
			||||||
    done
 | 
					    done
 | 
				
			||||||
    tagfile="${KUBE_ROOT}/federation/manifests/federated-image.tag"
 | 
					    tagfile="${KUBE_ROOT}/federation/manifests/federated-image.tag"
 | 
				
			||||||
    if [[ ! -f "$tagfile" ]]; then
 | 
					    if [[ ! -f "$tagfile" ]]; then
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user