Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
Parameterise the image repo and tag of the ES pilot
Browse files Browse the repository at this point in the history
  • Loading branch information
wallrj committed Dec 15, 2017
1 parent 4abb2d8 commit 25d4624
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
16 changes: 15 additions & 1 deletion hack/e2e.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
#!/bin/bash
set -eux


: ${TEST_PREFIX:=""}

: ${NAVIGATOR_IMAGE_REPOSITORY:="jetstackexperimental"}
: ${NAVIGATOR_IMAGE_TAG:="build"}
: ${NAVIGATOR_IMAGE_PULLPOLICY:="Never"}

export \
NAVIGATOR_IMAGE_REPOSITORY \
NAVIGATOR_IMAGE_TAG \
NAVIGATOR_IMAGE_PULLPOLICY

NAVIGATOR_NAMESPACE="navigator"
RELEASE_NAME="nav-e2e"

Expand Down Expand Up @@ -104,7 +114,11 @@ function test_elasticsearchcluster() {
# Create and delete an ElasticSearchCluster
if ! kubectl create \
--namespace "${namespace}" \
--filename "${SCRIPT_DIR}/testdata/es-cluster-test.yaml"; then
--filename \
<(envsubst \
'$NAVIGATOR_IMAGE_REPOSITORY:$NAVIGATOR_IMAGE_TAG:$NAVIGATOR_IMAGE_PULLPOLICY' \
< "${SCRIPT_DIR}/testdata/es-cluster-test.template.yaml")
then
fail_test "Failed to create elasticsearchcluster"
fi
if ! kubectl get \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ spec:
- vm.max_map_count=262144

pilot:
repository: jetstackexperimental/navigator-pilot-elasticsearch
tag: build
pullPolicy: Never
repository: ${NAVIGATOR_IMAGE_REPOSITORY}/navigator-pilot-elasticsearch
tag: ${NAVIGATOR_IMAGE_TAG}
pullPolicy: ${NAVIGATOR_IMAGE_PULLPOLICY}

image:
repository: docker.elastic.co/elasticsearch/elasticsearch
Expand Down

0 comments on commit 25d4624

Please sign in to comment.