-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #361 from hyperledger-labs/kubernetes
Experimental Kubernetes support
- Loading branch information
Showing
74 changed files
with
9,349 additions
and
4,599 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
.idea | ||
e2e | ||
e2e-network | ||
fablo-target | ||
node_modules | ||
Jenkinsfile | ||
|
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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
## 1.2.0-unstable | ||
|
||
### Features | ||
* Initial support for Kubernetes | ||
|
||
## 1.1.0 | ||
|
||
### Features | ||
|
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 |
---|---|---|
|
@@ -538,6 +538,10 @@ chaincodes: | |
- Org1 | ||
``` | ||
## Kubernetes support | ||
TODO | ||
## Other features | ||
### Connection profiles | ||
|
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,49 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
user="$1" | ||
peer="$2" | ||
channel="$3" | ||
chaincode="$4" | ||
fcn="$5" | ||
key="$6" | ||
value="$7" | ||
expected="$8" | ||
config="$(find . -type f -iname 'org1.yaml')" | ||
|
||
|
||
|
||
|
||
if [ -z "$expected" ]; then | ||
echo "Usage: ./expect-invoke.sh [user] [peer] [chaincdoe] [channel] [fcn] [arg1] [arg2] [expected_substring]" | ||
exit 1 | ||
fi | ||
|
||
label="Invoke $channel/$peer" | ||
echo "" | ||
echo "➜ testing: $label" | ||
|
||
response="$( | ||
kubectl hlf chaincode invoke \ | ||
--config "$config" \ | ||
--user "$user" \ | ||
--peer "$peer" \ | ||
--chaincode "$chaincode" \ | ||
--channel "$channel" \ | ||
--fcn "$fcn" \ | ||
-a "$key" \ | ||
${value:+ -a "$value"} \ | ||
# shellcheck disable=SC2188 | ||
2>&1 | ||
)" | ||
|
||
echo "$response" | ||
|
||
if echo "$response" | grep -F "$expected"; then | ||
echo "✅ ok (cli): $label" | ||
else | ||
echo "❌ failed (cli): $label | expected: $expected" | ||
exit 1 | ||
fi |
Oops, something went wrong.