Skip to content

Commit

Permalink
Merge pull request #29475 from cjcullen/customuser
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue

export KUBE_USER to salt (support custom usernames) for vagrant, vsph…

GCE/GKE were handled in #29164, AWS was handled in #29428. This should cover the rest of the configurations that use ABAC.
  • Loading branch information
k8s-merge-robot authored Jul 23, 2016
2 parents d525d53 + 861583a commit d173428
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ write_files:
docker_opts: ""
master_extra_sans: "DNS:kubernetes,DNS:kubernetes.default,DNS:kubernetes.default.svc,DNS:kubernetes.default.svc.cluster.local,DNS:kubernetes-master"
keep_host_etcd: true
kube_user: $KUBE_USER
- path: /srv/kubernetes/openstack.conf
content: |
[Global]
Expand Down
1 change: 1 addition & 0 deletions cluster/photon-controller/templates/salt-master.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ grains:
cloud: photon-controller
master_extra_sans: $MASTER_EXTRA_SANS
api_servers: $MASTER_NAME
kube_user: $KUBE_USER
EOF

# Auto accept all keys from minions that try to join
Expand Down
1 change: 1 addition & 0 deletions cluster/vagrant/provision-utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ grains:
docker_opts: '$(echo "$DOCKER_OPTS" | sed -e "s/'/''/g")'
master_extra_sans: '$(echo "$MASTER_EXTRA_SANS" | sed -e "s/'/''/g")'
keep_host_etcd: true
kube_user: '$(echo "$KUBE_USER" | sed -e "s/'/''/g")'
EOF
}

Expand Down
1 change: 1 addition & 0 deletions cluster/vsphere/templates/salt-master.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ grains:
cbr-cidr: $MASTER_IP_RANGE
cloud: vsphere
master_extra_sans: $MASTER_EXTRA_SANS
kube_user: $KUBE_USER
EOF

# Auto accept all keys from minions that try to join
Expand Down

0 comments on commit d173428

Please sign in to comment.