Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Commit

Permalink
fix(e2e): tweak e2e running and instructions
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Maga <markus@maga.se>
  • Loading branch information
Flydiverny committed Mar 29, 2021
1 parent d4da780 commit 5b54214
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion e2e/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM node:12.21.0-alpine
RUN mkdir /app
WORKDIR /app
COPY package.json package-lock.json /app/
RUN npm install
RUN npm ci

# Copy app to source directory
COPY . /app
Expand Down
2 changes: 1 addition & 1 deletion e2e/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ To better understand how they are being run take a look at `run-e2e-suite.sh`.
kind create cluster \
--name es-dev-cluster \
--config ./kind.yaml \
--image "kindest/node:v1.15.3"
--image "kindest/node:v1.16.15"
export KUBECONFIG="$(kind get kubeconfig-path --name="es-dev-cluster")"
Expand Down
6 changes: 2 additions & 4 deletions e2e/run-e2e-suite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,8 @@ trap cleanup EXIT
kubectl apply -f ${DIR}/localstack.deployment.yaml

CHART_DIR="$(dirname "$DIR")/charts/kubernetes-external-secrets"
HELM_TEMPLATE_ARGS="e2e ${CHART_DIR}"

helm template ${HELM_TEMPLATE_ARGS} \
--include-crds \
helm install e2e ${CHART_DIR} \
--set image.repository=external-secrets \
--set image.tag=test \
--set env.LOG_LEVEL=debug \
Expand All @@ -83,7 +81,7 @@ helm template ${HELM_TEMPLATE_ARGS} \
--set env.AWS_DEFAULT_REGION=us-east-1 \
--set env.AWS_REGION=us-east-1 \
--set env.POLLER_INTERVAL_MILLISECONDS=1000 \
--set env.LOCALSTACK_STS_URL=http://sts | kubectl apply -f -
--set env.LOCALSTACK_STS_URL=http://sts

echo -e "${BGREEN}Granting permissions to external-secrets e2e service account...${NC}"
kubectl create serviceaccount external-secrets-e2e || true
Expand Down

0 comments on commit 5b54214

Please sign in to comment.