Skip to content

Commit

Permalink
Merge pull request kubernetes#381 from yugui/feature/api-scope
Browse files Browse the repository at this point in the history
Allows adding custom api scopes to service accounts available in minions.
  • Loading branch information
brendandburns committed Jul 9, 2014
2 parents 9408bd7 + cf9ee4d commit 4b6ff69
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions cluster/config-default.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=""
2 changes: 1 addition & 1 deletion cluster/config-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=""
2 changes: 1 addition & 1 deletion cluster/kube-up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 &
Expand Down

0 comments on commit 4b6ff69

Please sign in to comment.