mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Allows adding custom api scopes to service accounts available in
minions.
This commit is contained in:
		@@ -28,3 +28,4 @@ MASTER_TAG="${INSTANCE_PREFIX}-master"
 | 
			
		||||
MINION_TAG="${INSTANCE_PREFIX}-minion"
 | 
			
		||||
MINION_NAMES=($(eval echo ${INSTANCE_PREFIX}-minion-{1..${NUM_MINIONS}}))
 | 
			
		||||
MINION_IP_RANGES=($(eval echo "10.244.{1..${NUM_MINIONS}}.0/24"))
 | 
			
		||||
MINION_SCOPES=""
 | 
			
		||||
 
 | 
			
		||||
@@ -28,4 +28,4 @@ MASTER_TAG="${INSTANCE_PREFIX}-master"
 | 
			
		||||
MINION_TAG="${INSTANCE_PREFIX}-minion"
 | 
			
		||||
MINION_NAMES=($(eval echo ${INSTANCE_PREFIX}-minion-{1..${NUM_MINIONS}}))
 | 
			
		||||
MINION_IP_RANGES=($(eval echo "10.245.{1..${NUM_MINIONS}}.0/24"))
 | 
			
		||||
 | 
			
		||||
MINION_SCOPES=""
 | 
			
		||||
 
 | 
			
		||||
@@ -95,7 +95,7 @@ for (( i=0; i<${#MINION_NAMES[@]}; i++)); do
 | 
			
		||||
    --image ${IMAGE} \
 | 
			
		||||
    --tags ${MINION_TAG} \
 | 
			
		||||
    --network ${NETWORK} \
 | 
			
		||||
    --service_account_scopes="" \
 | 
			
		||||
    --service_account_scopes=${MINION_SCOPES} \
 | 
			
		||||
    --automatic_restart \
 | 
			
		||||
    --can_ip_forward \
 | 
			
		||||
    --metadata_from_file startup-script:${KUBE_TEMP}/minion-start-${i}.sh &
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user