Skip to content

Commit

Permalink
update: scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
codekow committed Nov 4, 2023
1 parent 5001a02 commit eeea386
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/automate_operators.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,16 +139,16 @@ create_operator_base(){

echo "create_operator_base:" "${@}"

if [ "${NS_OWN}" == "false" ]; then
if [ "${NS_OWN}" == "false" ] && [ "${NAMESPACE}" == "<none>" ]; then
BASE_DIR="${NAME}"
create_operator_base_files_wo_ns
elif [ ! "${NS_OWN}" == "<none>" ] && [ ! "${NAMESPACE}" == "<none>" ]; then
BASE_DIR="${NAME}"
create_operator_base_files_w_ns
elif [ "${NS_OWN}" == "true" ] && [ "${NAMESPACE}" == "<none>" ]; then
BASE_DIR="${NAME}"
NAMESPACE="${NAME}"
create_operator_base_files_w_ns
elif [ ! "${NS_OWN}" == "<none>" ] && [ ! "${NAMESPACE}" == "<none>" ]; then
BASE_DIR="${NAME}"
create_operator_base_files_w_ns
else
BASE_DIR="${NAME}"
create_operator_base_files_wo_ns
Expand Down
2 changes: 2 additions & 0 deletions scripts/library/ocp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ ocp_set_scheduler_profile(){

# LowNodeUtilization, HighNodeUtilization, NoScoring
echo "see https://docs.openshift.com/container-platform/4.11/nodes/scheduling/nodes-scheduler-profiles.html"
echo "OPTIONS: LowNodeUtilization, HighNodeUtilization, NoScoring"
echo "SCHED_PROFILE: ${SCHED_PROFILE}"

oc patch schedulers.config.openshift.io/cluster --type merge --patch '{"spec":{"profile": "'"${SCHED_PROFILE}"'"}}'
}
Expand Down

0 comments on commit eeea386

Please sign in to comment.