-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'downstream/master' into merge-downstream
# Conflicts: # .cfignore # .github/workflows/documentation-versioning.yml # .github/workflows/documentation.yml # .gitignore # CHANGELOG.md # CONTRIBUTING.md # README.md # angular.json # deploy/Dockerfile.all-in-one # deploy/all-in-one/build.sh # deploy/kubernetes/console/templates/deployment.yaml # deploy/kubernetes/console/values.schema.json # deploy/kubernetes/console/values.yaml # package-lock.json # package.json # src/frontend/packages/cloud-foundry/src/features/applications/new-application-base-step/new-application-base-step.component.html # src/frontend/packages/core/src/features/endpoints/create-endpoint/create-endpoint-base-step/create-endpoint-base-step.component.html # src/frontend/packages/core/src/shared/components/page-header/page-header.component.spec.ts # src/frontend/packages/core/src/shared/components/page-header/page-header.component.ts # src/frontend/packages/core/src/shared/components/tile-selector/tile-selector.component.ts # src/jetstream/apikeys.go # src/jetstream/apikeys_test.go # src/jetstream/config.dev # src/jetstream/go.mod # src/jetstream/go.sum # src/jetstream/load_plugins.go # src/jetstream/main.go # src/jetstream/middleware_test.go # src/jetstream/portal_proxy.go # src/jetstream/repository/mock_interfaces/mock_auth.go # src/test-e2e/apikeys/apikeys-e2e.spec.ts # src/tsconfig.json # website/docs/deploy/all-in-one.md # website/docs/introduction.md # website/internal-versions.json
- Loading branch information
Showing
654 changed files
with
36,997 additions
and
810 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 |
---|---|---|
|
@@ -22,3 +22,4 @@ docs/ | |
build/dev_config.json | ||
e2e-reports/ | ||
website/ | ||
.helm-cache/ |
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,61 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Colours | ||
CYAN="\033[96m" | ||
YELLOW="\033[93m" | ||
RED="\033[91m" | ||
RESET="\033[0m" | ||
BOLD="\033[1m" | ||
|
||
# Program Paths: | ||
PROG=$(basename ${BASH_SOURCE[0]}) | ||
PROG_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
STRATOS_DIR="$( cd "${PROG_DIR}/../.." && pwd )" | ||
|
||
echo "Creating Service Account" | ||
SRC="${STRATOS_DIR}/deploy/kubernetes/console/templates/service-account.yaml" | ||
|
||
TEMPFILE=$(mktemp) | ||
cp $SRC $TEMPFILE | ||
sed -i.bak '/\s*helm/d' $TEMPFILE | ||
sed -i.bak '/\s*app\.kubernetes\.io\/version/d' $TEMPFILE | ||
sed -i.bak '/\s*app\.kubernetes\.io\/instance/d' $TEMPFILE | ||
sed -i.bak '/\s*{{-/d' $TEMPFILE | ||
|
||
# Create a namespace | ||
NS="stratos-dev" | ||
kubectl get ns $NS > /dev/null 2>&1 | ||
if [ $? -ne 0 ]; then | ||
kubectl create ns $NS | ||
fi | ||
|
||
kubectl apply -n $NS -f $TEMPFILE | ||
USER=stratos-dev-admin-user | ||
USER=stratos | ||
|
||
# Service account should be created - now need to get token | ||
SECRET=$(kubectl get -n $NS sa $USER -o json | jq -r '.secrets[0].name') | ||
TOKEN=$(kubectl get -n $NS secret $SECRET -o json | jq -r '.data.token') | ||
echo "Token secret: $SECRET" | ||
TOKEN=$(echo $TOKEN | base64 -d -) | ||
echo "Token $TOKEN" | ||
|
||
rm -f $TEMPFILE | ||
rm -f $TEMPFILE.bak | ||
|
||
CFG=${STRATOS_DIR}/src/jetstream/config.properties | ||
touch $CFG | ||
|
||
echo -e "\n# Kubernetes Terminal Config for dev" >> $CFG | ||
echo "STRATOS_KUBERNETES_NAMESPACE=stratos-dev" >> $CFG | ||
echo "STRATOS_KUBERNETES_TERMINAL_IMAGE=splatform/stratos-kube-terminal:dev" >> $CFG | ||
echo "KUBE_TERMINAL_SERVICE_ACCOUNT_TOKEN=$TOKEN" >> $CFG | ||
|
||
MKUBE=$(minikube ip) | ||
if [ $? -eq 0 ]; then | ||
echo "KUBERNETES_SERVICE_HOST=$MKUBE" >> $CFG | ||
echo "KUBERNETES_SERVICE_PORT=8443" >> $CFG | ||
else | ||
echo "KUBERNETES_SERVICE_HOST=" >> $CFG | ||
echo "KUBERNETES_SERVICE_PORT=8443" >> $CFG | ||
fi |
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
Oops, something went wrong.