Skip to content

Commit

Permalink
Update for installation check of the snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
WilsonRadadia20 committed Dec 31, 2024
1 parent 12eb639 commit df69703
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
12 changes: 8 additions & 4 deletions dell-csi-helm-installer/verify-csi-unity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,23 @@

# verify-csi-unity method
function verify-csi-unity() {
verify_k8s_versions "1.25" "1.31"
verify_k8s_versions "1.25" "1.32"
verify_openshift_versions "4.16" "4.17"
verify_namespace "${NS}"
verify_required_secrets "${RELEASE}-creds"
verify_optional_secrets "${RELEASE}-certs"
verify_alpha_snap_resources
snapshot_value=$(is_snapshot_enabled)
if [ "$snapshot_value" == "true" ]; then
verify_alpha_snap_resources
fi
verify_unity_protocol_installation
verify_snap_requirements
if [ "$snapshot_value" == "true" ]; then
verify_snap_requirements
fi
verify_helm_3
verify_helm_values_version "${DRIVER_VERSION}"
}


function verify_unity_protocol_installation() {
if [ ${NODE_VERIFY} -eq 0 ]; then
return
Expand Down
5 changes: 5 additions & 0 deletions dell-csi-helm-installer/verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ function source-verify-driver() {
fi
}

function is_snapshot_enabled() {
snapshot_enabled=$(sed -n '/snapshot:/,/resizer:/p' "$VALUES" | grep -v '^\s*#' | grep "enabled:" | awk '{print $2}')
echo ${snapshot_enabled}
}


#
# verify-driver will call the proper method to verify a specific driver
Expand Down

0 comments on commit df69703

Please sign in to comment.