-
Notifications
You must be signed in to change notification settings - Fork 495
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Address comments: update comments, new unit tests and var renames
Signed-off-by: Prasad Borole <[email protected]>
- Loading branch information
1 parent
69883bb
commit 0ec17de
Showing
10 changed files
with
229 additions
and
138 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
SERVER=./bin/spire-server | ||
i=$1 | ||
UNTIL=$(expr $1 + $2) | ||
#sleep 30 | ||
|
||
while [ $i -le $UNTIL ] | ||
do | ||
$SERVER entry create \ | ||
-parentID spiffe://example.org/host \ | ||
-spiffeID "spiffe://example.org/workload/$i" \ | ||
-selector "unix:uid:1001" & | ||
((i++)) | ||
done | ||
|
||
#var="$($SERVER entry show -parentID spiffe://example.org/host | grep Entry | cut -d ":" -f2 | sed 's/^ *//')" | ||
#for val in $var; do | ||
# $SERVER entry delete -entryID "$val" | ||
#done | ||
|
||
# -selector "unix:uid:$(id -u)" | ||
# -selector "unix:user:testing" & |
This file contains 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
This file contains 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
Oops, something went wrong.