This repository has been archived by the owner on Jan 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
using aggregation from AEM for selecting the value
- Loading branch information
1 parent
ef6a298
commit 311b1f6
Showing
9 changed files
with
97 additions
and
31 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export AZURE_TENANT_ID="" | ||
export AZURE_CLIENT_ID="" | ||
export AZURE_CLIENT_SECRET="" | ||
export SUBSCRIPTION_ID="" | ||
export KUBE_CONFIG_FILE="" |
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
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,31 @@ | ||
#!/bin/bash | ||
|
||
set -aueo pipefail | ||
|
||
source .env | ||
|
||
GOBIN=$(pwd)/bin | ||
|
||
echo -e "Cleanup: delete $GOBIN" | ||
rm -rf "$GOBIN" | ||
|
||
echo -e "Compiling..." | ||
go install -v . | ||
RESULT=$? | ||
if [ "$RESULT" -eq "0" ]; then | ||
chmod -R 777 bin | ||
echo -e "Build SUCCEEDED" | ||
else | ||
echo -e "Build FAILED" | ||
exit 1 | ||
fi | ||
|
||
# Run | ||
./bin/azure-k8s-metrics-adapter \ | ||
--authentication-kubeconfig="$KUBE_CONFIG_FILE" \ | ||
--authorization-kubeconfig="$KUBE_CONFIG_FILE" \ | ||
--lister-kubeconfig="$KUBE_CONFIG_FILE" \ | ||
--secure-port=6443 \ | ||
--logtostderr=true \ | ||
--v 5 #\ | ||
#--secure-port 80 |