Skip to content

Commit

Permalink
change long set options to values file (#567)
Browse files Browse the repository at this point in the history
Signed-off-by: spacewander <[email protected]>
  • Loading branch information
spacewander authored Jun 5, 2024
1 parent 046671f commit d79efc5
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
13 changes: 13 additions & 0 deletions e2e/htnn_controller_values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
istiod:
pilot:
image: "htnn/controller:e2e"
env:
HTNN_ENABLE_LDS_PLUGIN_VIA_ECDS: true
UNSAFE_PILOT_ENABLE_RUNTIME_ASSERTIONS: true
UNSAFE_PILOT_ENABLE_DELTA_TEST: true
global:
proxy:
image: "htnn/gateway:e2e"
imagePullPolicy: IfNotPresent
logging:
level: "htnn:debug"
2 changes: 2 additions & 0 deletions e2e/htnn_gateway_values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
gateway:
imagePullPolicy: IfNotPresent
13 changes: 3 additions & 10 deletions e2e/istio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ set -eo pipefail
set -x

HELM="$(pwd)/bin/helm"
E2E_DIR="$(pwd)"

install() {
pushd ../manifests/charts
Expand All @@ -27,18 +28,10 @@ install() {
$HELM package htnn-controller htnn-controller
$HELM package htnn-gateway htnn-gateway

$HELM install htnn-controller htnn-controller --namespace istio-system --create-namespace --wait \
--set istiod.pilot.image="htnn/controller:e2e" \
--set istiod.global.proxy.image="htnn/gateway:e2e" \
--set istiod.global.imagePullPolicy=IfNotPresent \
--set istiod.pilot.env.HTNN_ENABLE_LDS_PLUGIN_VIA_ECDS=true \
--set istiod.pilot.env.UNSAFE_PILOT_ENABLE_RUNTIME_ASSERTIONS=true \
--set istiod.pilot.env.UNSAFE_PILOT_ENABLE_DELTA_TEST=true \
--set .values.global.logging.level=htnn:debug \
$HELM install htnn-controller htnn-controller --namespace istio-system --create-namespace --wait -f "$E2E_DIR/htnn_controller_values.yaml" \
|| exitWithAnalysis

$HELM install htnn-gateway htnn-gateway --namespace istio-system --create-namespace \
--set gateway.imagePullPolicy=IfNotPresent \
$HELM install htnn-gateway htnn-gateway --namespace istio-system --create-namespace -f "$E2E_DIR/htnn_gateway_values.yaml" \
&& \
(kubectl wait --timeout=5m -n istio-system deployment/istio-ingressgateway --for=condition=Available \
|| exitWithAnalysis)
Expand Down

0 comments on commit d79efc5

Please sign in to comment.