Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,13 @@ if [ -d "$BINARIES_DIR" ]; then
if [[ ${EXTERNAL_CNI} == true ]]; then
/opt/bin/kubectl apply -f ${BINARIES_DIR}/network.yaml
fi
/opt/bin/kubectl apply -f ${BINARIES_DIR}/dashboard.yaml
if [ -f "${BINARIES_DIR}/headlamp.yaml" ]; then
+ /opt/bin/kubectl apply -f ${BINARIES_DIR}/headlamp.yaml
+ elif [ -f "${BINARIES_DIR}/dashboard.yaml" ]; then
+ /opt/bin/kubectl apply -f ${BINARIES_DIR}/dashboard.yaml
+ else
+ echo "Warning: No dashboard YAML found in ISO (neither headlamp.yaml nor dashboard.yaml)"
+ fi
fi

umount "${ISO_MOUNT_DIR}" && rmdir "${ISO_MOUNT_DIR}"
Expand Down