@@ -52,10 +52,10 @@ type Options struct {
52
52
// requests.
53
53
Client cmclient.Interface
54
54
55
- // ClientForMatadataFunc is used for returning a client that is used for
55
+ // ClientForMetadataFunc is used for returning a client that is used for
56
56
// creating cert-manager API objects given a volume's metadata. If nil,
57
57
// Client will always be used.
58
- ClientForMatadata ClientForMatadataFunc
58
+ ClientForMetadata ClientForMetadataFunc
59
59
60
60
// Used the read metadata from the storage backend
61
61
MetadataReader storage.MetadataReader
@@ -91,8 +91,8 @@ func NewManager(opts Options) (*Manager, error) {
91
91
if opts .Client == nil {
92
92
return nil , errors .New ("Client must be set" )
93
93
}
94
- if opts .ClientForMatadata == nil {
95
- opts .ClientForMatadata = func (_ metadata.Metadata ) (cmclient.Interface , error ) {
94
+ if opts .ClientForMetadata == nil {
95
+ opts .ClientForMetadata = func (_ metadata.Metadata ) (cmclient.Interface , error ) {
96
96
return opts .Client , nil
97
97
}
98
98
}
@@ -146,7 +146,7 @@ func NewManager(opts Options) (*Manager, error) {
146
146
147
147
m := & Manager {
148
148
client : opts .Client ,
149
- clientForMetadata : opts .ClientForMatadata ,
149
+ clientForMetadata : opts .ClientForMetadata ,
150
150
lister : lister ,
151
151
metadataReader : opts .MetadataReader ,
152
152
clock : opts .Clock ,
@@ -202,7 +202,7 @@ type Manager struct {
202
202
203
203
// clientForMetadata used to create objects in the cert-manager API given a
204
204
// volume's metadata
205
- clientForMetadata ClientForMatadataFunc
205
+ clientForMetadata ClientForMetadataFunc
206
206
207
207
// lister is used as a read-only cache of CertificateRequest resources
208
208
lister cmlisters.CertificateRequestLister
@@ -491,15 +491,15 @@ func (m *Manager) ManageVolume(volumeID string) error {
491
491
// 2s is the 'base' amount of time for the backoff
492
492
Duration : time .Second * 2 ,
493
493
// We multiple the 'duration' by 2.0 if the attempt fails/errors
494
- Factor : 2.0 ,
494
+ Factor : 2.0 ,
495
495
// Add a jitter of +/- 1s (0.5 of the 'duration')
496
- Jitter : 0.5 ,
496
+ Jitter : 0.5 ,
497
497
// 'Steps' controls what the maximum number of backoff attempts is before we
498
498
// reset back to the 'base duration'. Set this to the MaxInt32, as we never want to
499
499
// reset this unless we get a successful attempt.
500
- Steps : math .MaxInt32 ,
500
+ Steps : math .MaxInt32 ,
501
501
// The maximum time between calls will be 1 minute
502
- Cap : time .Minute ,
502
+ Cap : time .Minute ,
503
503
}, func () (bool , error ) {
504
504
log .Info ("Triggering new issuance" )
505
505
if err := m .issue (volumeID ); err != nil {
0 commit comments