Retry resizing replication controllers in kubectl

This commit is contained in:
Prashanth Balasubramanian
2015-02-28 18:40:57 -08:00
parent 71e545bf81
commit 1970c2d201
7 changed files with 113 additions and 12 deletions

View File

@@ -56,6 +56,9 @@ type RealPodControl struct {
kubeClient client.Interface
}
// Time period of main replication controller sync loop
const DefaultSyncPeriod = 10 * time.Second
func (r RealPodControl) createReplica(namespace string, controller api.ReplicationController) {
desiredLabels := make(labels.Set)
for k, v := range controller.Spec.Template.Labels {