replication: annotate replicated pods with controller name

Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
This commit is contained in:
Federico Simoncelli
2015-03-24 05:36:23 -04:00
parent bd1bf11129
commit 253ce4b6fe
2 changed files with 20 additions and 0 deletions

View File

@@ -40,6 +40,10 @@ type FakePodControl struct {
lock sync.Mutex
}
func init() {
api.ForTesting_ReferencesAllowBlankSelfLinks = true
}
func (f *FakePodControl) createReplica(namespace string, spec api.ReplicationController) {
f.lock.Lock()
defer f.lock.Unlock()