From 9eb01a6da15272770b60984ea6b2fa97b2992ae7 Mon Sep 17 00:00:00 2001 From: Rohit Jnagal Date: Tue, 12 May 2015 06:25:48 +0000 Subject: [PATCH] Make SyncPodSync as the default SyncPodType. We would like the default to be sync instead of create to easily differentiate create operations in empty metrics map. --- pkg/kubelet/metrics/metrics.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/kubelet/metrics/metrics.go b/pkg/kubelet/metrics/metrics.go index 8c1b68eef55..d4a15c99f2d 100644 --- a/pkg/kubelet/metrics/metrics.go +++ b/pkg/kubelet/metrics/metrics.go @@ -77,9 +77,9 @@ func Register(containerCache kubecontainer.RuntimeCache) { type SyncPodType int const ( - SyncPodCreate SyncPodType = iota + SyncPodSync SyncPodType = iota SyncPodUpdate - SyncPodSync + SyncPodCreate ) func (sp SyncPodType) String() string {