-
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.
CI test cases exist for using deployment name as k8s authn ID
Adds CI test cases that use the Kubernetes authentication plugin in both GKE and OpenShift environments, using Deployment name (rather than the default service account name) as a Kubernetes authentication ID. Addresses Issue #92
- Loading branch information
diverdane
committed
Mar 4, 2020
1 parent
e428c92
commit d3e408a
Showing
9 changed files
with
102 additions
and
53 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 |
---|---|---|
|
@@ -68,10 +68,11 @@ function main() { | |
|
||
function deployConjur() { | ||
pushd .. | ||
git clone --single-branch --branch master [email protected]:cyberark/kubernetes-conjur-deploy kubernetes-conjur-deploy-$UNIQUE_TEST_ID | ||
#git clone --single-branch --branch master [email protected]:cyberark/kubernetes-conjur-deploy kubernetes-conjur-deploy-$UNIQUE_TEST_ID | ||
git clone --single-branch --branch openshift_deploy_configs [email protected]:cyberark/kubernetes-conjur-deploy kubernetes-conjur-deploy-$UNIQUE_TEST_ID | ||
popd | ||
|
||
runDockerCommand "cd kubernetes-conjur-deploy-$UNIQUE_TEST_ID && ./start" | ||
runDockerCommand "cd kubernetes-conjur-deploy-$UNIQUE_TEST_ID && CONJUR_LOG_LEVEL=debug ./start" | ||
} | ||
|
||
function deployDemo() { | ||
|
@@ -100,6 +101,8 @@ function prepareTestEnvironment() { | |
|
||
export CONJUR_APPLIANCE_IMAGE=$registry:5.0-stable | ||
|
||
export CONJUR_AUTHN_LOGIN_RESOURCE="${CONJUR_AUTHN_LOGIN_RESOURCE:-service_account}" | ||
|
||
# Prepare Docker images | ||
docker pull $CONJUR_APPLIANCE_IMAGE | ||
docker build --tag $CONJUR_DEMO_TEST_IMAGE:$CONJUR_NAMESPACE_NAME \ | ||
|
@@ -136,6 +139,7 @@ function runDockerCommand() { | |
-e CONJUR_NAMESPACE_NAME \ | ||
-e CONJUR_ACCOUNT \ | ||
-e CONJUR_ADMIN_PASSWORD \ | ||
-e CONJUR_AUTHN_LOGIN_RESOURCE \ | ||
-e AUTHENTICATOR_ID \ | ||
-e TEST_APP_NAMESPACE_NAME \ | ||
-e TEST_APP_DATABASE \ | ||
|
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