-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bd17032
commit cf2e59f
Showing
7 changed files
with
54 additions
and
55 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,8 @@ source utils.sh | |
function setup_conjur_enterprise { | ||
docker pull "$CONJUR_APPLIANCE_IMAGE" | ||
|
||
announce "Deploying Conjur Enterprise" | ||
|
||
# deploy Conjur to GKE cluster | ||
if [[ "${CONJUR_PLATFORM}" == "gke" ]]; then | ||
check_env_var GCLOUD_PROJECT_NAME | ||
|
@@ -19,21 +21,21 @@ function setup_conjur_enterprise { | |
git clone --single-branch --branch master [email protected]:cyberark/kubernetes-conjur-deploy "kubernetes-conjur-deploy-$UNIQUE_TEST_ID" | ||
popd > /dev/null | ||
|
||
announce "Deploying Conjur Enterprise" | ||
run_command_with_platform "cd temp/kubernetes-conjur-deploy-$UNIQUE_TEST_ID && ./start" | ||
|
||
# deploy Conjur locally | ||
elif [[ "${CONJUR_PLATFORM}" == "jenkins" ]]; then | ||
check_env_var HOST_IP | ||
|
||
pushd temp > /dev/null | ||
# TODO - once these changes are merged, this branch has to be updated to main | ||
git clone --single-branch --branch custom-port-follower [email protected]:conjurdemos/conjur-intro.git "conjur-intro-$UNIQUE_TEST_ID" | ||
|
||
pushd "conjur-intro-$UNIQUE_TEST_ID" > /dev/null | ||
|
||
# add public IP address to custom certificate config as SAN | ||
docker run --rm \ | ||
-v ${PWD}:/src \ | ||
-v "${PWD}":/src \ | ||
-w /src/artifacts/certificate-generator/configuration \ | ||
"custom-certs" \ | ||
ash -c " | ||
|
@@ -42,9 +44,9 @@ function setup_conjur_enterprise { | |
" | ||
|
||
echo """ | ||
CONJUR_MASTER_PORT=${CONJUR_MASTER_PORT} | ||
CONJUR_FOLLOWER_PORT=${CONJUR_FOLLOWER_PORT} | ||
CONJUR_AUTHENTICATORS=authn-k8s/${AUTHENTICATOR_ID},authn | ||
CONJUR_MASTER_PORT=\"${CONJUR_MASTER_PORT}\" | ||
CONJUR_FOLLOWER_PORT=\"${CONJUR_FOLLOWER_PORT}\" | ||
CONJUR_AUTHENTICATORS=authn-k8s/\"${AUTHENTICATOR_ID}\",authn | ||
""" > .env | ||
./bin/dap --provision-master | ||
./bin/dap --import-custom-certificates | ||
|
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 |
---|---|---|
@@ -1,11 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [[ "$CONJUR_PLATFORM" == "jenkins" ]]; then | ||
cluster_prep_namespace="$TEST_APP_NAMESPACE_NAME" | ||
elif [[ "$CONJUR_PLATFORM" == "gke" ]]; then | ||
cluster_prep_namespace="$CONJUR_NAMESPACE_NAME" | ||
fi | ||
|
||
helm uninstall "cluster-prep-$UNIQUE_TEST_ID" -n "$cluster_prep_namespace" | ||
helm uninstall "cluster-prep-$UNIQUE_TEST_ID" -n "$CONJUR_NAMESPACE_NAME" | ||
helm uninstall "namespace-prep-$UNIQUE_TEST_ID" -n "$TEST_APP_NAMESPACE_NAME" | ||
helm uninstall app-backend-pg -n "$TEST_APP_NAMESPACE_NAME" |
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