etcd-backup-operator/controller: change usage of vault to etcd backup.
@@ -22,9 +22,9 @@ import (
const (
// Copy from deployment_controller.go:
- // maxRetries is the number of times a Vault will be retried before it is dropped out of the queue.
+ // maxRetries is the number of times a etcd backup will be retried before it is dropped out of the queue.
// With the current rate-limiter in use (5ms*2^(maxRetries-1)) the following numbers represent the times
- // a Vault is going to be requeued:
+ // an etcd backup is going to be requeued:
//
// 5ms, 10ms, 20ms, 40ms, 80ms, 160ms, 320ms, 640ms, 1.3s, 2.6s, 5.1s, 10.2s, 20.4s, 41s, 82s
maxRetries = 15
@@ -75,7 +75,7 @@ func (b *Backup) handleErr(err error, key interface{}) {
// This controller retries maxRetries times if something goes wrong. After that, it stops trying.
if b.queue.NumRequeues(key) < maxRetries {
- b.logger.Errorf("error syncing Vault (%v): %v", key, err)
+ b.logger.Errorf("error syncing etcd backup (%v): %v", key, err)
// Re-enqueue the key rate limited. Based on the rate limiter on the
// queue and the re-enqueue history, the key will be processed later again.
@@ -85,7 +85,7 @@ func (b *Backup) handleErr(err error, key interface{}) {
b.queue.Forget(key)
// Report that, even after several retries, we could not successfully process this key
- b.logger.Infof("Dropping Backup (%v) out of the queue: %v", key, err)
+ b.logger.Infof("Dropping etcd backup (%v) out of the queue: %v", key, err)
}
func (b *Backup) handleBackup(spec *api.EtcdBackupSpec) error {
