Skip to content

Commit

Permalink
Merge pull request #59262 from wojtek-t/automated-cherry-pick-of-#592…
Browse files Browse the repository at this point in the history
…59-upstream-release-1.8

Automatic merge from submit-queue.

Automated cherry pick of #59259 upstream release 1.8 

Cherry pick of #59259 on release-1.8.

#59259 : Configurable etcd quota backend bytes
  • Loading branch information
Kubernetes Submit Queue committed Feb 4, 2018
2 parents 4dae313 + f92c833 commit 2f73858
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions cluster/common.sh
Expand Up @@ -857,6 +857,11 @@ EOF
if [ -n "${ETCD_COMPACTION_INTERVAL_SEC:-}" ]; then
cat >>$file <<EOF
ETCD_COMPACTION_INTERVAL_SEC: $(yaml-quote ${ETCD_COMPACTION_INTERVAL_SEC})
EOF
fi
if [ -n "${ETCD_QUOTA_BACKEND_BYTES:-}" ]; then
cat >>$file <<EOF
ETCD_QUOTA_BACKEND_BYTES: $(yaml-quote ${ETCD_QUOTA_BACKEND_BYTES})
EOF
fi
if [ -n "${APISERVER_TEST_ARGS:-}" ]; then
Expand Down
2 changes: 1 addition & 1 deletion cluster/gce/container-linux/configure-helper.sh
Expand Up @@ -809,7 +809,7 @@ function prepare-etcd-manifest {
sed -i -e "s@{{ *pillar\.get('storage_backend', '\(.*\)') *}}@\1@g" "${temp_file}"
fi
if [[ "${STORAGE_BACKEND:-${default_storage_backend}}" == "etcd3" ]]; then
sed -i -e "s@{{ *quota_bytes *}}@--quota-backend-bytes=4294967296@g" "${temp_file}"
sed -i -e "s@{{ *quota_bytes *}}@--quota-backend-bytes={ETCD_QUOTA_BACKEND_BYTES:-4294967296}@g" "${temp_file}"
else
sed -i -e "s@{{ *quota_bytes *}}@@g" "${temp_file}"
fi
Expand Down
2 changes: 1 addition & 1 deletion cluster/gce/gci/configure-helper.sh
Expand Up @@ -1197,7 +1197,7 @@ function prepare-etcd-manifest {
sed -i -e "s@{{ *pillar\.get('storage_backend', '\(.*\)') *}}@\1@g" "${temp_file}"
fi
if [[ "${STORAGE_BACKEND:-${default_storage_backend}}" == "etcd3" ]]; then
sed -i -e "s@{{ *quota_bytes *}}@--quota-backend-bytes=4294967296@g" "${temp_file}"
sed -i -e "s@{{ *quota_bytes *}}@--quota-backend-bytes=${ETCD_QUOTA_BACKEND_BYTES:-4294967296}@g" "${temp_file}"
else
sed -i -e "s@{{ *quota_bytes *}}@@g" "${temp_file}"
fi
Expand Down

0 comments on commit 2f73858

Please sign in to comment.