Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jpinsonneau committed Oct 10, 2024
1 parent 6199960 commit 23238ce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,9 @@ function edit_manifest() {
yq e --inplace ".spec.template.spec.containers[0].env[] |= select(.name==\"LOG_LEVEL\").value|=\"$2\"" "$3"
;;
"node_selector")
keyVal=(${2//:/ })
yq e --inplace ".spec.template.spec.nodeSelector.\""${keyVal[0]}"\" |= \""${keyVal[1]}"\"" "$3"
key=${2%:*}
val=${2#*:}
yq e --inplace ".spec.template.spec.nodeSelector.\"$key\" |= \"$val\"" "$3"
;;
esac
}
Expand Down

0 comments on commit 23238ce

Please sign in to comment.