Skip to content

Commit

Permalink
Remove excessive logging in fluentd-gcp-scaler
Browse files Browse the repository at this point in the history
  • Loading branch information
x13n committed Sep 11, 2018
1 parent 1047589 commit 390020e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion fluentd-gcp-scaler/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
.PHONY: build push

PREFIX=staging-k8s.gcr.io
TAG = 0.4
TAG = 0.5

build:
docker build --pull -t $(PREFIX)/fluentd-gcp-scaler:$(TAG) .
Expand Down
4 changes: 1 addition & 3 deletions fluentd-gcp-scaler/scaler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ log() {
apply_scaling() {
# This is assuming there is a ScalingPolicy installed in the cluster.
# See https://github.com/justinsb/scaler for more details.
if ! kubectl get scalingpolicies -n ${NAMESPACE} ${SCALING_POLICY}
if ! kubectl get scalingpolicies -n ${NAMESPACE} ${SCALING_POLICY} 2> /dev/null
then
log "${SCALING_POLICY} not found in namespace ${NAMESPACE}, using defaults."
return
fi
for resource_class in request limit
Expand Down Expand Up @@ -102,7 +101,6 @@ update_if_needed() {
if needs_update limits.memory ${MEMORY_LIMIT}; then NEED_UPDATE=true; fi
if ! ${NEED_UPDATE}
then
log "Nothing to update."
return
fi
if [ ${REQUESTS_FLAG} ] || [ ${LIMITS_FLAG} ]
Expand Down

0 comments on commit 390020e

Please sign in to comment.