Created
May 11, 2017 14:33
-
-
Save kerin/0368e264551e45429119201c8a0e737d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
users="user1 user2 user3 etc" | |
for user in $users; do | |
helm upgrade $user-rstudio charts/rstudio \ | |
-f chart-env-config/dev/rstudio.yml \ | |
--set Username=$user \ | |
--set AWS.AccessKeyId=$ACCESS_KEY_ID \ | |
--set AWS.SecretAccessKey=$SECRET_KEY \ | |
--namespace user-$user \ | |
--install | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@kerin we should be able to list of users from the namespaces:
by using
cut
:(Annoyingly just use
$ kubectl get namespaces | grep user- | cut -f1
doesn't seem to work)