Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
britaniar committed Nov 8, 2024
1 parent 2761c50 commit 2f9585f
Showing 1 changed file with 37 additions and 2 deletions.
39 changes: 37 additions & 2 deletions test/e2e/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ for (( i=0; i<${MEMBER_CLUSTER_COUNT}; i++ ));
do
kind export kubeconfig --name "${MEMBER_CLUSTERS[$i]}"
if [ "$i" -lt $RESERVED_CLUSTER_COUNT ]; then
if [ "$PROPERTY_PROVIDER" = "azure" ]; then
helm install member-agent ../../charts/member-agent/ \
--set config.hubURL=$HUB_SERVER_URL \
--set image.repository=$REGISTRY/$MEMBER_AGENT_IMAGE \
Expand All @@ -186,8 +187,26 @@ do
--set enableV1Beta1APIs=true \
--set propertyProvider=$PROPERTY_PROVIDER \
--set region=${REGIONS[$i]} \
$( [ "$PROPERTY_PROVIDER" = "azure" ] && echo "-f azure_valid_config.yaml" )
-f azure_valid_config.yaml
else
helm install member-agent ../../charts/member-agent/ \
--set config.hubURL=$HUB_SERVER_URL \
--set image.repository=$REGISTRY/$MEMBER_AGENT_IMAGE \
--set image.tag=$TAG \
--set refreshtoken.repository=$REGISTRY/$REFRESH_TOKEN_IMAGE \
--set refreshtoken.tag=$TAG \
--set image.pullPolicy=Never \
--set refreshtoken.pullPolicy=Never \
--set config.memberClusterName="kind-${MEMBER_CLUSTERS[$i]}" \
--set logVerbosity=5 \
--set namespace=fleet-system \
--set enableV1Alpha1APIs=false \
--set enableV1Beta1APIs=true \
--set propertyProvider=$PROPERTY_PROVIDER \
--set region=${REGIONS[$i]}
fi
else
if [ "$PROPERTY_PROVIDER" = "azure" ]; then
helm install member-agent ../../charts/member-agent/ \
--set config.hubURL=$HUB_SERVER_URL \
--set image.repository=$REGISTRY/$MEMBER_AGENT_IMAGE \
Expand All @@ -202,7 +221,23 @@ do
--set enableV1Alpha1APIs=false \
--set enableV1Beta1APIs=true \
--set propertyProvider=$PROPERTY_PROVIDER \
$( [ "$PROPERTY_PROVIDER" = "azure" ] && echo "-f azure_valid_config.yaml" )
-f azure_valid_config.yaml
else
helm install member-agent ../../charts/member-agent/ \
--set config.hubURL=$HUB_SERVER_URL \
--set image.repository=$REGISTRY/$MEMBER_AGENT_IMAGE \
--set image.tag=$TAG \
--set refreshtoken.repository=$REGISTRY/$REFRESH_TOKEN_IMAGE \
--set refreshtoken.tag=$TAG \
--set image.pullPolicy=Never \
--set refreshtoken.pullPolicy=Never \
--set config.memberClusterName="kind-${MEMBER_CLUSTERS[$i]}" \
--set logVerbosity=5 \
--set namespace=fleet-system \
--set enableV1Alpha1APIs=false \
--set enableV1Beta1APIs=true \
--set propertyProvider=$PROPERTY_PROVIDER
fi
fi
done

0 comments on commit 2f9585f

Please sign in to comment.