Skip to content

Commit

Permalink
Improve fink-broker configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
fjammes committed Jul 19, 2024
1 parent ed55a47 commit e0defec
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions e2e/argocd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,12 @@ argocd login --core
kubectl config set-context --current --namespace="$NS"

# Create fink app
IMAGE="$CIUX_IMAGE_URL"
echo "Use CIUX_IMAGE_URL to set fink-broker image: $CIUX_IMAGE_URL"
if [[ "$IMAGE" =~ "-noscience" ]];
then
valueFile=values-ci-noscience.yaml
else
valueFile=values-ci-science.yaml
fi
argocd app create fink --dest-server https://kubernetes.default.svc \
--dest-namespace "$NS" \
--repo https://github.com/astrolabsoftware/fink-cd.git \
--path apps --revision "$FINK_CD_WORKBRANCH" \
-p finkbroker.revision="$FINK_BROKER_WORKBRANCH" \
-p finkbroker.valueFile="$valueFile" \
-p finkbroker.revision="$FINK_BROKER_WORKBRANCH"


# Sync fink app-of-apps
argocd app sync fink
Expand All @@ -70,7 +62,15 @@ retry kubectl wait --for condition=established --timeout=60s crd/kafkas.kafka.st
# TODO Wait for all applications to be synced (problem with spark-operator secret)

# Set fink-broker parameters
echo "Use fink-broker image: $CIUX_IMAGE_URL"
if [[ "$$CIUX_IMAGE_URL" =~ "-noscience" ]];
then
valueFile=values-ci-noscience.yaml
else
valueFile=values-ci-science.yaml
fi
argocd app set fink-broker -p image.repository="$CIUX_IMAGE_REGISTRY" \
--values "$valueFile" \
-p image.name="$CIUX_IMAGE_NAME" \
-p image.tag="$CIUX_IMAGE_TAG" \
-p log_level="DEBUG" \
Expand Down

0 comments on commit e0defec

Please sign in to comment.