Skip to content

Commit

Permalink
CASMHMS-6325 Add conditional deployment of RIE to upgrade.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
mtupitsyn committed Dec 18, 2024
1 parent 788a190 commit 75746a6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,21 @@ fi
# Deploy Nexus
deploy "${BUILDDIR}/manifests/nexus.yaml"

# Deploy Vshasta specific services
function is_vshasta_node {
# This is the best check for an image specifically booted to vshasta
[[ -f /etc/google_system ]] && return 0

# metal images can still be booted on GCP, so check if there are any disks vendored by Google
# if not, we conclude that this is not GCP
lsblk --noheadings -o vendor | grep -q Google
return $?
}

if is_vshasta_node; then
deploy "${BUILDDIR}/manifests/vshasta.yaml"
fi

#
# Remove the old etcd operator now that new manifests have been applied
#
Expand Down

0 comments on commit 75746a6

Please sign in to comment.