Skip to content

Commit 977db73

Browse files
authored
update file paths in prow script for adc regions (#3398)
1 parent 12124ad commit 977db73

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/run-e2e-test.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function cleanUp(){
4949

5050
echo "Delete CRDs if exists"
5151
if [[ $ADC_REGIONS == *"$REGION"* ]]; then
52-
kubectl delete -k "../helm/aws-load-balancer-controller/crds" --timeout=30s || true
52+
kubectl delete -k "$SCRIPT_DIR"/../helm/aws-load-balancer-controller/crds --timeout=30s || true
5353
else
5454
kubectl delete -k "github.com/aws/eks-charts/stable/aws-load-balancer-controller//crds?ref=master" --timeout=30s || true
5555
fi
@@ -125,7 +125,7 @@ kubectl annotate serviceaccount -n kube-system aws-load-balancer-controller eks.
125125

126126
function install_controller_for_adc_regions() {
127127
echo "install cert-manager"
128-
cert_manager_yaml="./test/prow/cert_manager.yaml"
128+
cert_manager_yaml="$SCRIPT_DIR"/../test/prow/cert_manager.yaml
129129

130130
# replace the url to the test images registry in ADC regions
131131
declare -A url_mapping
@@ -141,7 +141,7 @@ function install_controller_for_adc_regions() {
141141
kubectl apply -f $cert_manager_yaml || true
142142

143143
echo "install the controller via yaml"
144-
controller_yaml="./test/prow/v2_6_0_adc.yaml"
144+
controller_yaml="$SCRIPT_DIR"/../test/prow/v2_6_0_adc.yaml
145145
default_controller_image="public.ecr.aws/eks/aws-load-balancer-controller"
146146
sed -i "" "s#$default_controller_image#$IMAGE#g" "$controller_yaml"
147147
echo "Image URL in $controller_yaml has been updated to $IMAGE"

0 commit comments

Comments
 (0)