Skip to content

Commit d7484f4

Browse files
committed
AGENT-1417: Add kind verification in InternalReleaseImage check
In order to increase the expected storage size a check is done for the existence of a file with IRI. This adds a check to confirm that the file actually contains a resource of type InternalReleaseImage.
1 parent b0514c8 commit d7484f4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

data/data/agent/files/usr/local/bin/configure-assisted-hw-requirements.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ MASTER_DISK_SIZE=100
88
SNO_DISK_SIZE=100
99

1010
# Increase disk size requirements for NoRegistryClusterInstall
11-
if [ -f /etc/assisted/extra-manifests/internalreleaseimage.yaml ]; then
11+
# Check that the file exists and contains kind: InternalReleaseImage
12+
if [ -f /etc/assisted/extra-manifests/internalreleaseimage.yaml ] && \
13+
grep -q "^kind:[[:space:]]*InternalReleaseImage[[:space:]]*$" /etc/assisted/extra-manifests/internalreleaseimage.yaml; then
1214
MASTER_DISK_SIZE=220
1315
SNO_DISK_SIZE=220
1416
fi

0 commit comments

Comments
 (0)