Skip to content

Commit

Permalink
[internal] Fix enabled script (#190)
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksandr Zimin <[email protected]>
  • Loading branch information
AleksZimin authored Oct 21, 2024
1 parent 6799537 commit 161fb9f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions enabled
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,14 @@ function __main__() {
fi

if ! values::array_has global.enabledModules "sds-node-configurator" ; then
echo "You must enable the sds-node-configurator module for the module to work."
echo "false" > "$MODULE_ENABLED_RESULT"
else
echo "true" > "$MODULE_ENABLED_RESULT"
if [ "$(kubectl get ns | grep -c d8-sds-drbd)" -eq 0 ]; then
echo "You must enable the sds-node-configurator module for the module to work."
echo "false" > "$MODULE_ENABLED_RESULT"
exit 0
fi
fi

echo "true" > "$MODULE_ENABLED_RESULT"
}

enabled::run $@

0 comments on commit 161fb9f

Please sign in to comment.