From 688c19ec710340986ba0a86730dd1add7acc5b3a Mon Sep 17 00:00:00 2001 From: Andy Goldstein Date: Fri, 17 Feb 2017 10:00:18 -0500 Subject: [PATCH] Allow cache mutation detector enablement by PRs Allow cache mutation detector enablement by PRs in an attempt to find mutations before they're merged in to the code base. It's just for the apiserver and controller-manager for now. If/when the other components start using a SharedInformerFactory, we should set them up just like this as well. --- cluster/common.sh | 1 + cluster/gce/container-linux/configure-helper.sh | 11 +++++++++++ cluster/gce/gci/configure-helper.sh | 11 +++++++++++ .../salt/kube-apiserver/kube-apiserver.manifest | 3 +++ .../kube-controller-manager.manifest | 3 +++ 5 files changed, 29 insertions(+) diff --git a/cluster/common.sh b/cluster/common.sh index 3c9d1e4b013..c13a2b4f0ff 100755 --- a/cluster/common.sh +++ b/cluster/common.sh @@ -664,6 +664,7 @@ NON_MASQUERADE_CIDR: $(yaml-quote ${NON_MASQUERADE_CIDR:-}) KUBE_UID: $(yaml-quote ${KUBE_UID:-}) ENABLE_DEFAULT_STORAGE_CLASS: $(yaml-quote ${ENABLE_DEFAULT_STORAGE_CLASS:-}) ENABLE_APISERVER_BASIC_AUDIT: $(yaml-quote ${ENABLE_APISERVER_BASIC_AUDIT:-}) +ENABLE_CACHE_MUTATION_DETECTOR: $(yaml-quote ${ENABLE_CACHE_MUTATION_DETECTOR:-false}) EOF if [ -n "${KUBELET_PORT:-}" ]; then cat >>$file <>/var/log/kube-apiserver.log 2>&1" ], + {{container_env}} "livenessProbe": { "httpGet": { "host": "127.0.0.1", diff --git a/cluster/saltbase/salt/kube-controller-manager/kube-controller-manager.manifest b/cluster/saltbase/salt/kube-controller-manager/kube-controller-manager.manifest index c8948f1a7cd..acd820cfa0c 100644 --- a/cluster/saltbase/salt/kube-controller-manager/kube-controller-manager.manifest +++ b/cluster/saltbase/salt/kube-controller-manager/kube-controller-manager.manifest @@ -86,6 +86,8 @@ {% set params = params + " " + pillar['controller_manager_test_args'] -%} {% endif -%} +{% set container_env = "" -%} + { "apiVersion": "v1", "kind": "Pod", @@ -113,6 +115,7 @@ "-c", "/usr/local/bin/kube-controller-manager {{params}} 1>>/var/log/kube-controller-manager.log 2>&1" ], + {{container_env}} "livenessProbe": { "httpGet": { "host": "127.0.0.1",