Skip to content

Commit

Permalink
add env variable to only deploy dataplane components
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes94 committed Dec 4, 2024
1 parent 94e369b commit 35692c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
8 changes: 5 additions & 3 deletions dev/env/scripts/up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,12 @@ if ! is_openshift_cluster "$CLUSTER_TYPE"; then
make -C "$GITROOT" deploy/redhat-pull-secret
fi

log "Deploying fleet-manager"
make -C "$GITROOT" deploy/service
if [ -z "${DATAPLANE_ONLY}" ] || [ "${DATAPLANE_ONLY}" = "false" ]; then
log "Deploying fleet-manager"
make -C "$GITROOT" deploy/service
wait_for_container_to_appear "$ACSCS_NAMESPACE" "app=fleet-manager" "service"
fi

wait_for_container_to_appear "$ACSCS_NAMESPACE" "app=fleet-manager" "service"
if [[ "$SPAWN_LOGGER" == "true" && -n "${LOG_DIR:-}" ]]; then
$KUBECTL -n "$ACSCS_NAMESPACE" logs -l app=fleet-manager --all-containers --pod-running-timeout=1m --since=1m --tail=100 -f >"${LOG_DIR}/pod-logs_fleet-manager.txt" 2>&1 &
fi
Expand Down
6 changes: 1 addition & 5 deletions scripts/ci/multicluster_tests/run_multicluster_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,7 @@ kubectl delete pod -n rhacs -l app=fleet-manager

export KUBECONFIG="$CLUSTER_2_KUBECONFIG"
make deploy/bootstrap
make deploy/dev

# TODO: make a knob that allows for only deploying FS
# remove control plane deployment from 2nd cluster
kubectl delete deploy fleet-manager fleet-manager-db -n rhacs
DATAPLANE_ONLY="true" make deploy/dev

# Get a static token from cluster1 which will be used for FS -> FM communication
# for the FS running on cluster2
Expand Down

0 comments on commit 35692c4

Please sign in to comment.